SA-MP Forums Archive
Chat in RP server - 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 in RP server (/showthread.php?tid=137963)



Chat in RP server - samuel_hamza - 30.03.2010

Well, I'm making a new server, put'd everything, and it's almost ready, but I forgot the something which is very important.
When I just talk, I want to make it around, I mean, the people around can hear what he is talking, not a whole of players in this server.

I just want some ligne, or something, just take it easy
Thanks!


Re: Chat in RP server - GTAguillaume - 30.03.2010

https://sampwiki.blast.hk/wiki/LimitGlobalChatRadius


Re: Chat in RP server - samuel_hamza - 30.03.2010

Oh, thanks man!
BTW, I like really your signature


Re: Chat in RP server - GTAguillaume - 30.03.2010

Thanks


Re: Chat in RP server - samuel_hamza - 30.03.2010

Wait, this fonction works in some commands ? like /me and /do ?
I got them and it shows to everybody.
When I use this script, it will work ?



A - GTAguillaume - 30.03.2010

It don't work in commands, you will have to change your command(s).
Example
Код:
new Float:x,Float:Y,Float:Z;
for(new i;i<MAX_PLAYERS;i++)if(IsPlayerInRangeOfPoint(playerid,RANGE, x,y,z))SendClientMessage(i,COLOR,MESSAGE); // change RANGE, COLOR and MESSAGE



Re: A - samuel_hamza - 30.03.2010

Quote:
Originally Posted by GTAguillaume
It don't work in commands, you will have to change your command(s).
Example
Код:
new Float:x,Float:Y,Float:Z;
for(new i;i<MAX_PLAYERS;i++)if(IsPlayerInRangeOfPoint(playerid,RANGE, x,y,z))SendClientMessage(i,COLOR,MESSAGE); // change RANGE, COLOR and MESSAGE
Explain more, please, And can't you please a link like you gave me in your first post in this topic ?


Re: Chat in RP server - GTAguillaume - 30.03.2010

https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint