vehicle_sync.inc 881 B

1234567891011121314151617181920212223
  1. /*
  2. *
  3. * Thanks to iggy1 for the blank base.
  4. *
  5. * Anti-Vehicle Sync Teleportation!
  6. *
  7. *
  8. */
  9. /* ** Useful Functions ** */
  10. native SetVehicleSyncDebug( toggle = 1 );
  11. native IsVehicleOccupied( vehicleid );
  12. /* ** Functions being hooked ** */
  13. native vs_SetVehiclePos( vehicleid, Float: X, Float: Y, Float: Z );
  14. native vs_CreateVehicle( vehicle_type, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2, respawn_delay );
  15. native vs_AddStaticVehicle( modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2 );
  16. native vs_AddStaticVehicleEx( modelid, Float: spawn_x, Float: spawn_y, Float: spawn_z, Float: z_angle, color1, color2, respawn_delay );
  17. #define SetVehiclePos vs_SetVehiclePos
  18. #define AddStaticVehicleEx vs_AddStaticVehicleEx
  19. #define AddStaticVehicle vs_AddStaticVehicle
  20. #define CreateVehicle vs_CreateVehicle