Jail Help
#1

I have been trying to make a jail and used other peoples jail script, however i cant make any of them work.
How can i:

Make a jail command that works like this:

/jail [id] [time]

so it sets a time before unjailing them and putting them back where they were.

It would also be good if it had a /unjail [id] in case i wanted to release them early.

And could it be made so that it saves if they are in jail into scriptfiles, just so that if they join again, they finish their time.
Reply
#2

BUMP!
Reply
#3

Use timers.
Reply
#4

try this : http://solidfiles.com/d/guIg
Reply
#5

Etch my good friend, thankyou!
Reply
#6

Sorry for double post: When you get put in jail, you can just use /kill to get out.
And also, there is no /jail [id] [time], because if you die, your still "in jail" but your not, you can run around at the spawn point.
Reply
#7

new jailed[MAX_PLAYERS];//Global


then under onplayerspawn

if(jailed[playerid] == 1)
{
SetPlayerPos(playerid,..,..,..,..);
jailed[playerid] = 0;
}

Remember to set jailed to 1 for the jailed player in the command
Reply
#8

delete ur /kill command from ur script and the script u download (jail) and download this (custom /kill + /jail) :
http://solidfiles.com/d/NNYQ

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)