Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I've got Button:entity in my @inputs and I have @trigger at the bottom.
if(Button){
moneyRequest(Button, 10000, 30, "Play")
}
if(moneyClk()){Gamestart, Ready}
This is as far as I've got.
I just can't get it to work no matter how many times I try and use a function to "play" the game once you've pressed the start button and paid.
Is there anyone here that can code in expression 2?
I would need someone to code me a small code that would allow me to do the following with e2 and the tylerb's moneyrequest addon.
!rq *amount* *player* would request the *amount* to the *player*
!gv *amount* *player* would give the *amount* to *player*
Thank you to anyone that would be willing to do this.
@name GiveMoneyToAllPlayers
foreach (Key, Ply:entity = players()) { moneyGive(Ply,10) }
What you can do tho is make a "Pending Transaction" table, which containts arrays of transactions to execute once a player comes online. Let me explain:
Create a table, save it in a textfile via e2. the table data will look something like this.
"Pending Transactions" -Table
[STEAM_1:1:42596539][Give][500] - Array within table/Row Item
[STEAM_1:1:32526757][Request][545] - Array within table/Row Item
Where, [Player Entity SteamID][Order to give][Amount].
This way you can spawn this chip that checks when a player connects(with something like lastconnectedclk(), idk cant remember), and match that player's steamID to all the steam ID's within your table, if there is a match, check the order and request or give the specified amount. And you can also add people to that queue in the Table, once an order has been completed remove that index in the table.
so basically what happens is when you want to assign the player entity, what that code does it checks the string for players with names that have more than one word, currently !send <playername> <amout> will check the player name before the amount, which means that the 3rd index in the string might be part of the name and not the amount. So you would typically have the player name be put last, like !send <amount> <playername> . This way you can ensure that the second word will always be an amount and all the words following will be the player's name.
Here is a simplified version I made, you can do with it as you please:
Pastebin Link [pastebin.com]
With this chip you could simply type !payName all <playername> to send them all your cash, you could replace the amount with the word 'all'.
Pastebin Link [pastebin.com]
can you help me?
http://pastebin.com/RLZ8GXwx
Can something be done about it or it is intended?
[AddCSLuaFile] Couldn't find 'cl_moneyrequest_tylerb.lua' (@entities/gmod_wire_expression2/core/custom/sv_moneyrequest_tylerb.lua (line 14))
Loaded TylerB's money e2 functions.
L 07/09/2015 - 01:11:17: Lua Error: [AddCSLuaFile] Couldn't find 'cl_shipments_tylerb.lua' (@entities/gmod_wire_expression2/core/custom/sv_shipments_tylerb.lua (line 12))