Server Uptime?
#4

pawn Код:
new
    Hours,
    Minutes,
    Seconds;
   
public OnGameModeInit()
{
    SetTimer("EverySecond", 1000, true);
    return 1;
}

forward EverySecond();
public EverySecond()
{
    Seconds ++;
    if(Seconds > 59)
    {
        Minutes ++;
        Seconds = 0;
    }  
    if(Minutes > 59)
    {
        Hours ++;
        Minutes = 0;
    }
    return 1;
}
As simple as that...
Reply


Messages In This Thread
Fixed - by Tekto - 31.10.2010, 20:49
Re: Server Uptime? - by The_Moddler - 31.10.2010, 20:51
Re: Server Uptime? - by Tekto - 31.10.2010, 20:56
Re: Server Uptime? - by Miguel - 31.10.2010, 21:14
Re: Server Uptime? - by Tekto - 31.10.2010, 21:32
Re: Server Uptime? - by Miguel - 31.10.2010, 21:39
Re: Server Uptime? - by WillyP - 31.10.2010, 21:39
Re: Server Uptime? - by Lenny the Cup - 31.10.2010, 21:54
Re: Server Uptime? - by Miguel - 31.10.2010, 21:59
Re: Server Uptime? - by The_Moddler - 31.10.2010, 22:11

Forum Jump:


Users browsing this thread: 1 Guest(s)