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=73247)
Jail help -
krisis32 - 13.04.2009
I have made a jail.... I set - /jail id time
But i set example 3000secs .. when he do /kill or re-log hes free.... how to make it so when he spawn he go in jail again... ?
Re: Jail help -
Weirdosport - 13.04.2009
pawn Код:
OnPlayerSpawn(BLAH BLAH)
{
if(Jail[playerid == 1); SendToJail(playerid)
}
Note, SendToJail, Jail[MAX_PLAYERS] etc will vary depending on your script, do not attempt to copy this, as it will not work..
Re: Jail help -
Anwix - 06.05.2009
if you didnt get this fixed try this :
// AT THE TOP
Код:
new Jailed[MAX_PLAYERS];
// OnPlayerConnect
Код:
Jailed[playerid] = 0;
// When you jail the user
Код:
Jailed[playerid] = 1;
// If he types /kill
Код:
dcmd_kill(playerid, params[])
{
if (Jailed[playerid] == 1)
{
return false;
}
else
{
SetPlayerHealth(playerid, 0);
}
#pragma unused params
}
// When the player is released
Код:
Jailed[playerid] = 0;

if your not using dcmd then make it into what ever your using.