SA-MP Forums Archive
Check if vehicle need flip - 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: Check if vehicle need flip (/showthread.php?tid=269112)



Check if vehicle need flip - whitedragon - 14.07.2011

How check if on hood?


Re: Check if vehicle need flip - CyNiC - 15.07.2011

pawn Код:
GetVehicleNeedFlip(vehicleid)//return 1 if need, 0 if not
{
    new Float:Quat[2];
    GetVehicleRotationQuat(vehicleid, Quat[0], Quat[1], Quat[0], Quat[0]);
    return (Quat[1] >= 0.60 || Quat[1] <= -0.60);
}