14.12.2013, 17:13
Hello fellow scripters,
Once again I stumbled on a problem :\, I want to display my round timer from 30 minutes in a textdraw which will count down and when it reaches 0 it will stop untill the new round starts. I tried to search but I had no luck in succeeding. I hope you guys can help me.
Code I got so far:
Once again I stumbled on a problem :\, I want to display my round timer from 30 minutes in a textdraw which will count down and when it reaches 0 it will stop untill the new round starts. I tried to search but I had no luck in succeeding. I hope you guys can help me.
Code I got so far:
pawn Код:
forward NewRoundTimer(playerid);
public NewRoundTimer(playerid)
{
new InfoString[300];
new Min = 30, sec;
format(InfoString, sizeof(InfoString), "%d:%d", Min, sec);
TextDrawSetString(timer1, InfoString);
SetTimer("StartedNewRound",8000,false);
return 1;
}
public StartedNewRound()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
SpawnPlayer(i);
SurvivorSpawn(i);
}
return 1;
}
public OnGameModeInit()
{
SetTimer("NewRoundTimer",1800000,true);
return 1;
}

