• F2S: Stronghold RunConsoleCommand
    6 replies, posted
Hi, just wanted a quick fix from someone because I'm still learning LUA. I want players who complete a task to win GBUX money. Here's my (noob ass) code: function(ply) RunConsoleCommand( "gbux_addmoney " ..ply:Nick().. " 10000") PrintMessage( HUD_PRINTTALK, ply:Nick().. " has joined the steam group and received $10,000! " ) end As you can see I'm still learning don't judge >.>
What kind of task? Is there an issue? I'm not sure how to help you with the given information.. lol
[QUOTE=crazyscouter;45601630]What kind of task? Is there an issue? I'm not sure how to help you with the given information.. lol[/QUOTE] No issue just the code isn't working lol Are there corrections for my code that you can see?
I looked it up and is this correct? RunConsoleCommand( "gbux_addmoney", "" .. ply:Nick() .. "", "10000")
[lua]RunConsoleCommand("gbux_addmoney", ply:Nick(), 10000)[/lua]
[QUOTE=zerothefallen;45603882][lua]RunConsoleCommand("gbux_addmoney", ply:Nick(), 10000)[/lua][/QUOTE] For Amount editing [lua] local task1 = 200 RunConsoleCommand("gbux_addmoney", ply:Nick(), task1)[/lua]
[QUOTE=zerothefallen;45603882][lua]RunConsoleCommand("gbux_addmoney", ply:Nick(), 10000)[/lua][/QUOTE] Thank you zero!! :)
Sorry, you need to Log In to post a reply to this thread.