Need help regarding making a certain type of commands! - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Need help regarding making a certain type of commands! (
/showthread.php?tid=554896)
Need help regarding making a certain type of commands! -
TheTerminator - 05.01.2015
Okay.
I'll try and be simple as possible.
I want a guide, or you to help me understand how to make commands such as, but not limited to!:
/spec
/kick
/jail
/ban
/freeze
Basically, I know how to make commands that affect only me, the person who did the command.
What I need help is, how to make commands, that go by this syntax:
/jail [PLAYERID] [TIME]
/kick [PLAYERID] [REASON]
Basically all of them have THE OTHER player id, the one of another person.
I want that.
How can I make that?
Please help :c
Before asking;
Yes, I have zcmd.
Yes, I have sscanf.
Yes, I have y_ini.
Re: Need help regarding making a certain type of commands! -
Schneider - 05.01.2015
This should help:
Simple zcmd and sscanf Tutorial [Explained]
Re: Need help regarding making a certain type of commands! -
TheTerminator - 05.01.2015
Didn't really understand much of it, didn't really help either. :/
Re: Need help regarding making a certain type of commands! -
Schneider - 05.01.2015
Don't worry, you won't learn it in 15 minutes... It takes days, weeks, months, years..
Read it again, copy the code to your own script, see what it does, change something and see how it affects the system, change something again and see how that affects it. That's how you learn to script, just try stuff out. Trial and error!
Re: Need help regarding making a certain type of commands! -
TheTerminator - 05.01.2015
Thank you Schneider!