15.11.2017, 20:41
Why not replacing it like this (much better than doing loop):
Check it more here:
SetWorldTime
Code:
CMD:day(playerid, params[]) { if(PlayerInfo[playerid][pAdmin] <= 2) return SendClientMessage(playerid, COLOR_RED, "ERROR: Insufficient Permissions!"); SetWorldTime(12); SendClientMessageToAll(COLOR_RED, "Server's time has been set to day time!"); return 1; }
SetWorldTime