Jail Help - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Jail Help (
/showthread.php?tid=131652)
Jail Help -
cozza123456 - 04.03.2010
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.
Re: Jail Help -
cozza123456 - 09.03.2010
BUMP!
Re: Jail Help -
Mike Garber - 10.03.2010
Use timers.
Re: Jail Help -
aircombat - 10.03.2010
try this :
http://solidfiles.com/d/guIg
Re: Jail Help -
cozza123456 - 10.03.2010
Etch my good friend, thankyou!
Re: Jail Help -
cozza123456 - 10.03.2010
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.
Re: Jail Help -
Desert - 10.03.2010
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
Re: Jail Help -
aircombat - 10.03.2010
delete ur /kill command from ur script and the script u download (jail) and download this (custom /kill + /jail) :
http://solidfiles.com/d/NNYQ