if (strcmp("/commands", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Commands Menu","My Commands", "Next", "Cancel");
return 1;
}
if(response)//button Next
{
ShowPlayerDialog(playerid, 10+1, DIALOG_STYLE_MSGBOX, "Commands Menu", "My COmmands 1", "Next", "Cancel");
}
else return 1;// button close
}
if(response)//button Next
{
ShowPlayerDialog(playerid, 10+2, DIALOG_STYLE_MSGBOX, "Commands Menu", "My COmmands 1", "Next", "Cancel");
}
else return 1;// button close
}
|
Like This
Code:
if(response)//button Next
{
ShowPlayerDialog(playerid, 10+2, DIALOG_STYLE_MSGBOX, "Commands Menu", "My COmmands 1", "Next", "Cancel");
}
else return 1;// button close
}
|
if (strcmp("/commands", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Commands Menu","My Commands", "Next", "Cancel");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 10)
{
if(response)//button Next
{
ShowPlayerDialog(playerid, 10+2, DIALOG_STYLE_MSGBOX, "Commands Menu", "My COmmands 1", "Next", "Cancel");
}
else return 0;// button close
}
if (strcmp("/commands", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,10,DIALOG_STYLE_MSGBOX,"Commands Menu","My Commands bla bla bla..", "Next", "Cancel");
return 1;
}
if(dialogid == 10)
{
if(response)//button Next
{
ShowPlayerDialog(playerid, 10+1, DIALOG_STYLE_MSGBOX, "Commands Menu", "/Tubes\n/Viphelp =For Vip Members\n/Objects =Attach Object To Body\n/bank [amount]\n/Kill\n/Me [Text]\n/Buyarmour\n/givecash [playerid] [amount]\n/bounty [playerid]\n/withdraw [amount]\n/balance\n/hitman [playerid] [amount]\n/bounties\n/gangcommands\n/anims\n/anims2\n/afk\n/back\n/buyhouse =Buy House\n/buybus =Buy Business\n/buyproperty =Buy Property.", "Next", "Cancel");
}
else return 1;// button close
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 10)//second page
{
if(response)//button Next
{
ShowPlayerDialog(playerid, 10+2, DIALOG_STYLE_MSGBOX, "Commands Menu", "My COmmands 1", "Next", "Cancel");
}
else return 0;// button close
}
if(dialogid == 10+2)//third page
{
if(response)//button Next
{
ShowPlayerDialog(playerid, 10+3, DIALOG_STYLE_MSGBOX, "Commands Menu", "My COmmands 1", "Next", "Cancel");
}
else return 0;// button close
}
#include <a_samp>
#define DialogID 112
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,DialogID,DIALOG_STYLE_MSGBOX,"My Commands (PAGE 1)","Commands here xD","Close","Next");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DialogID) // Dialog ID
{
if(response) return SendClientMessage(playerid, -1, "SERVER: Dialog Closed"); //
else ShowPlayerDialog(playerid,DialogID+2,DIALOG_STYLE_MSGBOX,"My Commands (PAGE 2)","Commands here xD","Close","Next");
}
if(dialogid == DialogID+2) // Dialog ID
{
if(response) return SendClientMessage(playerid, -1, "SERVER: Dialog Closed"); //
else ShowPlayerDialog(playerid,DialogID+3,DIALOG_STYLE_MSGBOX,"My Commands (PAGE 3)","Commands here xD","Close","Next");
}
if(dialogid == DialogID+3) // Dialog ID
{
if(response) return SendClientMessage(playerid, -1, "SERVER: Dialog Closed"); //
else ShowPlayerDialog(playerid,DialogID+4,DIALOG_STYLE_MSGBOX,"My Commands (PAGE 4)","Commands here xD","Close","");
}
return 1;
}