Weather fast change instead of slowly changing
#9

Quote:
Originally Posted by ShihabSoft
Посмотреть сообщение
Try this

new gHour, gWorldTime;

gettime(.hour = gHour);
gettime(.hour = gWorldTime);
SetWorldTime(gWorldTime);

Put the above in OnGameModeInit
pawn Код:
gettime(hour, minute);
   
    new string[60];
    format(string,sizeof string, "* Game Time: %02d:%02d",hour,minute);
    SendClientMessage(playerid, -1, string);
Tried on player connect and it works. Time is syncronized.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)