SA-MP Forums Archive
how to change time on server - 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: how to change time on server (/showthread.php?tid=494377)



how to change time on server - kurniarocki - 13.02.2014

i am on Indonesia here 9 PM, but on server on 3 AM.

how to change it


Re: how to change time on server - CuervO - 13.02.2014

https://sampwiki.blast.hk/wiki/SetWorldTime


Re: how to change time on server - kurniarocki - 13.02.2014

Quote:
Originally Posted by CuervO
Посмотреть сообщение
how to create it on gamemode


Re: how to change time on server - Beckett - 13.02.2014

pawn Код:
CMD:settime(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 3) // Change this to IsPlayerAdmin if you don't have an admin system.
    {
           new hour,string[50];
        if(sscanf(params,"i",hour)) return SendClientMessage(playerid,-1,"** /settime [Hour]");
        if(hour < 0 || hour > 23) return SendClientMessage(playerid,-1,"Hour can't be below 0 or above 23.");
        SetWorldTime(hour);
    }
    return 1;
}
Here's the /settime command from my personal gamemode.