Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2011
146
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 8.81 KB | None
  1. {
  2. if (strcmp("/weaponshop", cmdtext, true, 10) == 0)
  3. {
  4. ShowPlayerDialog(playerid, 1, 0,"Weapons Shop","{0000FF}Weapons Shop - Listino Armi :\n{FF00FF}Pistole : /9mm (235) /silenced (220) /deagle (315)\n{9200FF}Mitragliatrici : /micro_uzi (395) /tec9 (425) /mp5 (450)\n{FFFFFF}Fucili normali : /shotgun (500) /sawn-off (750) /comb-shotgun (625)\n{7300FF}Fucili potenti : /m4 (935) /ak47 (965)\n{00FFFF}Fucili pesanti : /sniper (1250) /country (1115)\n{00FFFF}Armi pesanti : /rpg (2195) /rockeths (2235) /flame (2375) /minigun (3190)\n{0064FF}Armi da lancio : /granate (1925) /gas (1750) /esplosivi (2735) /monotolv (2575)","Ok","Annulla");
  5. return 1;
  6. }
  7.     if(!strcmp(cmdtext, "/9mm", true))
  8.     if (GetPlayerMoney(playerid) >= 235)
  9.     {
  10.     GivePlayerWeapon(playerid, 22, 500 );
  11.     GivePlayerMoney(playerid,-235);
  12.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato una 9mm a 235 $");
  13.     return 1;
  14.     }
  15.     else
  16.     {
  17.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  18.     return 1;
  19.     }
  20.    if(!strcmp(cmdtext, "/silenced", true))
  21.     if (GetPlayerMoney(playerid) >= 220)
  22.     {
  23.     GivePlayerWeapon(playerid, 23, 350 );
  24.     GivePlayerMoney(playerid,-220);
  25.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato una Silenced 9mm a 220 $");
  26.     return 1;
  27.     }
  28.     else
  29.     {
  30.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  31.     return 1;
  32.     }
  33.    if(!strcmp(cmdtext, "/deagle", true))
  34.     if (GetPlayerMoney(playerid) >= 315)
  35.     {
  36.     GivePlayerWeapon(playerid, 24, 500 );
  37.     GivePlayerMoney(playerid,-315);
  38.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato una Desert Eagle (Deagle) a 310 $");
  39.     return 1;
  40.     }
  41.     else
  42.     {
  43.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  44.     return 1;
  45.     }
  46.    if(!strcmp(cmdtext, "/micro_uzi", true))
  47.     if (GetPlayerMoney(playerid) >= 395)
  48.     {
  49.     GivePlayerWeapon(playerid, 28, 750 );
  50.     GivePlayerMoney(playerid,-395);
  51.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un Micro_Uzi a 395 $");
  52.     return 1;
  53.     }
  54.     else
  55.     {
  56.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  57.     return 1;
  58.     }
  59.    if(!strcmp(cmdtext, "/tec9", true))
  60.     if (GetPlayerMoney(playerid) >= 425)
  61.     {
  62.     GivePlayerWeapon(playerid, 32, 750 );
  63.     GivePlayerMoney(playerid,-425);
  64.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un Tec-9 a 425 $");
  65.     return 1;
  66.     }
  67.     else
  68.     {
  69.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  70.     return 1;
  71.     }
  72.    if(!strcmp(cmdtext, "/mp5", true))
  73.     if (GetPlayerMoney(playerid) >= 450)
  74.     {
  75.     GivePlayerWeapon(playerid, 29, 625 );
  76.     GivePlayerMoney(playerid,-450);
  77.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un MP5 a 450 $");
  78.     return 1;
  79.     }
  80.     else
  81.     {
  82.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  83.     return 1;
  84.     }
  85.    if(!strcmp(cmdtext, "/shotgun", true))
  86.     if (GetPlayerMoney(playerid) >= 500)
  87.     {
  88.     GivePlayerWeapon(playerid, 25, 50);
  89.     GivePlayerMoney(playerid,-500);
  90.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato uno Shotgun a 500 $");
  91.     return 1;
  92.     }
  93.     else
  94.     {
  95.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  96.     return 1;
  97.     }
  98.    if(!strcmp(cmdtext, "/sawn-off", true))
  99.     if (GetPlayerMoney(playerid) >= 750)
  100.     {
  101.     GivePlayerWeapon(playerid, 26, 140);
  102.     GivePlayerMoney(playerid,-750);
  103.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato una Sawn-Off Shotgun a 750 $");
  104.     return 1;
  105.     }
  106.     else
  107.     {
  108.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  109.     return 1;
  110.     }
  111.    if(!strcmp(cmdtext, "/comb-shotgun", true))
  112.     if (GetPlayerMoney(playerid) >= 625)
  113.     {
  114.     GivePlayerWeapon(playerid, 27, 500);
  115.     GivePlayerMoney(playerid,-625);
  116.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un Combat Shotgun a 625 $");
  117.     return 1;
  118.     }
  119.     else
  120.     {
  121.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  122.     return 1;
  123.     }
  124.    if(!strcmp(cmdtext, "/sniper", true))
  125.     if (GetPlayerMoney(playerid) >= 1250)
  126.     {
  127.     GivePlayerWeapon(playerid, 34, 150);
  128.     GivePlayerMoney(playerid,-1250);
  129.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato uno Sniper Rifle a 1250 $");
  130.     return 1;
  131.     }
  132.     else
  133.     {
  134.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  135.     return 1;
  136.     }
  137.    if(!strcmp(cmdtext, "/country", true))
  138.     if (GetPlayerMoney(playerid) >= 1115)
  139.     {
  140.     GivePlayerWeapon(playerid, 33, 150 );
  141.     GivePlayerMoney(playerid,-1115);
  142.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un Country Rifle");
  143.     return 1;
  144.     }
  145.     else
  146.     {
  147.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  148.     return 1;
  149.     }
  150.    if(!strcmp(cmdtext, "/m4", true))
  151.     if (GetPlayerMoney(playerid) >= 935)
  152.     {
  153.     GivePlayerWeapon(playerid, 31, 750 );
  154.     GivePlayerMoney(playerid,-935);
  155.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un m4 a 935 $");
  156.     return 1;
  157.     }
  158.     else
  159.     {
  160.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  161.     return 1;
  162.     }
  163.    if(!strcmp(cmdtext, "/ak47", true))
  164.     if (GetPlayerMoney(playerid) >= 965)
  165.     {
  166.     GivePlayerWeapon(playerid, 30, 750);
  167.     GivePlayerMoney(playerid,-965);
  168.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un ak47 a 965 $");
  169.     return 1;
  170.     }
  171.     else
  172.     {
  173.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  174.     return 1;
  175.     }
  176.    if(!strcmp(cmdtext, "/flame", true))
  177.     if (GetPlayerMoney(playerid) >= 2375)
  178.     {
  179.     GivePlayerWeapon(playerid, 37, 250 );
  180.     GivePlayerMoney(playerid,-2375);
  181.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un FlameThrower");
  182.     return 1;
  183.     }
  184.     else
  185.     {
  186.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  187.     return 1;
  188.     }
  189.    if(!strcmp(cmdtext, "/minigun", true))
  190.     if (GetPlayerMoney(playerid) >= 3190)
  191.     {
  192.     GivePlayerWeapon(playerid, 38, 2000);
  193.     GivePlayerMoney(playerid,-3190);
  194.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato una Minigun Vulcan a 3190 $");
  195.     return 1;
  196.     }
  197.     else
  198.     {
  199.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  200.     return 1;
  201.     }
  202.    if(!strcmp(cmdtext, "/rpg", true))
  203.     if (GetPlayerMoney(playerid) >= 2195)
  204.     {
  205.     GivePlayerWeapon(playerid, 35, 250 );
  206.     GivePlayerMoney(playerid,-2195);
  207.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un RPG a 2195 $");
  208.     return 1;
  209.     }
  210.     else
  211.     {
  212.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  213.     return 1;
  214.     }
  215.    if(!strcmp(cmdtext, "/rockeths", true))
  216.     if (GetPlayerMoney(playerid) >= 2235)
  217.     {
  218.     GivePlayerWeapon(playerid, 36, 250 );
  219.     GivePlayerMoney(playerid,-2235);
  220.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato un Rocket Launcher HS");
  221.     return 1;
  222.     }
  223.     else
  224.     {
  225.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  226.     return 1;
  227.     }
  228.    if(!strcmp(cmdtext, "/granate", true))
  229.     if (GetPlayerMoney(playerid) >= 1925)
  230.     {
  231.     GivePlayerWeapon(playerid, 16, 300 );
  232.     GivePlayerMoney(playerid,-1925);
  233.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato delle Granate a 1925 $");
  234.     return 1;
  235.     }
  236.     else
  237.     {
  238.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  239.     return 1;
  240.     }
  241.    if(!strcmp(cmdtext, "/esplosivi", true))
  242.     if (GetPlayerMoney(playerid) >= 2735)
  243.     {
  244.     GivePlayerWeapon(playerid, 39, 350 );
  245.     GivePlayerMoney(playerid,-costo);
  246.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato degli Esplosivi a 2735 $");
  247.     return 1;
  248.     }
  249.     else
  250.     {
  251.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  252.     return 1;
  253.     }
  254. if(!strcmp(cmdtext, "/gas", true))
  255.     if (GetPlayerMoney(playerid) >= 1750)
  256.     {
  257.     GivePlayerWeapon(playerid, 17, 450 );
  258.     GivePlayerMoney(playerid,-1750);
  259.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato delle Bombolette Lacrimogene a 1750 $");
  260.     return 1;
  261.     }
  262.     else
  263.     {
  264.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  265.     return 1;
  266.     }
  267. if(!strcmp(cmdtext, "/monotolv", true))
  268.     if (GetPlayerMoney(playerid) >= costo)
  269.     {
  270.     GivePlayerWeapon(playerid, 18, 575 );
  271.     GivePlayerMoney(playerid,-2575);
  272.     SendClientMessage(playerid,0x00FF00FF,"Hai comprato delle Monotolv a 575 $");
  273.     return 1;
  274.     }
  275.     else
  276.     {
  277.     SendClientMessage(playerid,0xFF0000FF,"[ERRORE:] Non hai abbastanza soldi.");
  278.     return 1;
  279. }
  280. return 0;
  281.     }
Advertisement
RAW Paste Data Copied
Advertisement