SA-MP Forums Archive
Function ProxDetector - 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)
+--- Thread: Function ProxDetector (/showthread.php?tid=430853)



Function ProxDetector - jakejohnsonusa - 15.04.2013

How do I use the function "ProxDetector" and what exactly does it do?


Re: Function ProxDetector - LarzI - 15.04.2013

If you don't know, why do you want to use it?


Re: Function ProxDetector - jakejohnsonusa - 15.04.2013

I'm 99% sure it sends a message to players within a defined distance (from a define player). But I want to verify that and also want to know how to use it.

I think it's somthing like: ProxDetector(distance,playerid,color) or somthing like that...


Re: Function ProxDetector - faiznurfaza - 15.04.2013

ProxDetector function like a local chat, you must create the stock and then put the function at OnPlayerText


Re: Function ProxDetector - LarzI - 15.04.2013

Quote:
Originally Posted by jakejohnsonusa
Посмотреть сообщение
I'm 99% sure it sends a message to players within a defined distance (from a define player). But I want to verify that and also want to know how to use it.

I think it's somthing like: ProxDetector(distance,playerid,color) or somthing like that...
That's pretty much what it does, yes. It loops trough all the players, and sends them a given string if they are in a given range. The color of the message depends on the current position of the player and the position the message was sent from.


Re: Function ProxDetector - jakejohnsonusa - 15.04.2013

DUH! I forgot it was not an a_samp function, but rather a stock. Thanks!