SA-MP Forums Archive
Offset coordinates of player aiming to another player - 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: Offset coordinates of player aiming to another player (/showthread.php?tid=544480)



Offset coordinates of player aiming to another player - Banditukas - 02.11.2014

Hi,

How to get offset coordinates when you are aiming at another player?


Re: Offset coordinates of player aiming to another player - Beckett - 02.11.2014

Have a look at this.


Re: Offset coordinates of player aiming to another player - Banditukas - 02.11.2014

Here just target player id.


Re: Offset coordinates of player aiming to another player - Rudy_ - 02.11.2014

The target is the another player, If you want the target to be everyone except the player( obv ) then loop through all players.


Re: Offset coordinates of player aiming to another player - Banditukas - 02.11.2014

I ask for coordinates about what shit you are talking?


Re: Offset coordinates of player aiming to another player - Rudy_ - 02.11.2014

Learn English then. Do you want to get the fx, fy, fz when a player aims on another player?


Re: Offset coordinates of player aiming to another player - Banditukas - 02.11.2014

Yes.


Re: Offset coordinates of player aiming to another player - Quickie - 02.11.2014

pawn Код:
GetPlayerCameraFrontVector(playerid, &Float:x, &Float:y, &Float:z)
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector


Re: Offset coordinates of player aiming to another player - Banditukas - 02.11.2014

Here get's position i need fx,fy,fz like in OnPlayerWeaponShoot callback are..