Posts: 79
Threads: 9
Joined: Dec 2015
Reputation:
0
26.12.2015, 21:15
(
Последний раз редактировалось xXRevolverXx; 30.12.2015 в 00:12.
)
Solved - as you can see, no one helped tho!
Posts: 1,167
Threads: 57
Joined: Jul 2010
Reputation:
0
Few small tips.
new cTimer;
new CountTimer;
OnGameModeInit()
{
cTimer = SetTimer("CounterTimer",1000,1);
}
public CounterTimer()
{
if(CountTimer > 0)
{
SendClientMessage(playerid,-1,"Time left: %d seconds",CountTimer);//For seconds
SendClientMessage(playerid,-1,"Time left: %d minutes",CountTimer/60);//For minutes
CountTimer--;
if(CountTimer == 0)
{
//Timer have reached.
}
}
}
in the /count cmd
CountTimer = User input*60;