14.02.2014, 00:15
pawn Код:
stock SendClientMessageToAllEx(color, const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++) //Foreach is recommended here.
{
if(!IsPlayerConnected(i)) continue; //Remove if you are using foreach.
if(!LoggedOn[i]) continue; //This means, if they are not logged in, skip them.
SendClientMessage(i, color, string);
}
return 1;
}