14.02.2012, 18:24
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; }