flip vehicle help
#1

How can i make if player uses KEY_FIRE their vehicle flips back to normal ?
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

    if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if (newkeys & KEY_FIRE) {
            new Float:angle;
            GetVehicleZAngle(vehicleid, angle);
            SetVehicleZAngle(vehicleid, angle);
            RepairVehicle(vehicleid);
        }
       
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)