Nitro and plane?
#1

I have a problem...
I have the Holding and Reaslied key for nitro, the problem is with the air vehicles and bikes.
If some player spawns a air vehicle or bike and uses a nitro, the game crashes.
How to make that, like it wont add a nitro to air vehicle and bike?

Reply
#2

pawn Код:
IsValidNOS(vehid)
{
    switch(GetVehicleModel(vehid))
    {
        case 581,523,462,521,463,522,461,448,468,586,
        509,481,510,472,473,493,595,484,430,453,
        452,446,454,590,569,537,538,570,449: {return 0;}

        default:{ return 1; }
    }
}


//OnPlayerKeyStateChange
//IsPlayerInAnyVehicle
        if(IsValidNos(GetPlayerVehicleID(playerid)))
        {
              //add nitro
        }
Reply
#3

Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)