Advertisement
Guest User

Untitled

a guest
Jun 6th, 2011
524
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. #define FILTERSCRIPT
  2.  
  3. #include <a_samp>
  4.  
  5. #define red 0xFF0000
  6. #define creator "Max_Coldheart"
  7. #define version "1.0"
  8.  
  9. #if defined FILTERSCRIPT
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" ColdBuster by Max_Coldheart");
  15. print(" version 1.0");
  16. print("--------------------------------------\n");
  17. return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22. return 1;
  23. }
  24.  
  25. #endif
  26.  
  27. public OnPlayerSpawn(playerid)
  28. {
  29. SetPlayerArmour(playerid, 99);
  30. return 1;
  31. }
  32. public OnPlayerUpdate(playerid)
  33. {
  34. if(GetPlayerWeapon(playerid) == WEAPON_MINIGUN || GetPlayerWeapon(playerid) == 16 || GetPlayerWeapon(playerid) == 17 || GetPlayerWeapon(playerid) == 18 || GetPlayerWeapon(playerid) == WEAPON_SATCHEL || GetPlayerWeapon(playerid) == WEAPON_ROCKETLAUNCHER)
  35. {
  36. new sendername[MAX_PLAYER_NAME];
  37. new string[128];
  38. GetPlayerName(playerid, sendername, sizeof(sendername));
  39. format(string, 128, "%s has been banned by ColdBuster. Reason: Weapon Hack", sendername);
  40. SendClientMessageToAll(red, string);
  41. TogglePlayerControllable(playerid, 0);
  42. BanEx(playerid, "Weapon Hack");
  43. return 1;
  44. }
  45. if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK)
  46. {
  47. new sendername[MAX_PLAYER_NAME];
  48. new string[128];
  49. GetPlayerName(playerid, sendername, sizeof(sendername));
  50. format(string, 256, "%s has been banned by ColdBuster. Reason: Jetpack hack", sendername);
  51. SendClientMessageToAll(red, string);
  52. BanEx(playerid, "Jetpack Hack");
  53. return 1;
  54. }
  55. new Float:health;
  56. if(GetPlayerHealth(playerid, health) > 999999)
  57. {
  58. new sendername[MAX_PLAYER_NAME];
  59. new string[128];
  60. GetPlayerName(playerid, sendername, sizeof(sendername));
  61. format(string, 128, "%s has been banned by ColdBuster. reason: Health Hack", sendername);
  62. SendClientMessageToAll(red, string);
  63. TogglePlayerControllable(playerid, 0);
  64. BanEx(playerid, "Health Hack");
  65. return 1;
  66. }
  67. new Float:armor;
  68. if(GetPlayerArmour(playerid, armor) == 100)
  69. {
  70. new sendername[MAX_PLAYER_NAME];
  71. new string[128];
  72. GetPlayerName(playerid, sendername, sizeof(sendername));
  73. format(string, 128, "%s has been banned by ColdBuster. reason: Armor Hack", sendername);
  74. SendClientMessageToAll(red, string);
  75. TogglePlayerControllable(playerid, 0);
  76. BanEx(playerid, "Armor Hack");
  77. return 1;
  78. }
  79. return 1;
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement