Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define MODEL_TYPE_HELICOPTERS (0)
- #define MODEL_TYPE_PLANES (1)
- #define MODEL_TYPE_BOATS (2)
- #define MODEL_TYPE_BIKES (3)
- #define MODEL_TYPE_MOTORBIKES (4)
- #define MODEL_TYPE_RC (5)
- #define MODEL_TYPE_CARS (6)
- #define MODEL_TYPE_UNKNOWN (-1)
- stock GetVehicleGroup(vehicleid)
- {
- new model = GetVehicleModel(vehicleid);
- switch(model)
- {
- case 548,425,417,487,488,497,563,447,469:return MODEL_TYPE_HELICOPTERS;
- case 460,476,511,512,513,519,520,553,577,592,593:return MODEL_TYPE_PLANES;
- case 472,473,493,595,484,430,453,452,446,454:return MODEL_TYPE_BOATS;
- case 509,481,510:return MODEL_TYPE_BIKES;
- case 462,448,581,522,461,521,523,463,586,468,471:return MODEL_TYPE_MOTORBIKES;
- case 441,464,465,501,564,594:return MODEL_TYPE_RC;
- default :return MODEL_TYPE_CARS;
- }
- return MODEL_TYPE_UNKNOWN;
- }
Advertisement
Add Comment
Please, Sign In to add comment