how to change severtime
#1

hi
how can i change severtime (for ex to GMT + 1)
GetTime() returns a wrong time
and the time in logs is false too
Reply
#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
#3

if i use SetWorldTime ,Gettime will return a diffrent value?
Reply
#4

Quote:
Originally Posted by Hussen.
Посмотреть сообщение
if i use SetWorldTime ,Gettime will return a diffrent value?
GetTime returns computer time in which server is running...... The time you can see on right bottom of your desktop.....
Reply
#5

post removed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)