#1

hi im making a script from scratch and i need to know how to make it so when people chat (just regular press t then type your text) that only people within a certain range can hear it anyone know how to do this?
Reply
#2

yeah its possible

How much range you want just add here
pawn Код:
public OnPlayerText(playerid, text[])
{
if(!IsPlayerInRangeOfPoint(playerid, range, x, y, z);//here
{
SendClientMessage(playerid, color, "You can`t chat from this range .");
      return 0;
    }
return 1;
}
Reply
#3

you see i said when you chat other people cant hear it from a certain range like Roleplay...
Reply
#4

Use this on GameModeInit()

LimitGlobalChatRadius(Float:Radius);
Reply
#5

https://sampwiki.blast.hk/wiki/LimitGlobalChatRadius
Reply
#6

Found out right before the reply's thanks :P
Thanks, Зурэ Яииr ∞™
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)