If we are on this let's break that horrible design which is present in almost every colorchat. Have a custom function to send the message and separat the single-player case from the array so you don't have to call
is_user_connected for nothing.
PHP Code:
if(id)
{
SendMessage()
}
else
{
get_players(iPlayers, iCount, "ch")
if(!iCount)
return
loop
{
SendMessage
}
}
__________________