Chat id what player cant see the message?
#2

You mean you want to send it to everyone on the server but the player?

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;
}
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.
Reply


Messages In This Thread
Chat id what player cant see the message? - by DerickClark - 30.07.2015, 23:01
Re: Chat id what player cant see the message? - by Abagail - 30.07.2015, 23:27
Re: Chat id what player cant see the message? - by DerickClark - 30.07.2015, 23:45
Re: Chat id what player cant see the message? - by youssefehab500 - 30.07.2015, 23:55

Forum Jump:


Users browsing this thread: 1 Guest(s)