SA-MP Forums Archive
Is this possible to detect it? - 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: Is this possible to detect it? (/showthread.php?tid=661271)



Is this possible to detect it? - akib - 29.11.2018

Can we detect if a player throwing water from a fire truck? if yes how to get X Y Z position where player throwing the water


Re: Is this possible to detect it? - Ermanhaut - 29.11.2018

You can detect if the player is pressing KEY_FIRE while in vehicle model 407 or 544.

I'm not sure about the second part.


Re: Is this possible to detect it? - Hunud - 29.11.2018

For the second part, just check a player angle (Where is he looking at)


Re: Is this possible to detect it? - akib - 29.11.2018

code please?


Re: Is this possible to detect it? - iLearner - 29.11.2018

We're here to give ideas not the ready-made code, you gotta put some effort yourself.


Re: Is this possible to detect it? - akib - 29.11.2018

Quote:
Originally Posted by iLearner
Посмотреть сообщение
We're here to give ideas not the ready-made code, you gotta put some effort yourself.
I just asked for examples I mean how to do it


Re: Is this possible to detect it? - Kaliber - 30.11.2018

Yes, this is possible.

For an example, you can look here: https://sampforum.blast.hk/showthread.php?tid=226953


Re: Is this possible to detect it? - akib - 30.11.2018

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Yes, this is possible.

For an example, you can look here: https://sampforum.blast.hk/showthread.php?tid=226953
Thanks, it might works for me