i need zcmd command
#1

i need zcmd command for change time in server.


Thanks
Reply
#2

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!
Reply
#3

Thanks man
Reply
#4

If you could +rep me it would be appreciated.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)