SA-MP Forums Archive
How to do...? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to do...? (/showthread.php?tid=163734)



How to do...? - dovys11 - 28.07.2010

How to make that chat messages appears only when player that typed it is near? Like in RP servers...

Example script please...

Thanks


Re: How to do...? - selten98 - 28.07.2010

pawn Код:
LimitGlobalChatRadius(Float:chat_radius);



Re: How to do...? - dovys11 - 28.07.2010

Errr... Can you explain it? I'm not very advanced scripter


Re: How to do...? - selten98 - 28.07.2010

pawn Код:
LimitGlobalChatRadius(10);//10 is the radius
//and i thought place it under OnPlayerText



Re: How to do...? - Faith - 28.07.2010

LimitGlobalChatRadius(2); // That will make it so only players 2 meters away from the player talking will see the chat.

The higher the number, the higher the range will be.

Place it under OnGameModeInit()


Re: How to do...? - dovys11 - 28.07.2010

Thank you very much! I'll see how it works....

EDIT: Works perfectly! Thanks again!