Posts: 278
Threads: 100
Joined: May 2011
Reputation:
0
Hi all,i want to make a cops and robbers server.But i have stuck /arrest command.I dont know how to make it.For example when someone is at lspd team and its near to a suspect then he can use command /ar [player id] for arrest him.How i can make it?
Thanks for helping
Posts: 1,662
Threads: 199
Joined: Dec 2011
Reputation:
0
Alright, read this list and think about how to do it:
1. Check if the players is LSPD
2. Check if the player is near the other player
3. Set the position of the arrested player.
4. Set a timer to unjail him
Posts: 278
Threads: 100
Joined: May 2011
Reputation:
0
yea,but how i can ID for example,/arrest ID?
Posts: 2,220
Threads: 154
Joined: Jul 2009
Reputation:
0
Use ZCMD/DCMD/YCMD (command processor) and sscanf to split the params.
@ n00b_scripter: That won't even work, lol.