Im trying to send this message only to player whit the flag ADMIN_BAN
PHP Code:
new players[32], num
get_players(players, num, "a");
for(new i = 0 ; i <= num; i++)
{
tempid = players[i]
if (get_user_flags(tempid) & ADMIN_BAN)
{
if(is_user_alive(tempid))
ColorChat(tempid, GREY, "Test")
else
ColorChat(tempid, GREY, "Test2")
}
}
What happens is that is sending 2 messages to all players. Can someone fix?