SendClientMessage to only nearby players
#2

pawn Код:
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if(IsPlayerInRangeOfPoint(playerid, 10.0, x, y, z))
{
  SendClientMessage(i, COLOR, "Hello");
}
That will send a message to anyone 10.0 from the player, Is it yards? 10 yard radius? Idk i just know that it will send a msg to everyone within 10.0
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)