Function ProxDetector
#1

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

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

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...
Reply
#4

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

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.
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)