09.10.2015, 16:53
This works in reverse, it will add time
however display
05:00 04:59 ...
//start CountDownFromAmount = 0, stop 300
Example:
https://www.youtube.com/watch?v=desa4vyIHGs
however display
05:00 04:59 ...
//start CountDownFromAmount = 0, stop 300
PHP Code:
public CountDownTimer(){ //This function must be performed every 1 second
CountDownFromAmount++;
new string[128], timesmin, timessek;
timesmin = ((300-(CountDownFromAmount))/60);
timessek = (300-((CountDownFromAmount)+((timesmin)*(60))));
format(string, sizeof(string), "%02d:%02d", timesmin, timessek);
TextDrawSetString(Text:MissionCount, string);
TextDrawShowForAll(Text:MissionCount);
if(CountDownFromAmount == 300){
GameTextForAll("", 3000, 5);
}
return 1;
}
https://www.youtube.com/watch?v=desa4vyIHGs