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
Код:
#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"
}
}
}
}