Guest User

[INC]Don't Fall Off The Bikes

a guest
Feb 17th, 2012
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.19 KB | None | 0 0
  1. #tryinclude <a_samp>
  2. #if defined dontfalloff_included
  3.     #error You already included dontfalloff.inc!
  4. #endif
  5.  
  6. stock temp_RemovePlayerFromVehicle(playerid)
  7. {
  8.     CallRemoteFunction("DontFallOff", "d", playerid);
  9.     return RemovePlayerFromVehicle(playerid);
  10. }
  11.  
  12. #if defined _ALS_RemovePlayerFromVehicle //This checks if SetPlayerScore is defined
  13.     #undef RemovePlayerFromVehicle //This undefines it, so you can hook it with the function above
  14. #else
  15.     #define _ALS_RemovePlayerFromVehicle //This defines it if it's not defined
  16. #endif
  17. #define RemovePlayerFromVehicle temp_RemovePlayerFromVehicle //This defines the default function as our function "My_SetPlayerScore"
  18.  
  19. stock temp_SetPlayerPos(playerid, Float:x, Float:y, Float:z)
  20. {
  21.     CallRemoteFunction("DontFallOff", "d", playerid);
  22.     return SetPlayerPos(playerid, Float:x, Float:y, Float:z);
  23. }
  24.  
  25. #if defined _ALS_SetPlayerPos //This checks if SetPlayerScore is defined
  26.     #undef SetPlayerPos //This undefines it, so you can hook it with the function above
  27. #else
  28.     #define _ALS_SetPlayerPos //This defines it if it's not defined
  29. #endif
  30. #define SetPlayerPos temp_SetPlayerPos //This defines the default function as our function "My_SetPlayerScore"
Advertisement
Add Comment
Please, Sign In to add comment