Aiming at vehicle - 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: Aiming at vehicle (
/showthread.php?tid=598775)
Aiming at vehicle -
Squirrel - 16.01.2016
Ive been searching for this but couldnt find it, how do I detect if a player is aiming at a vehicle?
I know how to detect if he is aiming at player...
PHP код:
new targetplayer = GetPlayerTargetPlayer(playerid);
but how to do it for cars?
Re: Aiming at vehicle -
-CaRRoT - 16.01.2016
There's this..
https://sampforum.blast.hk/showthread.php?tid=310502
you'll have to work through it tho as its doesn't detect aiming just looking so you'll have to code the rest yourself.
Re: Aiming at vehicle -
Squirrel - 16.01.2016
Aha thanks mate.