09.07.2012, 13:52
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;
}