PHP Code:
if(id) players[0] = id; else get_players(players,count,"ch");
for (new i = 0; i < count; i++)
if(is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, SayTxT,_, players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
The
get_players( ) native is taking only the connected players...
Another check isn't needed
__________________