[Pomoc] Kupovina oruzija u dialogu

Započeo System32, Maj 06, 2011, 10:21:20 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Freeroam by Fafu
Detaljan opis problema: Napravio sam kmandu da igrac ude u ammunation, no da mora biti ispred nje blablablabla i kad udem unutra da mora kucati /shop i tu odabrati oruzije, sve sam napravio, komandu /shop i pod public OnDialogResponse sve dodao no kad odabere neko oruzije, njega nema
Dio skripte:
/shop
CMD:shop(playerid,params[])
{
   if(IsPlayerInRangeOfPoint(playerid, 7.0, 296.0338,-38.5010,1001.5156))
   {
ShowPlayerDialog(playerid,38,DIALOG_STYLE_LIST,"--------Oružarnica--------","1.9mm Pistol \n2.Silenced Pistol\n3.Eagle\n4.Shotgun\n5.Sawn Off Shotgun\n6.Combat Shotgun\n7.MP5\n8.TEC 9\n9.MAC 10\n10.AK-47\n11.M4\n12.Sniper\n13.Countgun","Kupi","Odustani");
   }
   else SendClientMessage(playerid,COLOR_KRED,"Niste u oružarnici!");
return 1;
}


dialog
{
if (dialogid==38 && response==38)
{
switch(listitem)
       {
   case 0:
   {
               GivePlayerWeapon(playerid, 22, 150);
               GivePlayerMoney(playerid,-1000);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste 9mm Pistolj »");


   }
   case 1:
   {
               GivePlayerWeapon(playerid, 23, 150);
               GivePlayerMoney(playerid,-1150);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste Silenced Pistolj »");


   }
   case 2:
   {
               GivePlayerWeapon(playerid, 24, 150);
               GivePlayerMoney(playerid,-1250);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste Eagle »");
   }
   case 3:
   {
               GivePlayerWeapon(playerid, 25, 175);
               GivePlayerMoney(playerid,-1500);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste Shotgun »");
   }
   case 4:
   {
               GivePlayerWeapon(playerid, 26, 175);
               GivePlayerMoney(playerid,-1650);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste Sawn Off Shotgun »");
   }
   case 5:
   {
               GivePlayerWeapon(playerid, 27, 175);
               GivePlayerMoney(playerid,-1750);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste Combat Shotgun »");
   }
   case 6:
   {
               GivePlayerWeapon(playerid, 29, 300);
               GivePlayerMoney(playerid,-1750);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste MP5 »");
   }
   case 7:
   {
               GivePlayerWeapon(playerid, 32, 300);
               GivePlayerMoney(playerid,-1750);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste TEC-9 »");
   }
   case 8:
   {
               GivePlayerWeapon(playerid, 28, 300);
               GivePlayerMoney(playerid,-1750);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste MAC-10 »");
   }
   case 9:
   {
               GivePlayerWeapon(playerid, 30, 400);
               GivePlayerMoney(playerid,-2000);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste AK-47 »");
   }
    case 10:
   {
               GivePlayerWeapon(playerid, 31, 400);
               GivePlayerMoney(playerid,-2250);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste M4 »");
   }
       case 11:
   {
               GivePlayerWeapon(playerid, 34, 250);
               GivePlayerMoney(playerid,-1750);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste Sniper Rifle »");
   }
       case 12:
   {
               GivePlayerWeapon(playerid, 33, 250);
               GivePlayerMoney(playerid,-1500);
               SendClientMessage(playerid,0xFF9900AA,"« Kupili ste Countgun »");
   }
   }

       }
       }
   return 0;
}
+ iznad imam za /veh i za login skriptu no to vam ne treba

Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Maj 06, 2011, 10:21:34 PRE PODNE od System32
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √


hvala, mozete lock
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √