Raised This Month: $ Target: $400
 0% 

commands with args


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
gzus
Member
Join Date: Jan 2007
Old 02-14-2007 , 20:17   commands with args
Reply With Quote #1

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!
__________________
71.200.20.142:27017 - testing mho mod
if you need any files visit clan.mosthatedonline.com
gzus is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 02-14-2007 , 20:21   Re: commands with args
Reply With Quote #2

http://wiki.amxmodx.org/index.php/In...od_X_Scripting
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
gzus
Member
Join Date: Jan 2007
Old 02-14-2007 , 20:35   Re: commands with args
Reply With Quote #3

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
__________________
71.200.20.142:27017 - testing mho mod
if you need any files visit clan.mosthatedonline.com
gzus is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 02-14-2007 , 20:55   Re: commands with args
Reply With Quote #4

O.o ever heard of a timer?
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
gzus
Member
Join Date: Jan 2007
Old 02-14-2007 , 22:08   Re: commands with args
Reply With Quote #5

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
__________________
71.200.20.142:27017 - testing mho mod
if you need any files visit clan.mosthatedonline.com
gzus is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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