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

Try this :
pawn Код:
stock SendMessageToAdmins(color, const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][Admin] >= 1) // You can edit this line depends on your admin system.
        SendClientMessage(i, color, string);
    }
    return 1;
}
Then you can use like this

pawn Код:
CMD:mycommand(playerid, params[])
{
       SendMessageToAdmins(-1, "My command Successful"); // -1 is your "Color" and "My command Successful" is your string.
       return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)