Posts: 617
Threads: 129
Joined: Feb 2014
Quote:
Originally Posted by sams90
try this sir
PHP код:
forward PrisonTimer();
public PrisonTimer()
{
new string[128];
format(string,sizeof(string),"~r~Jailed Time Left: ~w~%d ~r~seconds", pInfo[playerid][JailedTime]);
foreach(Player, playerid)
{
if(pInfo[playerid][Jailed] == 2)
{
KillTimer(PrisonTimer[playerid]);
pInfo[playerid][Jailed] = 0;
pInfo[playerid][JailedTime] = 0;
SetPlayerInterior(playerid, 0);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerFacingAngle(playerid, 88.5042);
SetPlayerColor(playerid, error);
SetPlayerPos(playerid, 1548.8394,-1669.6111,13.5656);
SetCameraBehindPlayer(playerid);
SendClientMessage(playerid, jblue, " Time Served. Be on your best behaviour now :) .");
}
else
{
GameTextForPlayer(playerid, string, 1500, 3);
}
}
pInfo[playerid][JailedTime] --;
return 1;
}
|
I dont think that will fix anything...