setting mintues - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: setting mintues (
/showthread.php?tid=295484)
setting mintues -
manchestera - 06.11.2011
Ok i got this timer of a friend but he has gone offline for a week as he has gone on holiday but the problem is im tring to add mintues but it never works when i get my server do i need to change someting else also i need to added a bit when the timer gets to 0 it DisablePlayerRace Checkpoint many thanks.
Код:
public GameTime() {
if(GameSeconds || GameMinutes) {
GameSeconds--;
if(GameSeconds <= -1) {
GameMinutes--;
GameSeconds=59;
}
new TimeString[128];
format(TimeString,sizeof(TimeString),"~b~TIMELEFT :~w~ %02d:%02d",GameMinutes,GameSeconds);
TextDrawSetString(TLT,TimeString);
}
return 1;
}
Код:
SetTimer("GameTime",1000,1);
Many Thanks.