26.07.2014, 00:25
Hi guys, i have a tod command to set players command but the problem is when i do /tod [time] [minutes] the time has applied but within a few seconds the time is rolling back like before -_- Anyone know how to fix this? And here's the command
Thanks guys
Код:
CMD:tod(playerid, params[]) { if (PlayerInfo[playerid][pAdmin] >= 1337) { new string[128], time; if(sscanf(params, "d", time)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /tod [time] (0-23)"); SetWorldTime(time); gTime = time; format(string, sizeof(string), "Time set to %d:00.", time); BroadCast(COLOR_GRAD1, string); } else { SendClientMessageEx(playerid, COLOR_GRAD1, "You are not authorized to use that command!"); } return 1; }