Advertisement
Guest User

037-compat-fix.inc

a guest
Jul 19th, 2019
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. // built-in include guard removal
  2. // just in case the user has a local dependency with the same file name
  3. #if defined _inc_SAMP037COMPATFIX
  4. #undef _inc_SAMP037COMPATFIX
  5. #endif
  6. // custom include-guard to ensure we don't duplicate
  7. #if defined _SAMP037COMPATFIX_included
  8. #endinput
  9. #endif
  10. #define _SAMP037COMPATFIX_included
  11.  
  12. native scompat_SetPlayerVirtualWorld(playerid, worldid);
  13.  
  14. scmpfix_SetPlayerVirtualWorld(playerid, worldid)
  15. {
  16. if(IsClient037(playerid))
  17. return scompat_SetPlayerVirtualWorld(playerid, worldid);
  18. else
  19. return SetPlayerVirtualWorld(playerid, worldid);
  20. }
  21.  
  22. // Hook
  23. #if defined _ALS_SetPlayerVirtualWorld
  24. #undef SetPlayerVirtualWorld
  25. #else
  26. #define _ALS_SetPlayerVirtualWorld
  27. #endif
  28.  
  29. #define SetPlayerVirtualWorld scmpfix_SetPlayerVirtualWorld
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement