SA-MP Forums Archive
Getting the amount of angles you turned. - 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: Getting the amount of angles you turned. (/showthread.php?tid=65713)



Getting the amount of angles you turned. - Think - 15.02.2009

hey

i want to collect the amount of angles you turned if you press and hold your handbrake i got this already..

pawn Код:
if(PRESSING(newkeys, KEY_HANDBRAKE))
        {
          GetVehicleZAngle(currentveh, z_rot);
          format(kmteller, sizeof(kmteller),"Angle:%03f", z_rot);
        }



Re: Getting the amount of angles you turned. - SpiderPork - 15.02.2009

Код:
GameTextForPlayer(playerid, kmteller, 5, 5000);
Or w.e. you wish.


Re: Getting the amount of angles you turned. - Think - 15.02.2009

Quote:
Originally Posted by SpiderPork
Код:
GameTextForPlayer(playerid, kmteller, 5, 5000);
Or w.e. you wish.
-_- do you think that im a retard or something i need the amount of angles you turned when pressed handbreak like i go around the corner with ** degree angle and i want to collect that i now got the angle the vehicle is facing


Re: Getting the amount of angles you turned. - rensfromrpas - 15.02.2009

Quote:
Originally Posted by Pandabeer1337
hey

i want to collect the amount of angles you turned if you press and hold your handbrake i got this already..

pawn Код:
if(PRESSING(newkeys, KEY_HANDBRAKE))
        {
          GetVehicleZAngle(currentveh, z_rot);
          format(kmteller, sizeof(kmteller),"Angle:%03f", z_rot);
        }
tip: you shouldnt use keystatechange(if youre no already do)
but use a timer and use GetPlayerKeys
if you wanted to hold