[HELP] Command
#3

pawn Код:
if(strcmp(cmd, "/freezeall", true) == 0 || strcmp(cmd, "/fall", true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 5) return SendClientMessage(playerid, COLOR_GREY, "Access denied!");
        for(new i=0; i < MAX_PLAYERS; i++)
        {
            if(!IsPlayerConnected(i)) continue;
            if(PlayerInfo[i][pAdmin]) continue;
            TogglePlayerControllable(i,0);
        }
        new ab[70];
        format(ab, sizeof(ab), "[ANTI-ABUSE] %s used /freezeall command !",GetName(playerid));
        SendToAdmins(COLOR_LIGHTRED, ab);
        return 1;
    }
Reply


Messages In This Thread
[HELP] Command - by monster010 - 18.05.2014, 10:24
Re: [HELP] Command - by Stinged - 18.05.2014, 10:37
Re: [HELP] Command - by Threshold - 18.05.2014, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)