SA-MP Forums Archive
chat help - 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: chat help (/showthread.php?tid=277366)



chat help - DannySnoopy - 17.08.2011

hello guys, am starting to create my own GM.
and i have a problem with the chat,
i'v made a new clean script,
And i'll make an RP server, so.
when some one talks THE WHOLE
server sees it, but what i want is.
that if some one talks on the regular chat.
only people that stand 5 meters away from the player
will see it thanks for the helpers


Re: chat help - =WoR=Varth - 18.08.2011

ProxDetector or SmartChat would help you.


Re: chat help - [MG]Dimi - 18.08.2011

IsPlayerInRangeOfPoint also


AW: chat help - Forbidden - 18.08.2011

I think you mean a /ooc script ,like Gf,well,
Use a variable to check ,that Admins enable ooc,
Dont want to make the whole script ,Im to lazy now ,well,
if it is enabled,use
Quote:

new Name[MAX_PLAYERS],new string[128];//name and string
GetPlayerName(playerid,Name,sizeof(Name));
format(string,sizeof(string),"Player %s says:%s",Name);
SendClientMessageToAll(0xFFFFFFFF,string); the last crap can you do on your own!

Dimi :
IsPlayerInRangeOfPoint isnґt really efficient to use it ,while the variable is enabled...


AW: chat help - umarmalik - 18.08.2011

Try this Freind.

https://sampforum.blast.hk/showthread.php?tid=270094

I hope you like my help.