How To...[+REP]
#1

How To Make Dialog if player Connect then it give Choise "Where You want do Spawn?" choises: "Home" or "Other places"

it means i need Random Spawns and a Dialog and DialogResponse but i dont know how do make it

Someone?
Reply
#2

https://sampwiki.blast.hk/wiki/How_to_Create_a_Dialog
https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
Enjoy.
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)