Gun Point. - 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: Gun Point. (
/showthread.php?tid=450917)
Gun Point. -
xganyx - 15.07.2013
How can i get the gun point when i click right mouse the player is aiming. how do i get the pos weapon aiming somewhere ? sorry for bad english
Re: Gun Point. -
Scenario - 15.07.2013
Search.
Re: Gun Point. -
jamesbond007 - 15.07.2013
Quote:
Originally Posted by RealCop228
Search.
|
Good useful comment.
to get gunpoint, use
https://sampwiki.blast.hk/wiki/GetPlayerCameraFrontVector
and probably MapAndreas
Re: Gun Point. -
xganyx - 15.07.2013
?? can anyone give me a code ?
Re: Gun Point. -
xganyx - 15.07.2013
Help please
Re: Gun Point. -
Necip - 15.07.2013
This is a simple one I made:
pawn Код:
stock CheckPlayerAiming(playerid, Float:x, Float:y, Float:z, Float:radius)
{
new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
GetPlayerCameraPos(playerid, cx, cy, cz);
GetPlayerCameraFrontVector(playerid, fx, fy, fz);
return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
}
Re: Gun Point. -
xganyx - 15.07.2013
Hmm. I want to make another function like createexplosion in the gun point if I want to do that ishould make the command like ? Give me exemple.
Re: Gun Point. -
xganyx - 15.07.2013
help i'm very need this
Re: Gun Point. -
xganyx - 15.07.2013
Help
Re: Gun Point. -
iggy1 - 15.07.2013
This might be useful, you can also get the targets pos if you need that.
https://sampwiki.blast.hk/wiki/GetPlayerTargetPlayer
EDIT: My bad thought by "gun point" you meant a player at gun point, i see that's not the case now.