Most efficient way..
#1

Of making a car do a front flip, i've got this code but all it does is does any random flip.
pawn Код:
if(newkeys & KEY_ANALOG_UP)
    {
        if(IsInDerby[playerid] == 1) return SendClientMessage(playerid, COLOR_WHITE, "ERROR: You can't use this in the derby!");
        SetVehicleVelocity(GetPlayerVehicleID(playerid), 0.0, 0.0, 0.2);
        SetVehicleAngularVelocity(GetPlayerVehicleID(playerid), 0.2, 0.0, 0.0);
        SetVehicleHealth(GetPlayerVehicleID(playerid), 1000000000.0);
        GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~y~WOW, NICE FLIP!!", 6000, 3);
    }
Thanks. Can it also be made so that it doesn't slow the player down when flipping, so he's still doing his speed when flipping.
Reply


Messages In This Thread
Most efficient way.. - by Luis- - 15.01.2012, 23:31
Re: Most efficient way.. - by Luis- - 16.01.2012, 01:57
Re: Most efficient way.. - by coole210 - 16.01.2012, 02:28
Re: Most efficient way.. - by CyNiC - 16.01.2012, 02:39
Re: Most efficient way.. - by Luis- - 16.01.2012, 11:33

Forum Jump:


Users browsing this thread: 1 Guest(s)