sending messages to admins
#1

how would i do that? send messages to admins
Reply
#2

pawn Код:
stock SendMessageToAdmins(color, const str[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(PlayerInfo[i][pAdmin] > 1) //change this line
        SendClientMessage(i, color, str);
    }
    return 1;
}
Reply
#3

pawn Код:
stock SendMessageToAdmins(color, const string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerAdmin(i)) //Currently set for RCON Admins. Change to whatever variable you are using, AccInfo[playerid][Level] > 0 etc. NOTE: The above post is incorrect!! It should be > 0 not > 1.
        {
            SendClientMessage(i, color, string);
            }
        }    
            return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)