OnDialogRespons HELP !+REP
#2

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_KUPOVINA)
{
if(response) // If they clicked 'Select' or double-clicked a weapon
{
// Give them the weapon
switch(listitem)
{
case 0:
{
GivePlayerWeapon(playerid,41,500);
GivePlayerMoney(playerid,-500);
}
case 1:
{
GivePlayerWeapon(playerid,2,1);
GivePlayerMoney(playerid,-200);
}
}
}
return 1;
}
return 0;
}
Reply


Messages In This Thread
OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:27
Re: OnDialogRespons HELP !+REP - by ilepopivanov - 15.11.2014, 18:33
Re: OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:39
Re: OnDialogRespons HELP !+REP - by Adawg - 15.11.2014, 18:41
Re: OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:43
Re: OnDialogRespons HELP !+REP - by Adawg - 15.11.2014, 18:47
Re: OnDialogRespons HELP !+REP - by DavidBilla - 15.11.2014, 18:49
Re: OnDialogRespons HELP !+REP - by C0olp1x - 15.11.2014, 18:51

Forum Jump:


Users browsing this thread: 2 Guest(s)