09.07.2012, 11:10
how would i do that? send messages to admins
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;
}
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;
}