i need zcmd command
#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


Messages In This Thread
i need zcmd command - by TiXz0r - 06.11.2013, 12:26
Re: i need zcmd command - by Nourdin - 06.11.2013, 12:32
Re: i need zcmd command - by TiXz0r - 06.11.2013, 13:13
Re: i need zcmd command - by Nourdin - 06.11.2013, 17:44

Forum Jump:


Users browsing this thread: 1 Guest(s)