Advertisement
Tom_Tom

[FS]Armi 1.0 By Tom_Tom

May 17th, 2011
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 5.49 KB | None | 0 0
  1. /*******************************************************************************
  2. *                      ---===[FO]Tommy guns Filterscript] ===---               *
  3. *                             --- Version 1.0 ---                              *
  4. *                              "Copyright @ [FO]Tommy"                         *
  5. *                      Si prega di non togliere i diritti.                     *
  6. *******************************************************************************/
  7.  
  8.  
  9. #include <a_samp>
  10. //COLORI//
  11. #define COLOR_YELLOWGREEN 0x9ACD32AA     //verde militare
  12. #define COLOR_GREY 0xAFAFAFAA            //grigio
  13. #define COLOR_LIGHTGREEN 0x81F628AA      //verde chiaro
  14. #define COLOR_YELLOW 0xFFFF00AA          //giallo
  15. #define COLOR_LIGHTBLUE 0x33CCFFAA       //azzurro
  16. #define COLOR_BLUE 0x0050F6AA            //blu
  17. #define COLOR_GREEN 0x33AA33AA           // verde
  18. #define COLOR_RED 0xF60000AA             // rosso
  19. #define COLOR_ORANGE 0xFF9900AA          //arancione
  20. #define COLOR_LIGHTRED 0xF60000AA        //rosso acceso
  21. #define COLOR_WHITE 0xFFFFFFFF           //bianco
  22. #define COLOR_BLACK 0x000000AA           //nero
  23. #define COLOR_PINK 0xFF66FFAA            //rosa
  24. #define COLOR_GOLD 0xE3B515AA            //oro
  25. //FINE COLORI//
  26.  
  27. public OnFilterScriptInit()
  28. {
  29.     print("\n--------------------------------------");
  30.     print(" Armi By [FO]Tommy LOADED");
  31.     print("--------------------------------------\n");
  32.     return 1;
  33. }
  34.  
  35. public OnFilterScriptExit()
  36. {
  37.     print("\n--------------------------------------");
  38.     print(" Armi By [FO]Tommy UNLOADED");
  39.     print("--------------------------------------\n");
  40.     return 1;
  41. }
  42.  
  43. public OnPlayerCommandText(playerid, cmdtext[])
  44. {
  45.   if (strcmp(cmdtext, "/armi", true) == 0)
  46.   {
  47.   SendClientMessage(playerid, COLOR_GREEN, "****   ARMI DISPONIBILI A COSTO 500$ OGNIUNA    ****");
  48.   SendClientMessage(playerid, -1, "/9mm - /Desert");
  49.   SendClientMessage(playerid, -1, "/Granate /Coltello");
  50.   SendClientMessage(playerid, -1, "/SMG /Tec9");
  51.   SendClientMessage(playerid, COLOR_RED, "Per le armi costose oltre i 1000$ e potenti scrivi /armi2");
  52.   return 1;
  53.   }
  54.   if (strcmp(cmdtext, "/armi2", true) == 0)
  55. {
  56.   SendClientMessage(playerid, COLOR_GREEN, "****    ARMI PESANTI DISPONIBILI    ****");
  57.   SendClientMessage(playerid, COLOR_RED, "/FPM 4000$ 1000 Muniz.");
  58.   SendClientMessage(playerid, COLOR_RED, "/FPM 5000$ 1000 Muniz.");
  59.   SendClientMessage(playerid, COLOR_RED, "/AK-47 3000$ 1000 Muniz.");
  60.   SendClientMessage(playerid, COLOR_RED, "/RPG 5000$ 500 Muniz.");
  61.   SendClientMessage(playerid, COLOR_RED, "/MP5 3000$ 1000 Muniz.");
  62.   return 1;
  63.   }
  64.   if(strcmp(cmdtext, "/9mm", true) == 0)
  65.   {
  66.   GivePlayerWeapon(playerid, 22, 1000);
  67.   GivePlayerMoney(playerid, -250);
  68.   SendClientMessage(playerid, COLOR_PINK, "Hai comprato una 9mm con 1000 Munizioni, al costo di 250$");
  69.   return 1;
  70.   }
  71.   if(strcmp(cmdtext, "/desert", true) == 0)
  72.   {
  73.   GivePlayerWeapon(playerid, 24, 1000);
  74.   GivePlayerMoney(playerid, -500);
  75.   SendClientMessage(playerid, COLOR_GREEN, "Ha comprato una DesertEagle con 1000 Munizioni, ti sono costate 500$");
  76.   return 1;
  77.   }
  78.   if(strcmp(cmdtext, "/granate", true) == 0)
  79.   {
  80.   GivePlayerWeapon(playerid, 16, 500);
  81.   GivePlayerMoney(playerid, -1000);
  82.   SendClientMessage(playerid, COLOR_GREEN, "Hai comprato 500 Granate, ti sono costate 1000$");
  83.   return 1;
  84.   }
  85.   if(strcmp(cmdtext, "/coltello", true) == 0)
  86.   {
  87.   GivePlayerWeapon(playerid, 4, 1);
  88.   GivePlayerMoney(playerid, -100);
  89.   SendClientMessage(playerid, COLOR_YELLOW, "Hai comprato un coltello al costo di 100$");
  90.   return 1;
  91.   }
  92.   if(strcmp(cmdtext, "/fpm", true) == 0)
  93.   {
  94.   GivePlayerWeapon(playerid, 26, 1000);
  95.   GivePlayerMoney(playerid, -4000);
  96.   SendClientMessage(playerid, COLOR_LIGHTBLUE, "Hai comprato un fucile a pompa con 1000 munizioni.");
  97.   return 1;
  98.   }
  99.   if(strcmp(cmdtext, "/fcm", true) == 0)
  100.   {
  101.   GivePlayerWeapon(playerid, 27, 1000);
  102.   GivePlayerMoney(playerid, -5000);
  103.   SendClientMessage(playerid, COLOR_LIGHTRED, "Hai comprato un fulcile a pompa da combattimento con 1000 munizzioni");
  104.   return 1;
  105.   }
  106.   if(strcmp(cmdtext, "/smg", true) == 0)
  107.   {
  108.   GivePlayerWeapon(playerid, 29, 1000);
  109.   GivePlayerMoney(playerid, -1000);
  110.   SendClientMessage(playerid, COLOR_YELLOW, "Hai comprato un SMG con 1000 Munizioni e la hai pagata 1000$");
  111.   return 1;
  112.   }
  113.   if(strcmp(cmdtext, "/tec9", true) == 0)
  114.   {
  115.   GivePlayerWeapon(playerid, 32, 5000);
  116.   GivePlayerMoney(playerid, -1000);
  117.   SendClientMessage(playerid, COLOR_YELLOW, "Hai comprato un Tec9 con 5000 Munizioni e la hai pagata 1000$");
  118.   return 1;
  119.   }
  120.   if(strcmp(cmdtext, "/uzi", true) == 0)
  121.   {
  122.   GivePlayerWeapon(playerid, 28, 1000);
  123.   GivePlayerMoney(playerid, -800);
  124.   SendClientMessage(playerid, COLOR_LIGHTGREEN, "Hai Comprato due mitragliette Uzi con 1000 Munizioni al costo di 800$");
  125.   return 1;
  126.   }
  127.   if(strcmp(cmdtext, "/ak47", true) == 0)
  128.   {
  129.   GivePlayerWeapon(playerid, 30, 1000);
  130.   GivePlayerMoney(playerid, -3000);
  131.   SendClientMessage(playerid, COLOR_GREEN, "Hai comprato un AK-47 con 1000 Munizioni.");
  132.   return 1;
  133.   }
  134.   if(strcmp(cmdtext, "/rpg", true) == 0)
  135.   {
  136.   GivePlayerWeapon(playerid, 35, 500);
  137.   GivePlayerMoney(playerid, -5000);
  138.   SendClientMessage(playerid, COLOR_RED, "Hai comprato un RPG con 500 Munizioni!");
  139.   return 1;
  140.   }
  141.   if(strcmp(cmdtext, "/mp5", true) == 0)
  142.   {
  143.   GivePlayerWeapon(playerid, 29, 1000);
  144.   GivePlayerMoney(playerid, -3000);
  145.   SendClientMessage(playerid, COLOR_LIGHTRED, "Hai comprato un MP5 con 1000 Munizioni.");
  146.   return 1;
  147.   }
  148.   return 1;
  149.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement