Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dialogid == KUPOVINA_GUNSHOP)
- {
- if(!response) return 1;
- if(FirmaInfo[UsaoFirma[playerid]][fProizvodi] <= 0) return SCM(playerid,-1,""ZPLAVA"[Firma]: "BELA"Nemamo vise proizvoda!");
- if(PlayerInfo[playerid][pLevel] < 3) return SCM(playerid,-1, ""CRVENA"[UP:RP] "ZUTA"Morate biti level 2 da bi mogli kupovati oruzije!");
- if(PlayerInfo[playerid][pGunDozvola] == 0) return SCM(playerid,-1, ""CRVENA"[UP:RP] "SIVA"Nemate dozvolu za oruzije!");
- FirmaInfo[UsaoFirma[playerid]][fProizvodi]--;
- switch(listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 100) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 100$!");
- g_GivePlayerWeapon(playerid,4,1);
- FirmaNovac(UsaoFirma[playerid], 100);
- g_NovacMinus(playerid,100);
- SCM(playerid,-1,""ZUTA"Kupili ste noz za 100$!");
- }
- case 1:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 60) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 60$!");
- g_GivePlayerWeapon(playerid,5,1);
- FirmaNovac(UsaoFirma[playerid], 60);
- g_NovacMinus(playerid,60);
- SCM(playerid,-1,""ZUTA"Kupili ste palicu za 60$!");
- }
- case 2:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 500) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 500$!");
- new weaponse[13][2];
- for(new i = 0; i <= 12; i++)
- {
- GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
- if(weaponse[i][0] == 31)
- {
- SCM(playerid,-1,"Vec imate m4 i zato nemozete nositi i shotgun!");
- }
- if(weaponse[i][1] >= 180)
- {
- SCM(playerid,-1,"Ne mozete nositi vise od 180 metaka za ovo oruzje!");
- }
- }
- g_GivePlayerWeapon(playerid,25,60);
- FirmaNovac(UsaoFirma[playerid], 500);
- g_NovacMinus(playerid,500);
- SCM(playerid,-1,""ZUTA"Kupili ste shotgun za 500$!");
- }
- case 3:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 250) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 250$!");
- g_GivePlayerWeapon(playerid,46,1);
- FirmaNovac(UsaoFirma[playerid], 250);
- g_NovacMinus(playerid,250);
- SCM(playerid,-1,""ZUTA"Kupili ste padobran za 250$!");
- }
- case 4:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 600) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 600$!");
- for(new i = 0; i <= 12; i++)
- {
- GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
- if(weaponse[i][0] == 22 || weaponse[i][0] == 23)
- {
- SCM(playerid,-1,"Vec imate 9mm i zato nemozete nositi i deagle!");
- }
- if(weaponse[i][1] >= 150)
- {
- SCM(playerid,-1,"Ne mozete nositi vise od 150 metaka za ovo oruzje!");
- }
- }
- g_GivePlayerWeapon(playerid,24,50);
- FirmaNovac(UsaoFirma[playerid], 600);
- g_NovacMinus(playerid,600);
- SCM(playerid,-1,""ZUTA"Kupili ste dezert za 600$!");
- }
- case 5:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 1000) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 1000$!");
- for(new i = 0; i <= 12; i++)
- {
- GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
- if(weaponse[i][0] == 25)
- {
- SCM(playerid,-1,"Vec imate shotgun i zato nemozete nositi i m4!");
- }
- if(weaponse[i][1] >= 150)
- {
- SCM(playerid,-1,"Ne mozete nositi vise od 150 metaka za ovo oruzje!");
- }
- }
- g_GivePlayerWeapon(playerid,31,150);
- FirmaNovac(UsaoFirma[playerid], 1000);
- g_NovacMinus(playerid,1000);
- SCM(playerid,-1,""ZUTA"Kupili ste M4 za 1000$!");
- }
- case 6:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 1000) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 1000$!");
- for(new i = 0; i <= 12; i++)
- {
- GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
- if(weaponse[i][0] == 29)
- {
- SCM(playerid,-1,"Vec imate mp5 i zato nemozete nositi i AK-47!");
- }
- if(weaponse[i][1] >= 150)
- {
- SCM(playerid,-1,"Ne mozete nositi vise od 150 metaka za ovo oruzje!");
- }
- }
- g_GivePlayerWeapon(playerid,30,150);
- FirmaNovac(UsaoFirma[playerid], 1000);
- g_NovacMinus(playerid,1000);
- SCM(playerid,-1,""ZUTA"Kupili ste AK-47 za 1000$!");
- }
- case 7:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 900) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 900$!");
- for(new i = 0; i <= 12; i++)
- {
- GetPlayerWeaponData(playerid, i, weaponse[i][0], weaponse[i][1]);
- if(weaponse[i][0] == 30)
- {
- SCM(playerid,-1,"Vec imate AK-47 i zato nemozete nositi i MP5!");
- }
- if(weaponse[i][1] >= 200)
- {
- SCM(playerid,-1,"Ne mozete nositi vise od 200 metaka za ovo oruzje!");
- }
- }
- g_GivePlayerWeapon(playerid,29,100);
- FirmaNovac(UsaoFirma[playerid], 900);
- g_NovacMinus(playerid,900);
- SCM(playerid,-1,""ZUTA"Kupili ste MP5 za 900$!");
- }
- case 8:
- {
- if(PlayerInfo[playerid][pNovacDzep] < 2000) return SCM(playerid,-1,""CRVENA"[UP:RP] "SIVA"Nemate dovoljno novca 2000$!");
- g_GivePlayerWeapon(playerid,34,60);
- FirmaNovac(UsaoFirma[playerid], 2000);
- g_NovacMinus(playerid,2000);
- SCM(playerid,-1,""ZUTA"Kupili ste Sniper za 2000$!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement