Need help regarding making a certain type of commands!
#1

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.
Reply
#2

This should help:
Simple zcmd and sscanf Tutorial [Explained]
Reply
#3

Didn't really understand much of it, didn't really help either. :/
Reply
#4

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!
Reply
#5

Thank you Schneider!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)