18.09.2015, 19:27
You put this on your command and you done
Dont' make forward setplayerunjail like my model, i write if you dont't haved
put this on your SetPlayerUnjail
YOUR TIMER NEED TO BE FOR 1000 MILISECONDS NOT 60000
PHP код:
if(pJail[playerid] > 0) return SendClientMessage(playerid,-1,"You are in jail, you can not use this command");
put this on your SetPlayerUnjail
PHP код:
for(new i;i<MAX_PLAYERS;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;