[Pomoc] Moze LOCK sredjeno

Započeo Schwarz, Decembar 08, 2012, 01:12:58 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim: Nijebitno
Detaljan opis problema: Jel mi moze neko pokazati ili napraviti dijalog za ovo dole.
Dio skripte: CMD:vip(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2557.2764,1404.6462,7699.5845))
{
SendClientMessageEx(playerid, COLOR_GRAD2, "   Neste vo blizina na Vip Oprema!");
return 1;
}
if(PlayerInfo[playerid][pVip] == 1)
{
ShowPlayerDialog(playerid, 7483, DIALOG_STYLE_LIST, "VIP Locker", "HP\nPanicir\nOruzja", "Izberi", "Cancel");
}

Neke slike/video za lakse dobivanje pomoci(neobavezno)///
Poslednja Izmena: Decembar 08, 2012, 01:54:27 PRE PODNE od Child

Pa ti vec imas dialog, sada samo pod OnDialogResponse dodas koje funkcije zelis da ti daje odabirom liste.

Epa kako to da uradim jel mi mozes to uraditi ??

Pa brate, u zavisnosti sta ti hoces da uradis, evo ti jedan primerak, kada si napravio komandu, sada pravis odabir , ovao if(dialogid == TVOJ_ID_DIALOGA)
{
if(response)
{
if(listitem == 0)// ako igrac izabere prvo od ponudljenih
{
if(100 > GetPlayerMoney(playerid)) return SCM(playerid, -1, "   Nemate dovoljno novca !");
new Float:health;
GetPlayerHealth(playerid, health);
        SetPlayerHealth(playerid, health + 15.0);
GivePlayerMoney(playerid, -100);
SCM(playerid, -1, "Kupili ste sladoled:rumenko.");
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
}
if(listitem == 1)// ako igrac izabere drugo od ponudljenih
{
if(100 > GetPlayerMoney(playerid)) return SCM(playerid, -1, "   Nemate dovoljno novca !");
new Float:health;
GetPlayerHealth(playerid, health);
SetPlayerHealth(playerid, health + 10.0);
GivePlayerMoney(playerid, -120);
SCM(playerid, -1, "Kupili ste sladoled:sarenko.");
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
}
}
}
ovo sam ti ja napraivo primer za davanje helta, ti sad tu stavi sta ti hoces, nadam se da razumes

A ja oruzja zelim da napravim poddijalog kad otvorim Dijalog da mi pise Deagle, M4 i tako i kad kliknem na neko od ovih da mi da to oruzje..
Kako to da napravim ??

Poddijalog pravis tako samo sto umjesto sto bi stavio u onog dialoga npr " prebacio si se do los santosa" ti stavi svoj dialog novi tj. ShowPlayerDialog(playerid, 7483, DIALOG_STYLE_LIST, "VIP Locker", "HP\nPanicir\nOruzja", "Izberi", "Cancel");

aaa, pa evo ovako, ShowPlayerDialog(playerid, 2774, DIALOG_STYLE_LIST, "ORUZJE PAKETI, BIRAJ!", "Paket 1\nPaket 2\nPaket 3\nPaket 4", "Uzmi", "Odustani"); i pod OnDialogResponse if(dialogid == 2774)
{
if(response)
{
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 25, 50);
GivePlayerWeapon(playerid, 30, 100);
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
}
else if(listitem == 1)
{
GivePlayerWeapon(playerid, 46, 1);
GivePlayerWeapon(playerid, 34, 100);
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
}
else if(listitem == 2)
{
GivePlayerWeapon(playerid, 24, 100);
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
}
else if(listitem == 3)
{
GivePlayerWeapon(playerid, 31, 100);
GivePlayerWeapon(playerid, 29, 150);
ApplyAnimation(playerid,"DEALER","shop_pay",4.1,0,0,0,0,0);
}
}
}
}
evo izvolte

Zelim da pitam samo jedno pitanje.
Kako da dodam na vip igracu da mu ime bide u boju, zelim i to da dodam u ovaj dijalog ??

pa ovako  ShowPlayerDialog(playerid, 2775, DIALOG_STYLE_LIST, "VIPOVE boje!", "boja 1\boja 2\boja 3\boja 4", "Uzmi", "Odustani"); if(dialogid == 2775)
{
if(response)
{
{
if(listitem == 0)
{
SetPlayerColor(playerid, TVOJA_BOJA);
}
else if(listitem == 1)
{
SetPlayerColor(playerid, TVOJA_BOJA);
}
else if(listitem == 2)
{
SetPlayerColor(playerid, TVOJA_BOJA);
}
else if(listitem == 3)
{
SetPlayerColor(playerid, TVOJA_BOJA);
}
}
}
}
Poslednja Izmena: Decembar 08, 2012, 01:48:56 PRE PODNE od Blaeks

Hvala care zasluzujes moderator najiskrenije  :)

Citat: Child poslato Decembar 08, 2012, 01:50:09 PRE PODNE
Hvala care zasluzujes moderator najiskrenije  :)
Haha, ma nista brate, hvala sto cenis to :)

Brate najverojatnije sam loso stavio neku zagradu pa mi baca puno erore aj molim te pogledaj.
if(dialogid == 7483) // VIP Locker /viplocker
{
if(response)
{
if(listitem == 0)
{
              AC_BS_SetPlayerHealth(playerid, 100);
              SendClientMessageEx(playerid, COLOR_GREY, "Go napolnivte vasiot HP.");
  }
  if(listitem == 1
  {
  AC_BS_SetPlayerArmour(playerid, 100);
      SendClientMessageEx(playerid, COLOR_GREY, "Stavivte Pancir.");
  }
  if(listitem == 2
  {
  AC_BS_GivePlayerWeapon(playerid, 1, 20);
  AC_BS_GivePlayerWeapon(playerid, 24, 100);
  AC_BS_GivePlayerWeapon(playerid, 29, 100);
  AC_BS_GivePlayerWeapon(playerid, 31, 100);
  AC_BS_GivePlayerWeapon(playerid, 43, 9999);
  }
  if(listitem == 3
  {
  SetPlayerColor(playerid, COLOR_GOLD);
  SendClientMessageEx(playerid, COLOR_GREY, "Namestivte Donatorska Boja.");
  }
      }
}


CMD:vip(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 7.0, 2557.2764,1404.6462,7699.5845))
{
SendClientMessageEx(playerid, COLOR_GRAD2, "   Neste vo blizina na Vip Oprema!");
return 1;
}
if(PlayerInfo[playerid][pVip] == 1)
{
ShowPlayerDialog(playerid, 7483, DIALOG_STYLE_LIST, "VIP Locker", "HP\nPanicir\nOruzja\nBoja", "Izberi", "Cancel");
}

Komandu stavi ovako CMD:vip(playerid, params[])
    {
      if(PlayerInfo[playerid][pVip] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, 2557.2764,1404.6462,7699.5845))
{
SendClientMessage(playerid, -1, "Izaberite zeljeni paket");
ShowPlayerDialog(playerid, 7483, DIALOG_STYLE_LIST, "VIP Locker", "HP\nPanicir\nOruzja\nBoja", "Izaberi", "Cancel");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nisi kod mesta");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nisi VIP!");
}
return 1;
}