18.09.2015, 19:06
PHP код:
public SetPlayerUnjail()
{
foreach(Player,i)
{
if(Jailed[i] > 0)
{
if(JailTime[i] > 0) JailTime[i]--;
if(JailTime[i] <= 1)
{
JailTime[i] = 0;
Jailed[i] = 0;
SetPlayerInterior(i, 0);
SetPlayerPos(i,x,y,z);
SendClientMessage(i, COLOR_GRAD1," Jail is over.");
format(string, sizeof(string), "~g~You are ~w~FREE!");
GameTextForPlayer(i, string, 5000, 3);
}
}
}
return 1;
}