27.10.2016, 10:58
PHP код:
TextDrawShowForPlayer(playerid, TimeBank[playerid]);
Time[playerid] = 10;
SetTimerEx("CountDown", 1000, 1, "i",playerid);
forward CountDown(playerid);
public CountDown(playerid)
{
new string[30];
if(Time[playerid] == 0)
{
ResetRobbery(playerid, 1);
TextDrawHideForPlayer(playerid, TimeBank[playerid]);
KillTimer(TimerCount[playerid]);
TimerCount[playerid] = -1;
SendClientMessage(playerid, 0xFFFFFFFF, "0");
return;
}
Time[playerid] --;
format(string, sizeof string, "%s",ConvertToMinutes(Time[playerid]));
TextDrawSetString(TimeBank[playerid], string);
}
PHP код:
[14:12:22] 0
[14:12:23] 0
[14:12:24] 0
[14:12:25] 0
[14:12:26] 0
[14:12:27] 0
[14:12:28] 0
[14:12:29] 0