06.11.2013, 12:26
i need zcmd command for change time in server.
Thanks
Thanks
CMD:settime(playerid, params[]) { new id, time; if(sscanf(params, "ui", id, time)) return SendClientMessage(playerid, -1, "Usage: /settime <ID/Part Of Name> <0-24>"); if(time > 24 || time < 0) return SendClientMessage(playerid, -1, "Available Hours: 0-24"); SetPlayerTime(id,time); return 1; }
CMD:settime(playerid, params[]) { new time; if(sscanf(params, "i", time)) return SendClientMessage(playerid, -1, "Usage: /settime [time]"); if(time > 24 || time < 0) return SendClientMessage(playerid, -1, "Error: Invalid time!"); SetWorldTime(time); return 1; }