SendClientMessage
#6

Quote:
Originally Posted by Matess
Посмотреть сообщение
Well i think he doesnt't want to send a message to all, but "all-1".

Try something like this:

pawn Код:
for(new i=0;i<MAX_PLAYERS;i++)
{
   if(blocked[i] == 1) continue;
   SendClientMessage(playerid, -1, "This text is white");
}
pawn Код:
SendMessageToAllBut(playerid, color, const text[])
{
   for(new i = 0; i < MAX_PLAYERS; i ++)
   {
      if(!IsPlayerConnected(i)) continue;
      if(playerid == i) continue;

      SendClientMessage(i, color, text);
   }
}
No need to use variables.
Reply


Messages In This Thread
SendClientMessage - by AroseKhanNiazi - 12.03.2014, 15:36
Re: SendClientMessage - by Clad - 12.03.2014, 15:37
Re: SendClientMessage - by 7Ahmad7 - 12.03.2014, 15:40
Re: SendClientMessage - by CuervO - 12.03.2014, 15:57
Re: SendClientMessage - by Matess - 12.03.2014, 16:02
Re: SendClientMessage - by CuervO - 12.03.2014, 16:17
Re: SendClientMessage - by AroseKhanNiazi - 12.03.2014, 16:37
Re: SendClientMessage - by CuervO - 12.03.2014, 16:40
Re: SendClientMessage - by AroseKhanNiazi - 12.03.2014, 17:38
Re: SendClientMessage - by AroseKhanNiazi - 13.03.2014, 14:42

Forum Jump:


Users browsing this thread: 3 Guest(s)