17.12.2014, 17:59
How can I create a command which sets the time of the server, so I can switch from night to day. I'd like to use zcmd, since that's easier.
CMD:settime(playerid, params[])
{
new time;
if(sscanf(params, "i", time)) return SendClientMessage(playerid, -1 , "ERROR: use /settime [Hour]");
if(time > 23 || time < 0) return SendClientMessage(playerid, -1, "ERROR: must be more than 0 and less than 24");
SetWorldTime(time);
return 1;
}