Ewwe

GetVehicleGroup

Feb 23rd, 2013
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.85 KB | None | 0 0
  1. #define     MODEL_TYPE_HELICOPTERS  (0)
  2. #define     MODEL_TYPE_PLANES       (1)
  3. #define     MODEL_TYPE_BOATS        (2)
  4. #define     MODEL_TYPE_BIKES        (3)
  5. #define     MODEL_TYPE_MOTORBIKES   (4)
  6. #define     MODEL_TYPE_RC           (5)
  7. #define     MODEL_TYPE_CARS         (6)
  8. #define     MODEL_TYPE_UNKNOWN      (-1)
  9.  
  10. stock GetVehicleGroup(vehicleid)
  11. {
  12.     new model = GetVehicleModel(vehicleid);
  13.     switch(model)
  14.     {
  15.         case 548,425,417,487,488,497,563,447,469:return MODEL_TYPE_HELICOPTERS;
  16.         case 460,476,511,512,513,519,520,553,577,592,593:return MODEL_TYPE_PLANES;
  17.         case 472,473,493,595,484,430,453,452,446,454:return MODEL_TYPE_BOATS;
  18.         case 509,481,510:return MODEL_TYPE_BIKES;
  19.         case 462,448,581,522,461,521,523,463,586,468,471:return MODEL_TYPE_MOTORBIKES;
  20.         case 441,464,465,501,564,594:return MODEL_TYPE_RC;
  21.         default :return MODEL_TYPE_CARS;
  22.  
  23.     }
  24.     return MODEL_TYPE_UNKNOWN;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment