Advertisement
Guest User

Untitled

a guest
Dec 20th, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.29 KB | None | 0 0
  1. if(dialogid == KUPOVINA_GUNSHOP)
  2. {
  3. if(!response) return 1;
  4. if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
  5. if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid,-1, ""CRVENA"[UP:RP] "ZUTA"Morate biti level 2 da bi mogli kupovati oruzije!");
  6. if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""CRVENA"[UP:RP] "SIVA"Nemate dozvolu za oruzije!");
  7. FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
  8. switch(listitem)
  9. {
  10. case 0:
  11. {
  12. if(PlayerInfo[playerid][pNovacDzep] < 100) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 100$!");
  13. g_GivePlayerWeapon(playerid,4,1);
  14. FirmaNovac(UsaoFirma[playerid], 100);
  15. g_NovacMinus(playerid,100);
  16. SCM(playerid,-1,""ZUTA"Kupili ste noz za 100$!");
  17. }
  18. case 1:
  19. {
  20. if(PlayerInfo[playerid][pNovacDzep] < 60) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 60$!");
  21. g_GivePlayerWeapon(playerid,5,1);
  22. FirmaNovac(UsaoFirma[playerid], 60);
  23. g_NovacMinus(playerid,60);
  24. SCM(playerid,-1,""ZUTA"Kupili ste palicu za 60$!");
  25. }
  26. case 2:
  27. {
  28. if(PlayerInfo[playerid][pNovacDzep] < 500) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 500$!");
  29. new weaponse[13][2];
  30. for(new i = 0; i <= 12; i++)
  31. {
  32. GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
  33. if(weaponse[i][0] == 31)
  34. {
  35. SCM(playerid,-1,"Vec imate m4 i zato nemozete nositi i shotgun!");
  36. }
  37. if(weaponse[i][1] >= 180)
  38. {
  39. SCM(playerid,-1,"Ne mozete nositi vise od 180 metaka za ovo oruzje!");
  40. }
  41. }
  42. g_GivePlayerWeapon(playerid,25,60);
  43. FirmaNovac(UsaoFirma[playerid], 500);
  44. g_NovacMinus(playerid,500);
  45. SCM(playerid,-1,""ZUTA"Kupili ste shotgun za 500$!");
  46. }
  47. case 3:
  48. {
  49. if(PlayerInfo[playerid][pNovacDzep] < 250) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 250$!");
  50. g_GivePlayerWeapon(playerid,46,1);
  51. FirmaNovac(UsaoFirma[playerid], 250);
  52. g_NovacMinus(playerid,250);
  53. SCM(playerid,-1,""ZUTA"Kupili ste padobran za 250$!");
  54. }
  55. case 4:
  56. {
  57. if(PlayerInfo[playerid][pNovacDzep] < 600) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 600$!");
  58. for(new i = 0; i <= 12; i++)
  59. {
  60. GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
  61. if(weaponse[i][0] == 22 || weaponse[i][0] == 23)
  62. {
  63. SCM(playerid,-1,"Vec imate 9mm i zato nemozete nositi i deagle!");
  64. }
  65. if(weaponse[i][1] >= 150)
  66. {
  67. SCM(playerid,-1,"Ne mozete nositi vise od 150 metaka za ovo oruzje!");
  68. }
  69. }
  70. g_GivePlayerWeapon(playerid,24,50);
  71. FirmaNovac(UsaoFirma[playerid], 600);
  72. g_NovacMinus(playerid,600);
  73. SCM(playerid,-1,""ZUTA"Kupili ste dezert za 600$!");
  74. }
  75. case 5:
  76. {
  77. if(PlayerInfo[playerid][pNovacDzep] < 1000) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 1000$!");
  78. for(new i = 0; i <= 12; i++)
  79. {
  80. GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
  81. if(weaponse[i][0] == 25)
  82. {
  83. SCM(playerid,-1,"Vec imate shotgun i zato nemozete nositi i m4!");
  84. }
  85. if(weaponse[i][1] >= 150)
  86. {
  87. SCM(playerid,-1,"Ne mozete nositi vise od 150 metaka za ovo oruzje!");
  88. }
  89. }
  90. g_GivePlayerWeapon(playerid,31,150);
  91. FirmaNovac(UsaoFirma[playerid], 1000);
  92. g_NovacMinus(playerid,1000);
  93. SCM(playerid,-1,""ZUTA"Kupili ste M4 za 1000$!");
  94. }
  95. case 6:
  96. {
  97. if(PlayerInfo[playerid][pNovacDzep] < 1000) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 1000$!");
  98. for(new i = 0; i <= 12; i++)
  99. {
  100. GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
  101. if(weaponse[i][0] == 29)
  102. {
  103. SCM(playerid,-1,"Vec imate mp5 i zato nemozete nositi i AK-47!");
  104. }
  105. if(weaponse[i][1] >= 150)
  106. {
  107. SCM(playerid,-1,"Ne mozete nositi vise od 150 metaka za ovo oruzje!");
  108. }
  109. }
  110. g_GivePlayerWeapon(playerid,30,150);
  111. FirmaNovac(UsaoFirma[playerid], 1000);
  112. g_NovacMinus(playerid,1000);
  113. SCM(playerid,-1,""ZUTA"Kupili ste AK-47 za 1000$!");
  114. }
  115. case 7:
  116. {
  117. if(PlayerInfo[playerid][pNovacDzep] < 900) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 900$!");
  118. for(new i = 0; i <= 12; i++)
  119. {
  120. GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
  121. if(weaponse[i][0] == 30)
  122. {
  123. SCM(playerid,-1,"Vec imate AK-47 i zato nemozete nositi i MP5!");
  124. }
  125. if(weaponse[i][1] >= 200)
  126. {
  127. SCM(playerid,-1,"Ne mozete nositi vise od 200 metaka za ovo oruzje!");
  128. }
  129. }
  130. g_GivePlayerWeapon(playerid,29,100);
  131. FirmaNovac(UsaoFirma[playerid], 900);
  132. g_NovacMinus(playerid,900);
  133. SCM(playerid,-1,""ZUTA"Kupili ste MP5 za 900$!");
  134. }
  135. case 8:
  136. {
  137. if(PlayerInfo[playerid][pNovacDzep] < 2000) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 2000$!");
  138. g_GivePlayerWeapon(playerid,34,60);
  139. FirmaNovac(UsaoFirma[playerid], 2000);
  140. g_NovacMinus(playerid,2000);
  141. SCM(playerid,-1,""ZUTA"Kupili ste Sniper za 2000$!");
  142. }
  143. }
  144. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement