SA-MP Forums Archive
[HELP] Okay IS THIS possible? - 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: [HELP] Okay IS THIS possible? (/showthread.php?tid=114454)



[HELP] Okay IS THIS possible? - AcId n RaPiD - 19.12.2009

Is it possible to script the following:

On player touch another player = Script in a message that would appear in the screen once the other player touched another player (it'll appear for both of them).

Are you able to do this?


Re: [HELP] Okay IS THIS possible? - Correlli - 19.12.2009

Well, you could check their distance in the timer, like if their distance is <= 0.5


Re: [HELP] Okay IS THIS possible? - V1ceC1ty - 19.12.2009

Use GetPlayerPos(); and IsPlayerInRangeOfPoint(); with a Timer.

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


Re: [HELP] Okay IS THIS possible? - AcId n RaPiD - 19.12.2009

Okay, thanks for the help both of ya. I'll see what I can do .