AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   commands with args (https://forums.alliedmods.net/showthread.php?t=51280)

gzus 02-14-2007 20:17

commands with args
 
ok ive been more than knee deep in like 600 styles of coding, 999 thousand tutorials and im basicly lost at this point.. can someone point me to either a basic, but helpful tutorial/doc about creating commands with arguments, for example, admin wants to give jo-bob 999 xp, command woul dbe formatted say
mho_xp jo-bob 999

how the hell do i get a function to read this, and find jo-bobs ID to add xp to his PlayerXP[id]

i believe actually giving himt he xp would read like ++PlayerXP[id].. no wait that only adds 1 to it, crap man i feel so damn slow right now!

XxAvalanchexX 02-14-2007 20:21

Re: commands with args
 
http://wiki.amxmodx.org/index.php/In...od_X_Scripting

gzus 02-14-2007 20:35

Re: commands with args
 
that was simple enough, thanks a sh*t pile man, now i can finally give xp lol!

now on to the looping issues im havin countin seconds of godmode.. bleh

TheNewt 02-14-2007 20:55

Re: commands with args
 
O.o ever heard of a timer? :P

gzus 02-14-2007 22:08

Re: commands with args
 
i cant sucessfully get it working.. its drivin me nuts.. i dont know if i should start a new thread for the timer thing tho, the only thing ive got to work is the set_task 1.0, but i cant get the thing to loop back, and count down


All times are GMT -4. The time now is 00:41.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.