How To...[+REP]
#3

Код:
#define DIALOG_SPAWNCHOICE 1

public OnPlayerConnect(playerid)
	{
	ShowPlayerDialog(playerid,DIALOG_SPAWNCHOICE,DIALOG_STYLE_MSGBOX,
				"Where would you like to spawn?"
				"Home",		"Other places");
	}
public OnDialogResponse(playerid,dialogid,response,listitem,inputtext)
	{
	switch(dialogid)
		{
		case DIALOG_SPAWNCHOICE:
			{
			if(response)
				{
				// Player pressed "Home"
				}
			else
				{
				// Player pressed "Other places"
				}
			}
		}
	}
Here you go.
Reply


Messages In This Thread
How To...[+REP] - by James Coral - 02.04.2012, 13:55
Re: How To...[+REP] - by The__ - 02.04.2012, 14:25
Re: How To...[+REP] - by blank. - 02.04.2012, 14:31

Forum Jump:


Users browsing this thread: 1 Guest(s)