27.06.2011, 22:13
Something like this:
To use:
pawn Код:
stock IsABike(vid)
{
new modelid = GetVehicleModel(vid);
if(modelid == 509||modelid ==510||modelid ==581||modelid ==522||modelid ==521||modelid ==523||modelid ==586||modelid ==481||modelid ==462||modelid ==448||modelid ==461||modelid ==463||modelid ==468||modelid ==471) return 1;
else return 0;
}
pawn Код:
if(IsABike(vid)) //checks to see if the given vehicle ID is a bike