Command to put on/off local chat
#4

Quote:
Originally Posted by CAR
Посмотреть сообщение
pawn Код:
public OnPlayerText(playerid, text[])
{
   for(new i; i<MAX_PLAYERS; i++)
   if(localchat[i] == 1) return 1;
   return 0;
}
I think this will work (with your command)
That'll show it to anyone in the area, guaranteed that there is someone who has it enabled. The idea is good though, +1.

pawn Код:
public OnPlayerText(playerid, text[])
{
  for(new i; i<MAX_PLAYERS; i++)
  {
     if(localchat[i] == 1) SendPlayerMessageToPlayer(i,playerid,text);
  }
  return 0;
}
Will only send it to players with it enabled.
Reply


Messages In This Thread
Command to put on/off local chat - by [KMA]DlennartD - 07.07.2010, 20:54
Re: Command to put on/off local chat - by Hiddos - 07.07.2010, 20:56
Re: Command to put on/off local chat - by CAR - 07.07.2010, 20:59
Re: Command to put on/off local chat - by Hiddos - 07.07.2010, 21:02
Re: Command to put on/off local chat - by CAR - 07.07.2010, 21:03
Re: Command to put on/off local chat - by Hiddos - 07.07.2010, 21:04

Forum Jump:


Users browsing this thread: 1 Guest(s)