18.03.2012, 02:19
its not much but is my addition..
some marcos to check a vehicle type,
it does not include every model because in my gm all other models will not have a job/objective tied to it.
might be usefull for a RPGM or the likes.,
tested and compiled!
usage
if there's a need for a version of this using stocks instead of marcos just ask as i have converted
all these from stocks.
some marcos to check a vehicle type,
it does not include every model because in my gm all other models will not have a job/objective tied to it.
might be usefull for a RPGM or the likes.,
tested and compiled!
pawn Код:
#define IsASemi(%0) ((%0) == 403 || (%0) == 514 || (%0) == 515 || (%0) == 443)
#define IsATrailor(%0) ((%0) == 435 || (%0) == 450 || (%0) == 584 || (%0) == 591 || (%0) == 606 || (%0) == 607 || (%0) == 608 || (%0) == 610 || (%0) == 611)
#define IsACopCar(%0) ((%0) == 523 || (%0) == 427 || (%0) == 490 || (%0) == 528 || (%0) == 596 || (%0) == 598 || (%0) == 597 || (%0) == 599 || (%0) == 601)
#define IsAMotorBike(%0) ((%0) == 462 || (%0) == 448 || (%0) == 581 || (%0) == 522 || (%0) == 461 || (%0) == 521 || (%0) == 523 || (%0) == 463 || (%0) == 586 || (%0) == 468)
#define IsABike(%0) ((%0) == 809 || (%0) == 481 || (%0) == 510)
#define IsAPizzaBike(%0) ((%0) == 448)
#define IsAFireTruck(%0) ((%0) == 407 || (%0) == 544)
#define IsATaxi(%0) ((%0) == 438 || (%0) == 420)
#define IsABus(%0) ((%0) == 431 || (%0) == 437)
#define IsAAmbulance(%0) ((%0) == 416)
#define IsALimo(%0) ((%0) == 409)
#define IsAPlane(%0) ((%0) == 460 || (%0) == 476 || (%0) == 511 || (%0) == 512 || (%0) == 513 || (%0) == 519 || (%0) == 520 || (%0) == 553 || (%0) == 577 || (%0) == 592 || (%0) == 593)
#define IsAHeli(%0) ((%0) == 542 || (%0) == 425 || (%0) == 417 || (%0) == 487 || (%0) == 488 || (%0) == 497 || (%0) == 563 || (%0) == 447 || (%0) == 469)
#define IsABoat(%0) ((%0) == 472 || (%0) == 473 || (%0) == 493 || (%0) == 595 || (%0) == 484 || (%0) == 430 || (%0) == 453 || (%0) == 452 || (%0) == 446 || (%0) == 454)
#define IsATrashTruck(%0) ((%0) == 408)
pawn Код:
if(IsASemi(vehiclemodelid)){/*code here*/}
all these from stocks.