i need zcmd command - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: i need zcmd command (
/showthread.php?tid=474104)
i need zcmd command -
TiXz0r - 06.11.2013
i need zcmd command for change time in server.
Thanks
Re: i need zcmd command -
Nourdin - 06.11.2013
You can try this:
Changes it only for the player himself.
Код:
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;
}
Changes the time of the server.
Код:
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;
}
A +rep would be appreciated!
Re: i need zcmd command -
TiXz0r - 06.11.2013
Thanks man
Re: i need zcmd command -
Nourdin - 06.11.2013
If you could +rep me it would be appreciated.