06.11.2012, 16:35
pawn Код:
if(Cell(playerid) == 1 && countn(playerid) >= 1 && FPrison(playerid) == 1) //Pretty sure it needs to be ( not ]
{
SetPlayerInterior(playerid, 20);
SetPlayerPos(playerid, 1799.6770,-1552.7550,5700.4287);
SetPlayerFacingAngle(playerid, 269.2757);
new message[128];
SendClientMessage(playerid, GRAY, "You still have time to serve in prison.");
format(message, sizeof(message), "You will be released in %d minutes.", countn[playerid]);
SendClientMessage(playerid, GRAY, message);
ResetPlayerWeapons(playerid);
SetPlayerHealth(playerid, 100);
SetPlayerArmour(playerid, 0);
timer[playerid]=SetTimerEx("Unjailed",countn[playerid]*60000,false,"i",playerid);
return 1;
}