I ain't touching anything that hot! - vehicle id's needed
#7

ok.. so I tested every special car...
here is a function: you might need to use it one day

pawn Код:
stock IsValidPayNSprayVehicle(vehicleid)
{
    new InvalidVehicles[13] =
    {
        407, //firetruck
        416, //ambulance
        427, //enforcer
        432, //rhino
        433, //barracks
        490, //fbi rancher
        528, //fbi truck
        532, //hpv1000
        596, //police car lspd
        597, //police car sfpd
        598, //police car lvpd
        599, //police ranger
        601 //s.w.a.t. car
    };
    for(new i=0; i<13; i++)
    {
        if(GetVehicleModel(vehicleid) == InvalidVehicles[i])
        {
            return 0;
        }
    }
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)