admin chat bugged.
#4

Try this:
pawn Код:
if(strcmp(cmdtext, "/adm ", true, 5) == 0)
    {
        if(adminlevel[playerid]==0) return SendClientMessage(playerid, COLOR_WHITE, "Server: Wrong command. Do /commands.");
        if(!cmdtext[5]) return SendClientMessage(playerid, COLOR_ADMINBLUE, "Correct usage: /adm [message]");
        new admmessage[128], playername[128];
        GetPlayerName(playerid, playername, sizeof(playername));
        format(admmessage, sizeof(admmessage), "(Admin Chat) %s: %s", playername, cmdtext[5]);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
        {
            if(adminlevel[i] >= 1)
        {
            SendClientMessage(i, COLOR_RED, admmessage);
        }
        }
       
        }
        return 1;
    }
Reply


Messages In This Thread
admin chat bugged. - by Nitin - 29.11.2014, 09:00
Re: admin chat bugged. - by iiNzTicTx - 29.11.2014, 09:43
Re: admin chat bugged. - by AMouldyLemon - 29.11.2014, 09:45
Re: admin chat bugged. - by biker122 - 29.11.2014, 09:56

Forum Jump:


Users browsing this thread: 1 Guest(s)