SA-MP Forums Archive
Help with command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with command (/showthread.php?tid=490732)



Help with command - Multima - 27.01.2014

Hello, can you help me a bit, tell me how to do the command / help me out and here so http://prikachi.com/images.php?images/111/6986111D.png and by pressing the More button to my going to the next page http://prikachi.com/images.php?images/115/6986115S.png


Re: Help with command - [TMS]Legena - 27.01.2014

Код:
#include <zcmd>

#define DIALOG_INFO 1212
#define DIALOG_INFO2 1213
Код:
CMD:eventinfo(playerid,params[])
{
   ShowPlayerDialog(playerid,DIALOG_INFO,DIALOG_STYLE_MSGBOX,"Info 1/2","-text1\n-text3\n-text4\n-text5\n-text6","Next","");
return 1;
}
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   switch(dialogid)
   {
      case DIALOG_EVENT:
      {
         if (response)
         {
            ShowPlayerDialog(playerid,DIALOG_INFO2,DIALOG_STYLE_MSGBOX,"{F0FF0F}Info 2/2","-text7\n-text8\n-text9\n-text10\n-text11", "Quit", "");
         }
      }
   }
return 0;
}