Swerdder

Bullet Bomb - Geminotz

Aug 2nd, 2014
816
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.01 KB | None | 0 0
  1. /*
  2. --------------------------------------------------------
  3.                  - Minigun Bomb FS -                    |
  4. Contact:                                                |
  5.                                                         |
  6.     - Facebook "Gemini Tazmania A.K.A Muhammad AbiL"    |
  7.     - Website "www.Geminotz.hol.es"                     |
  8.     - Blog  "www.gemini-ganteng.blogspot.com"           |
  9.                                                         |
  10. --------------------------------------------------------
  11. */
  12.  
  13. #include <a_samp>
  14. #include <zcmd>
  15.  
  16. //**COLORS*//
  17. #define COLOR_GREY 0xAFAFAFAA
  18. #define COLOR_GREEN 0x33AA33AA
  19. #define COLOR_RED 0xAA3333AA
  20. #define COLOR_YELLOW 0xFFFF00AA
  21. #define COLOR_WHITE 0xFFFFFFAA
  22. #define COLOR_BLUE 0x0000FFAA
  23. #define blue 0x0000FFAA
  24. #define COLOR_BROWN 0x993300AA
  25. #define COLOR_ORANGE 0xFF9933AA
  26. #define COLOR_CYAN 0x99FFFFAA
  27. #define COLOR_PINK 0xFF66FFAA
  28. #define COLOR_BLACK 0x2C2727AA
  29. #define COLOR_LIGHTCYAN 0xAAFFCC33
  30. #define COLOR_LEMON 0xDDDD2357
  31. #define COLOR_AQUA 0x7CFC00AA
  32. #define COLOR_WHITEYELLOW 0xFFE87DFF
  33. #define COLOR_BLUEAQUA 0x7E60FFFF
  34. #define COLOR_DARKBLUE 0x15005EFF
  35. #define COLOR_ALIEN 0x90FF87FF
  36. #define COLOR_GOLD 0xB8860BAA
  37. #define KICK_COLOR 0xFF0000FF
  38. #define COLOR_GANGGREEN 0x00FF0096
  39. #define COLOR_BLACK 0x2C2727AA
  40. #define COLOR_SBLUE 0x00BFFFAA
  41. #define COLOR_LBLUE 0x15D4EDAA
  42.  
  43. new MBOM[MAX_PLAYERS];
  44.  
  45. public OnFilterScriptInit()
  46. {
  47.     print("\n-------> Filterscript <----------");
  48.     print("----- | Minigun Bomb Loaded | -----");
  49.     print("-------> T-A-Z-M-A-N-I-A-X <--------\n");
  50.     return 1;
  51. }
  52.  
  53. public OnFilterScriptExit()
  54. {
  55.     print("\n-------> Filterscript <----------");
  56.     print("----- | Minigun Bomb UNLoaded | -----");
  57.     print("-------> T-A-Z-M-A-N-I-A-X <--------\n");
  58.     return 1;
  59. }
  60.  
  61. CMD:mbom(playerid, params[])
  62. {
  63.     if(IsPlayerAdmin(playerid))
  64.     {
  65.         if(MBOM[playerid] == 0)
  66.         {
  67.             MBOM[playerid] = 1;
  68.             GivePlayerWeapon(playerid, 38, 99999);
  69.             // THOR MODE (LOL)
  70.             SetPlayerHealth(playerid, 99999999);
  71.             SendClientMessage(playerid, COLOR_LBLUE, "(SERVER): {FFFFFF}Minigun bomb is Actived");
  72.         }
  73.         else
  74.         {
  75.             MBOM[playerid] = 0;
  76.             SetPlayerHealth(playerid, 100);
  77.             SendClientMessage(playerid, COLOR_LBLUE, "(SERVER): {FFFFFF}Minigun Bomb is Detecative");
  78.         }
  79.     }
  80.     else SendClientMessage(playerid, COLOR_RED, "<!> You Are not Administrator Fools");
  81.     return 1;
  82. }
  83.  
  84. forward OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ);
  85.  
  86. public OnPlayerConnect(playerid)
  87. {
  88.     MBOM[playerid] = 0;
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerDisconnect(playerid, reason)
  93. {
  94.     MBOM[playerid] = 0;
  95.     return 1;
  96. }
  97.  
  98. public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
  99. {
  100.     if(MBOM[playerid] == 1)
  101.     {
  102.         new szString[144];
  103.         format(szString, sizeof(szString), "Weapon %i fired. hittype: %i   hitid: %i   pos: %f, %f, %f", weaponid, hittype, hitid, fX, fY, fZ);
  104.         SendClientMessage(playerid, -1, szString);
  105.         CreateExplosion(fX, fY, fZ, 2, 10);
  106.     }
  107.     return 1;
  108. }
Advertisement
Add Comment
Please, Sign In to add comment