Advertisement
Axll

[SA-MP / PAWN] Anti Aimbot [CAMERA]

Apr 16th, 2015
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.33 KB | None | 0 0
  1. //
  2.  
  3. stock IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius) {
  4.     new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
  5.     GetPlayerCameraPos(playerid, cx, cy, cz);
  6.     GetPlayerCameraFrontVector(playerid, fx, fy, fz);
  7.     return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement