06.01.2012, 15:40
this is the message of my jail system: (one guy from the forum made this)
How i can remove "jail time left"
How i can remove "jail time left"
pawn Код:
forward UnJail3(playerid);
public Unjail3(playerid)
{
JailTime3[playerid]--;
new string[100];
if(JailTime3[playerid] % 5)
{
format(string,sizeof(string),"Jail time left: %d seconds.",JailTime3[playerid]);
SendClientMessage(playerid,0xFFFFFFFF,string);
}
if(JailTime3[playerid] <= 0)
{
//teleport them out of jail
JailTime3[playerid] = 0;
KillTimer(JailTimer3[playerid]);
SetPlayerPos(playerid, 246.4798,67.8764,1003.6406);
SetPlayerInterior(playerid, 6);
SetPlayerVirtualWorld(playerid, -1);
SendClientMessage(playerid, COLOR_GOLD,"[INFO]You have been UnJailed, Now try to be a good civilian!");
}
return 1;
}