SHOW:
|
|
- or go back to the newest paste.
| 1 | //Made By superrobot48 | |
| 2 | - | #if defined _vehcheck_included |
| 2 | + | //Thanks to JFF for helping me with the arrays |
| 3 | - | #endinput |
| 3 | + | |
| 4 | - | #endif |
| 4 | + | native IsVehicleFlyingVehicle(vehicleid); |
| 5 | native IsVehicleLandVehicle(vehicleid); | |
| 6 | native IsVehicleBoat(vehicleid); | |
| 7 | native IsVehicleBike(vehicleid); | |
| 8 | */ | |
| 9 | - | native IsPlayerInFlyingVehicle(vehicleid); |
| 9 | + | |
| 10 | - | native IsPlayerInCar(vehicleid); |
| 10 | + | new Boat[] = { 472, 473, 493, 495, 484,
|
| 11 | - | native IsPlayerInBoat(vehicleid); |
| 11 | + | 430, 453, 452, 446, 454, |
| 12 | 595 | |
| 13 | }; | |
| 14 | - | new planes[] = |
| 14 | + | |
| 15 | new AirVeh[] = { 592, 577, 511, 512, 593,
| |
| 16 | - | "460", |
| 16 | + | 520, 553, 476, 519, 460, |
| 17 | - | "476", |
| 17 | + | 513, 548, 425, 417, 487, |
| 18 | - | "511", |
| 18 | + | 488, 497, 563, 447, 469 |
| 19 | - | "512", |
| 19 | + | |
| 20 | - | "513", |
| 20 | + | |
| 21 | - | "519", |
| 21 | + | new Bike[] = { 509, 481, 510, 462, 448,522, 581, 521, 523, 463, 586, 468, 471
|
| 22 | - | "520", |
| 22 | + | |
| 23 | - | "533", |
| 23 | + | |
| 24 | - | "577", |
| 24 | + | stock IsVehicleFlyingVehicle(vehicleid) |
| 25 | - | "592", |
| 25 | + | |
| 26 | - | "593", |
| 26 | + | for(new i = 0; i < sizeof(AirVeh); i++) |
| 27 | - | "548", |
| 27 | + | |
| 28 | - | "425", |
| 28 | + | if(GetVehicleModel(vehicleid) == AirVeh[i]) return 1; |
| 29 | - | "417", |
| 29 | + | } |
| 30 | - | "487", |
| 30 | + | return 0; |
| 31 | - | "488", |
| 31 | + | |
| 32 | - | "497", |
| 32 | + | |
| 33 | - | "563", |
| 33 | + | stock IsVehicleBoat(vehicleid) |
| 34 | - | "477", |
| 34 | + | |
| 35 | - | "469" |
| 35 | + | for(new i = 0; i < sizeof(Boat); i++) |
| 36 | {
| |
| 37 | if(GetVehicleModel(vehicleid) == Boat[i]) return 1; | |
| 38 | - | stock IsPlayerInFlyingVehicle(vehicleid) |
| 38 | + | } |
| 39 | return 0; | |
| 40 | - | if(planes[GetVehicleModel(vehicleid)]) |
| 40 | + | |
| 41 | ||
| 42 | - | return 1; |
| 42 | + | stock IsVehicleBike(vehicleid) |
| 43 | - | } |
| 43 | + | |
| 44 | - | return 0; |
| 44 | + | for(new i = 0; i < sizeof(Bike); i++) |
| 45 | {
| |
| 46 | if(GetVehicleModel(vehicleid) == Bike[i]) return 1; | |
| 47 | - | stock IsPlayerInBoat(vehicleid) |
| 47 | + | } |
| 48 | return 0; | |
| 49 | - | if(GetVehicleModel(vehicleid) == 472 || GetVehicleModel(vehicleid) == 473 || GetVehicleModel(vehicleid) == 493 || |
| 49 | + | |
| 50 | - | GetVehicleModel(vehicleid) == 495 || GetVehicleModel(vehicleid) == 484 || GetVehicleModel(vehicleid) == 430 || |
| 50 | + | |
| 51 | - | GetVehicleModel(vehicleid) == 453 || GetVehicleModel(vehicleid) == 452 || GetVehicleModel(vehicleid) == 446 || |
| 51 | + | stock IsVehicleLandVehicle(vehicleid) |
| 52 | - | GetVehicleModel(vehicleid) == 454 || GetVehicleModel(vehicleid) == 595 ) |
| 52 | + | |
| 53 | if(!IsVehicleBoat(vehicleid) && !IsVehicleFlyingVehicle(vehicleid) && IsVehicleBike(vehicleid)) | |
| 54 | - | return 1; |
| 54 | + | {
|
| 55 | - | } |
| 55 | + | return 1; |
| 56 | - | return 0; |
| 56 | + | } |
| 57 | return 0; | |
| 58 | } |