how to change time on server
#4

pawn Код:
CMD:settime(playerid,params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 3) // Change this to IsPlayerAdmin if you don't have an admin system.
    {
           new hour,string[50];
        if(sscanf(params,"i",hour)) return SendClientMessage(playerid,-1,"** /settime [Hour]");
        if(hour < 0 || hour > 23) return SendClientMessage(playerid,-1,"Hour can't be below 0 or above 23.");
        SetWorldTime(hour);
    }
    return 1;
}
Here's the /settime command from my personal gamemode.
Reply


Messages In This Thread
how to change time on server - by kurniarocki - 13.02.2014, 01:25
Re: how to change time on server - by CuervO - 13.02.2014, 02:45
Re: how to change time on server - by kurniarocki - 13.02.2014, 04:23
Re: how to change time on server - by DaniceMcHarley - 13.02.2014, 07:17

Forum Jump:


Users browsing this thread: 1 Guest(s)