Right mouse click FLIP the car
#4

Oh here is the updated one:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_AIM))
    {
        if (IsPlayerInAnyVehicle(playerid))
        {
            AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
            new currentveh;
            new Float:angle;
            currentveh = GetPlayerVehicleID(playerid);
            GetVehicleZAngle(currentveh, angle);
            SetVehicleZAngle(currentveh, angle);
            SendClientMessage(playerid, 0xFFFFFFFF, "Your vehicle has been flipped.");
        }
    }
    return 1;
}
And remove the * from
pawn Код:
KEY_AIM*                            (128)
Reply


Messages In This Thread
Right mouse click FLIP the car - by SkyWings - 05.04.2012, 12:48
Re: Right mouse click FLIP the car - by Faisal_khan - 05.04.2012, 13:50
Re: Right mouse click FLIP the car - by SkyWings - 05.04.2012, 15:17
Re: Right mouse click FLIP the car - by Faisal_khan - 06.04.2012, 07:02
Re: Right mouse click FLIP the car - by SkyWings - 06.04.2012, 12:31
Re: Right mouse click FLIP the car - by Rob_Maate - 06.04.2012, 12:35
Re: Right mouse click FLIP the car - by MadeMan - 06.04.2012, 12:39
Re: Right mouse click FLIP the car - by Faisal_khan - 06.04.2012, 12:44

Forum Jump:


Users browsing this thread: 1 Guest(s)