Command help.
#1

Solved - as you can see, no one helped tho!
Reply
#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
#3

Oh, 1st, i'll be using that in a filterscript, 2nd, can you explain for me the function of this code, as i'm thanking you for hoping help for me .
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)