A problem with a dialog
#9

remove all pickups and add like this


pawn Код:
new AmmuPickup;//Top on the script
then go at

pawn Код:
public OnGameModeInit()
{
AmmuPickup = CreatePickup(1274 ,1,287.9525,-105.9843,1001.5156,-1);
}
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
  if(pickupid == AmmuPickup)
    {
    if(!playerDB[playerid][teisesG])
    {
    SendClientMessage(playerid,-1,"{F22715}SERVERIS:{F2C915} Jūs negalite pirkti ginklų, kol neturite licenzijos, iљsilaikykite ją!");
    }
    else{
    ShowPlayerDialog(playerid,DIALOG_AMMU_GUN,DIALOG_STYLE_LIST,"Parduotuvė","Deagle(100)\nColt(100)\nMP5(100)\nShotgun(100)","Pasirinkti","Atgal");
    }
    }
  return 1;
}
Reply


Messages In This Thread
A problem with a dialog - by Burning - 10.06.2013, 08:52
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 08:56
Re: A problem with a dialog - by Burning - 10.06.2013, 08:58
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 09:15
Re: A problem with a dialog - by Burning - 10.06.2013, 09:17
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 09:20
Re: A problem with a dialog - by Burning - 10.06.2013, 09:21
Re: A problem with a dialog - by Burning - 10.06.2013, 09:24
Re: A problem with a dialog - by IceBilizard - 10.06.2013, 09:31
Re: A problem with a dialog - by Burning - 10.06.2013, 09:43

Forum Jump:


Users browsing this thread: 5 Guest(s)