setting mintues
#1

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


Forum Jump:


Users browsing this thread: 1 Guest(s)