Radio problem, proxdetector
#3

Quote:
Originally Posted by Joe Staff
ProxDetector sends a message to players depending on their position (local chat)

I suggest you use something way better, and a better method
pawn Код:
stock SendLocalChat(playerid,color,msg[],Float:radius)
{
  new Float:x,Float:y,Float:z;
  GetPlayerPos(playerid,x,y,z);
  for(new ply;ply<MAX_PLAYERS;ply++)
  {
    if(IsPlayerInRangeOfPoint(ply,radius,x,y,z))SendClientMessage(ply,color,msg);
  }
  return 1;
}
Would that send the text to players around the guy who talks in the radio?
And would it display the text for the player twice or once? The problem is i only want it to appear once for the guy who wrote it because i use a "SendFactionChat" string, and then a proxdetector which sends my messages twice.
Reply


Messages In This Thread
Radio problem, proxdetector - by Perker12345 - 28.01.2010, 20:23
Re: Radio problem, proxdetector - by Joe Staff - 28.01.2010, 20:52
Re: Radio problem, proxdetector - by Perker12345 - 29.01.2010, 06:06

Forum Jump:


Users browsing this thread: 3 Guest(s)