Command help.
#2

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;
Reply


Messages In This Thread
Solved by myself. - by xXRevolverXx - 26.12.2015, 21:15
Re: Command help. - by ikey07 - 26.12.2015, 22:19
Re: Command help. - by xXRevolverXx - 26.12.2015, 23:01

Forum Jump:


Users browsing this thread: 1 Guest(s)