@Shadows Adi - read the first post again.
PHP Code:
// You don't need an "id" parameter - you're sending the message to a GROUP of players.
print_admin(const id, const input[], any:...)
{
// Why is count = 1?
new count = 1, players[32];
static msg[191];
// Use charsmax(msg) instead of 190.
vformat(msg, 190, input, 3);
// Again not needed - only get_players() should stay.
if(id)
players[0] = id;
else
get_players(players, count, "ch");
for (new i = 0; i < count; i++)
{
x = players[i]
// Indentation or { brackets } after the check would be nice.
if(is_user_admin(x))
// Don't use "magic numbers". The second argument should be "print_team_default", not 0.
client_print_color(x, 0, msg)
}
}
Try to think what you're doing. If you went line by line through the code, you probably could have figured it out.
You simply need to send a message to all admins, so there's no "id" involved at all - the player sending the message (if existant) is not relevant.
__________________