Jail help
#1

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)