how to change time on server
#1

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

how to change it
Reply
#2

https://sampwiki.blast.hk/wiki/SetWorldTime
Reply
#3

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)