Question about long dialogs;
#6

PHP код:
#include <a_samp>
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIME 0x10F441AA
#define COLOR_MAGENTA 0xFF00FFFF
#define COLOR_NAVY 0x000080AA
#define COLOR_AQUA 0xF0F8FFAA
#define COLOR_CRIMSON 0xDC143CAA
#define COLOR_FLBLUE 0x6495EDAA
#define COLOR_BISQUE 0xFFE4C4AA
#define COLOR_BLACK 0x000000AA
#define COLOR_CHARTREUSE 0x7FFF00AA
#define COLOR_BROWN 0XA52A2AAA
#define COLOR_CORAL 0xFF7F50AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_GREENYELLOW 0xADFF2FAA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_IVORY 0xFFFF82AA
#define COLOR_LAWNGREEN 0x7CFC00AA
#define COLOR_LIMEGREEN 0x32CD32AA
#define COLOR_MIDNIGHTBLUE 0X191970AA
#define COLOR_MAROON 0x800000AA
#define COLOR_OLIVE 0x808000AA
#define COLOR_ORANGERED 0xFF4500AA
#define COLOR_PINK 0xFFC0CBAA
#define COLOR_SEAGREEN 0x2E8B57AA
#define COLOR_SPRINGGREEN 0x00FF7FAA
#define COLOR_TOMATO 0xFF6347AA
#define COLOR_YELLOWGREEN 0x9ACD32AA
#define COLOR_MEDIUMAQUA 0x83BFBFAA
#define COLOR_MEDIUMMAGENTA 0x8B008BAA
#define COL_WHITE 0xFFFFFFAA
public OnPlayerCommandText(playeridcmdtext[])
{
    if (
strcmp("/help"cmdtexttrue10) == 0)
    {
         
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"BTTDM HELP MENU""General account\nAccount help\nBank help\nlist3\nlist4\nlist5\nlist6""Choose""Exit");
        return 
1;
    }
    return 
0;
}
public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 1// Menu Help Dialog
    
{
        if(!
response) return SendClientMessage(playerid0xFFFFFFAA"Menu exited");
        switch(
listitem)
        {
            case 
0// General Help
            
{
                    new 
pDialog[555];
                    
strcat(pDialog"{FFFFFF}Hi, and welcome to my {FF0000}super duper awesome {FFFFFF}server!\n");
                    
strcat(pDialog"{FFFFFF}Here are some {FF0000}rules {FFFFFF}that you should respect:\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}1. {FFFFFF}You are not allowed to spam.\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}2. {FFFFFF}You are not allowed to advertise.\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}3. {FFFFFF}You are not allowed to cheat/hack.\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}4. {FFFFFF}You are not allowed to spawnkill.\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}5. {FFFFFF}You are not allowed to insult others.\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}6. {FFFFFF}You are not allowed to beg for admin.\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}There are special rules for {33AA33}VIPs{FFFFFF}! Please check\n"sizeof(pDialog));
                    
strcat(pDialog"{33AA33}/yaddayaddayadda {FFFFFF}for more information!"sizeof(pDialog));
                    
ShowPlayerDialog(playerid0DIALOG_STYLE_MSGBOX"{0000BB}My Super Rules"pDialog"OK""Cancel");
                    return 
1;
            }
               case 
1// Account Help
            
{
                    
SendClientMessage(playeridCOLOR_CORAL"");
                     
SendClientMessage(playeridCOLOR_GREY"");
                    
SendClientMessage(playeridCOLOR_CORAL"");
                     return 
1;
            }
               case 
2// Information
            
{
                     
SendClientMessage(playeridCOLOR_FLBLUE"");
                     
SendClientMessage(playeridCOLOR_GREY"");
                      
SendClientMessage(playeridCOLOR_FLBLUE"");
                     return 
1;
            }
               case 
3:
            {
                     
SendClientMessage(playeridCOLOR_RED"");
                     
SendClientMessage(playeridCOLOR_GREY"");
                      
SendClientMessage(playeridCOLOR_RED"");
                    return 
1;
            }
               case 
4:
            {
                     
SendClientMessage(playeridCOLOR_YELLOW"");
                     
SendClientMessage(playeridCOLOR_GREY"");
                      
SendClientMessage(playeridCOLOR_YELLOW"");
                    return 
1;
            }
               case 
5:
            {
                     
SendClientMessage(playeridCOLOR_PINK"");
                     
SendClientMessage(playeridCOLOR_GREY"");
                      
SendClientMessage(playeridCOLOR_PINK"");
            }
               case 
6:
            {
                     
SendClientMessage(playeridCOLOR_MAGENTA"");
                     
SendClientMessage(playeridCOLOR_GREY"");
                      
SendClientMessage(playeridCOLOR_MAGENTA"");
                    return 
1;
               }
        }
    }
    return 
1;

Reply


Messages In This Thread
[SOLVE] Question about long dialogs; - by Whatwasit - 16.08.2015, 18:44
Re: Question about long dialogs; - by LetsOWN[PL] - 16.08.2015, 18:59
Re : Question about long dialogs; - by Whatwasit - 16.08.2015, 19:14
Re: Question about long dialogs; - by LetsOWN[PL] - 16.08.2015, 19:17
Re : Question about long dialogs; - by Whatwasit - 16.08.2015, 19:30
Re: Question about long dialogs; - by jlalt - 16.08.2015, 19:51
Re : Question about long dialogs; - by Whatwasit - 16.08.2015, 20:02

Forum Jump:


Users browsing this thread: 1 Guest(s)