06.11.2011, 13:35
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.
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);