SA-MP Forums Archive
isplayerfacing pos ? - 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: isplayerfacing pos ? (/showthread.php?tid=79196)



isplayerfacing pos ? - Think - 26.05.2009

Hey, i want to create a function or smth like this: IsPlayerFacingPos(playerid, x, y, z); but what do i need to include there, GetPlayerFacingAngle and than some maths, can someone work this out for me ?


Re: isplayerfacing pos ? - Weirdosport - 26.05.2009

Look at GetXYInFrontOfPlayer and work backwards


Re: isplayerfacing pos ? - Think - 26.05.2009

k but now, i need to see if someone is standing in front of him within 10 'coords' but should i do it like this? :

pawn Код:
GetPlayerPos(playerid, x, y, z);
for(new i;i <MAX_PLAYERS;i++) {
If(PlayerToPoint(10.0, i, x,y,z)) { print("fail"); } }
or how? X: