[HELP]Dialogs
#1

Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerCheckpoint(playerid, -30.4957, -55.6401, 1003.5469, 3.0);
	return 1;
}
Creates a Checkpoint inside a 24/7 In Los Santos
Код:
public OnPlayerEnterCheckpoint(playerid)
{
	ShowPlayerDialog(playerid, 7, DIALOG_STYLE_LIST, "Shop","\nMP3 Player","Buy","Cancel");
	return 1;
}
The shop Dialog
Код:
if(dialogid == 7 && response)
	{
	   switch(listitem)
	   {
		   case 0:
		   {
		   GivePlayerMoney(playerid, -1000);
		   SendClientMessage(playerid, COLOR_YELLOW, "You bought an mp3 player");
		   }
	   }
	 }
Now heres the catch I want to make it like this that if a player does not have 1000 dollars it says so and a player cannot buy it.
And if a player already has it it would say
Код:
SendClientMessage(playerid, COLOR_YELLOW, "Already Have an MP3 Player");
Thanks in Advance
Reply


Messages In This Thread
[HELP]Dialogs - by eemalekorraks - 27.12.2011, 14:09
Re: [HELP]Dialogs - by §с†¶e®РµРe - 27.12.2011, 14:29
Re: [HELP]Dialogs - by eemalekorraks - 27.12.2011, 14:36
Re: [HELP]Dialogs - by eemalekorraks - 28.12.2011, 11:45
Re: [HELP]Dialogs - by ZmaXy - 28.12.2011, 23:49
Re: [HELP]Dialogs - by Andi_Evandy - 29.12.2011, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)