GameModeTextShowForPlayer question
#2

pawn Код:
new timercount[MAX_PLAYERS] = 0;

//In the command
time[targetid] = 3600000;
timercount[targetid] = SetTimerEx("CountTimer", 1000, true, "i", targetid);


//function
forward CountTimer(playerid)
public CountTimer(playerid);
{
time[playerid]--;
new time[50];
format(time,sizeof(time), "Vreme Zatvora: %d",time[playerid);
GameTextForPlayer(playerid, time ,5000,3);

if(time[playerid] == 0)
{
   KillTimer(timercount[playerid]);
  // Releasing from jail code
   return 1;
 }
return 1;
}
Reply


Messages In This Thread
GameModeTextShowForPlayer question - by Deken - 26.12.2018, 14:19
Re: GameModeTextShowForPlayer question - by UFF - 26.12.2018, 14:29
Re: GameModeTextShowForPlayer question - by Deken - 26.12.2018, 17:38
Re: GameModeTextShowForPlayer question - by Deken - 26.12.2018, 17:48
Re: GameModeTextShowForPlayer question - by N3mesiS - 26.12.2018, 18:04
Re: GameModeTextShowForPlayer question - by Deken - 26.12.2018, 18:30
Re: GameModeTextShowForPlayer question - by Deken - 26.12.2018, 18:46
Re: GameModeTextShowForPlayer question - by N3mesiS - 26.12.2018, 19:14
Re: GameModeTextShowForPlayer question - by Deken - 28.12.2018, 17:50

Forum Jump:


Users browsing this thread: 3 Guest(s)