Advertisement
Guest User

JunkBusterFS.inc

a guest
Apr 21st, 2011
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.63 KB | None | 0 0
  1. /*
  2. +---------------------------------------------------------------------------+
  3. ¦                        JunkBuster Anti-Cheat                              ¦
  4. ¦                                  by                                       ¦
  5. ¦                           Double-O-Seven                                  ¦
  6. ¦                                                                           ¦
  7. ¦ You should use JunkBuster.inc in your gamemode! If you want to use it in  ¦
  8. ¦ a filterscript, too, include JunkBusterFS.inc!  (#include <JunkBusterFS>) ¦
  9. +---------------------------------------------------------------------------+
  10. */
  11.  
  12. #if defined _JB_included
  13.     #endinput
  14. #endif
  15. #define _JB_included
  16.  
  17. #include <a_samp>
  18.  
  19. forward FS_PutPlayerInVehicle(playerid,vehicleid,seatid);
  20. forward FS_GivePlayerMoney(playerid,amount);
  21. forward FS_ResetPlayerMoney(playerid);
  22. forward FS_GetPlayerMoney(playerid);
  23. forward FS_SetPlayerPos(playerid,Float:x,Float:y,Float:z);
  24. forward FS_SetVehiclePos(vehicleid,Float:x,Float:y,Float:z);
  25. forward FS_GivePlayerWeapon(playerid,weaponid,ammo);
  26. forward FS_SetPlayerHealth(playerid,Float:health);
  27. forward FS_SetPlayerArmour(playerid,Float:armour);
  28. forward FS_SetVehicleHealth(vehicleid,Float:health);
  29. forward FS_TogglePlayerControllable(playerid,toggle);
  30. forward FS_SetVehicleVelocity(vehicleid,Float:x,Float:y,Float:z);
  31. forward FS_SetPlayerSpecialAction(playerid,actionid);
  32.  
  33. public FS_PutPlayerInVehicle(playerid,vehicleid,seatid)
  34.     return CallRemoteFunction("JB_PutPlayerInVehicle","iii",playerid,vehicleid,seatid);
  35.    
  36. public FS_GivePlayerMoney(playerid,amount)
  37.     return CallRemoteFunction("JB_GivePlayerMoney","ii",playerid,amount);
  38.    
  39. public FS_ResetPlayerMoney(playerid)
  40.     return CallRemoteFunction("JB_ResetPlayerMoney","i",playerid);
  41.  
  42. public FS_GetPlayerMoney(playerid)
  43.     return CallRemoteFunction("JB_GetPlayerMoney","i",playerid);
  44.    
  45. public FS_SetPlayerPos(playerid,Float:x,Float:y,Float:z)
  46.     return CallRemoteFunction("JB_SetPlayerPos","ifff",playerid,x,y,z);
  47.  
  48. public FS_SetVehiclePos(vehicleid,Float:x,Float:y,Float:z)
  49.     return CallRemoteFunction("JB_SetVehiclePos","ifff",vehicleid,x,y,z);
  50.    
  51. public FS_SetVehicleVelocity(vehicleid,Float:x,Float:y,Float:z)
  52.     return CallRemoteFunction("JB_SetVehicleVelocity","ifff",vehicleid,x,y,z);
  53.    
  54. public FS_GivePlayerWeapon(playerid,weaponid,ammo)
  55.     return CallRemoteFunction("JB_GivePlayerWeapon","iii",playerid,weaponid,ammo);
  56.    
  57. public FS_SetPlayerHealth(playerid,Float:health)
  58.     return CallRemoteFunction("JB_SetPlayerHealth","if",playerid,health);
  59.    
  60. public FS_SetPlayerArmour(playerid,Float:armour)
  61.     return CallRemoteFunction("JB_SetPlayerArmour","if",playerid,armour);
  62.    
  63. public FS_SetVehicleHealth(vehicleid,Float:health)
  64.     return CallRemoteFunction("JB_SetVehicleHealth","if",vehicleid,health);
  65.    
  66. public FS_TogglePlayerControllable(playerid,toggle)
  67.     return CallRemoteFunction("JB_TogglePlayerControllable","ii",playerid,toggle);
  68.    
  69. public FS_SetPlayerSpecialAction(playerid,actionid)
  70.     return CallRemoteFunction("JB_SetPlayerSpecialAction","ii",playerid,actionid);
  71.    
  72. #define PutPlayerInVehicle FS_PutPlayerInVehicle
  73. #define GivePlayerMoney FS_GivePlayerMoney
  74. #define ResetPlayerMoney FS_ResetPlayerMoney
  75. #define GetPlayerMoney FS_GetPlayerMoney
  76. #define SetPlayerPos FS_SetPlayerPos
  77. #define SetVehiclePos FS_SetVehiclePos
  78. #define GivePlayerWeapon FS_GivePlayerWeapon
  79. #define SetPlayerHealth FS_SetPlayerHealth
  80. #define SetPlayerArmour FS_SetPlayerArmour
  81. #define SetVehicleHealth FS_SetVehicleHealth
  82. #define TogglePlayerControllable FS_TogglePlayerControllable
  83. #define SetVehicleVelocity FS_SetVehicleVelocity
  84. #define SetPlayerSpecialAction FS_SetPlayerSpecialAction
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement