how to change severtime
#2

GetTime() returns your computer/host Real time....

Server Time can be set with SetWorldTime(time);//time will be hours 0-24

Here's a command to set server time.... It uses ZCMD , and sscanf

pawn Код:
CMD:settime(playerid,params[])
{
    new time;//var to store value we will enter
    if(IsPlayerAdmin(playerid))//only for rcon time
    {
        if(sscanf(params,"i",time)) return SendClientMessage(playerid, C_GRAD, "Format: /Settime [hours]");
        else SetWorldTime(time);
    }
    return 1;
}
Reply


Messages In This Thread
how to change severtime - by Lazy_Duck - 30.03.2012, 08:05
Re: how to change severtime - by Shabi RoxX - 30.03.2012, 08:12
Re: how to change severtime - by Lazy_Duck - 30.03.2012, 08:17
Re: how to change severtime - by Shabi RoxX - 30.03.2012, 08:22
Re: how to change severtime - by HuSs3n - 30.03.2012, 08:37

Forum Jump:


Users browsing this thread: 1 Guest(s)