Send message to admins when a player uses a CMD
#5

Please someone correct me if im wrong! but if you have admin levels this is what i THINK you should do, change the stock from this
pawn Код:
stock SendClientMessageToAdmins(color, message[128])
{
    for(new i = 0; i < MAX_PLAYERS; i++){
        if(IsPlayerAdmin(i)){
            SendClientMessage(i, color, message);
        }
    }
}
to this
pawn Код:
stock SendClientMessageToAdmins(color, message[128])
{
    for(new i = 0; i < MAX_PLAYERS; i++){
        if(PlayerInfo[i][pAdmin] >= 1){
            SendClientMessage(i, color, message);
        }
    }
}
but like i said i can be wrong
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)