#2

Try to use this help: I've scripted simple code to show you how can you make dialog box

Код:
//Insert this where player sends invitation
new str[128];
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid,playername,sizeof(playername));
format(str,sizeof(str),"Player %s has invited you to\nblablabla.....",playername);
ShowPlayerDialog(para1,1,DIALOG_STYLE_MSGBOX,"Invitation",str,"Accept","Decline");





public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 1)
	{
	    //if accept
	    if(response == 1)
	    {
	        gTeam[playerid] = 1;
	    }
	    else
	    {
	        //if decline
	        gTeam[playerid] = 2;
	    }
	}
	
	return 1;
}
Reply


Messages In This Thread
Help /invite command - by Dark Crow - 14.02.2012, 15:38
Re: Help - by Killer#Mummy - 14.02.2012, 18:24

Forum Jump:


Users browsing this thread: 1 Guest(s)