30.07.2015, 23:27
You mean you want to send it to everyone on the server but the player?
This loops through online players, makes sure the player is connected, checks if the player equals the player specified and then finally sends the message if the player isn't a NPC.
pawn Код:
SendClientMessageToAllExcept(noplayer, color[], string[])
{
for(new i; i < MAX_PLAYERS; i++) {
if(!IsPlayerConnected(i)) continue;
if(i == playerid) continue;
if(!IsPlayerNPC(i)) SendClientMessage(i, color, string);
}
return 1;
}