setalltime cmd not working [+rep]
#6

Quote:
Originally Posted by LMaxCo
Посмотреть сообщение
pawn Код:
CMD:setalltime(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 4) {
        if(isnull(params)) return SendClientMessage(playerid, red, "USAGE: /setalltime [hour]");
        new var = strval(params), string[128];
        if(var > 24) return SendClientMessage(playerid, red, "ERROR: Invalid hour");
        CMDMessageToAdmins(playerid,"SETALLTIME");
        for(new i = 0; i < MAX_PLAYERS; i++) {
            if(IsPlayerConnected(i)) {
                PlayerPlaySound(i,1057,0.0,0.0,0.0);
                SetPlayerTime(i, var, 0);
            }
        }
        format(string,sizeof(string),"Administrator \"%s\" has set all players time to '%d:00'", pName(playerid), var );
        return SendClientMessageToAll(blue, string);
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Try This Maybe Help You
not working
Reply


Messages In This Thread
setalltime cmd not working [+rep] - by HydraHumza - 10.02.2015, 10:50
Re: setalltime cmd not working [+rep] - by CalvinC - 10.02.2015, 11:06
Re: setalltime cmd not working [+rep] - by LMaxCo - 10.02.2015, 11:09
Re: setalltime cmd not working [+rep] - by HydraHumza - 10.02.2015, 11:09
Re: setalltime cmd not working [+rep] - by LMaxCo - 10.02.2015, 11:12
Re: setalltime cmd not working [+rep] - by HydraHumza - 10.02.2015, 11:18
Re: setalltime cmd not working [+rep] - by LMaxCo - 10.02.2015, 11:25
Re: setalltime cmd not working [+rep] - by HydraHumza - 10.02.2015, 11:57
Re: setalltime cmd not working [+rep] - by Rog - 10.02.2015, 12:05
Re: setalltime cmd not working [+rep] - by HydraHumza - 10.02.2015, 12:39

Forum Jump:


Users browsing this thread: 2 Guest(s)