02.03.2012, 15:23
You can use a new variable like
and put the
and in the Timer Callback use:
Try that I am sure this will help you as this only works for the player who is in Ar1!
-FalconX
pawn Код:
new IsJailedInAr1[MAX_PLAYERS]; //in the top
pawn Код:
IsJailedInAr1[playerid] = 1; // in the ar1 command
pawn Код:
forward Unjail(playerid);
public Unjail(playerid)
{
new id;
//put it here
if(IsJailedInAr1[playerid] == 1)
{
if(JailTime[id] <= 60000)
{
//teleport the out of jail
JailTime[id] = 60000;
KillTimer(JailTimer[id]);
SetPlayerPos(id, -2149,-2395.6000976563,30.200000762939);
SetPlayerInterior(id, 0);
SetPlayerVirtualWorld(id, 0);
SetPlayerColor(id,COLOR_WHITE);
IsJailedInAr1[playerid] = 0;
SendClientMessage(id, COLOR_GOLD,"[INFO]You have been UnJailed, Now try to be a good civilian!");
}
}
return 1;
}
-FalconX