Dialogs help me
#6

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:// Our dialog!
{
switch(listitem)
{
case 0:
{
if(GetPlayerMoney(playerid) < 1) return SendClientMessage(playerid, 0xFFFFFF, "You don't have $200 for a beer bottle faggot!");
GivePlayerMoney(playerid, -1);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_SPRUNK);
}
case 1: // The second item listed
{
if(GetPlayerMoney(playerid) < 2) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
GivePlayerMoney(playerid, -2);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_BEER);
}
case 2: // The third item listed
{
if(GetPlayerMoney(playerid) < 3) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash");
GivePlayerMoney(playerid, -3);
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_DRINK_WINE);
}
}
}
}
}
return 1;
}

Fill this out with your "rescue" teleportion as you stated..
Reply


Messages In This Thread
Dialogs help me - by rami.chaar2 - 25.07.2012, 06:26
Re: Dialogs help me - by rami.chaar2 - 25.07.2012, 06:57
Re: Dialogs help me - by Dare Devil..... - 25.07.2012, 07:29
Re: Dialogs help me - by rami.chaar2 - 25.07.2012, 07:58
Re: Dialogs help me - by rami.chaar2 - 25.07.2012, 08:00
Re: Dialogs help me - by Genuine - 25.07.2012, 08:08
Re: Dialogs help me - by rami.chaar2 - 25.07.2012, 08:13
Re: Dialogs help me - by Revo - 25.07.2012, 08:17
Re: Dialogs help me - by rami.chaar2 - 25.07.2012, 08:19
Re: Dialogs help me - by rami.chaar2 - 25.07.2012, 20:32

Forum Jump:


Users browsing this thread: 4 Guest(s)