04.01.2013, 22:48
Made by you? Oh, it's nice to have you back FeaR!
@OP: You are learning, so you should be asking for guidance. If someone is to simply post code (especially without explaining it) as them for an explanation so you can learn. I don't suggest you use the ProxDetector function, or frankly any that mineralo is claiming to make, as they're all outdated.
To address your original question, you will need to use the OnPlayerText callback. Returning 0 to the function will result in the original text that the player typed not being sent to the other clients, which is what you will need to do (so you can create and send your own). As for the detection of the players nearby, simply use a player loop (foreach, if you haven't already looked into it) and use the IsPlayerInRangeOfPoint function to check if the current iterated player is within 20 units of the original sender (playerid, pass to OnPlayerText).
@OP: You are learning, so you should be asking for guidance. If someone is to simply post code (especially without explaining it) as them for an explanation so you can learn. I don't suggest you use the ProxDetector function, or frankly any that mineralo is claiming to make, as they're all outdated.
To address your original question, you will need to use the OnPlayerText callback. Returning 0 to the function will result in the original text that the player typed not being sent to the other clients, which is what you will need to do (so you can create and send your own). As for the detection of the players nearby, simply use a player loop (foreach, if you haven't already looked into it) and use the IsPlayerInRangeOfPoint function to check if the current iterated player is within 20 units of the original sender (playerid, pass to OnPlayerText).