How to creat big dialog msg box
#1

Код:
//Admin komandos//
       	    new admsg[7][] = {
       	    {"{ffffff}________Administratoriu komandos________"},
       	    {"/ad - Skelbti viesai visiems matant\n"},
       	    {"/kick [id] [priezastis] - Ismesti zaideja is serverio\n"},
       	    {"/nuzudyti [id] - Nuzudyti zaideja\n"},
       	    {"/mute [id] [Sekundziu skaicius] [Priezastis] - Uztildyti zaideja\n"},
       	    {"/unmute [id] - Atitildyti zaideja\n"},
       	    {"/get /to - Atiteleportuoti zaideja, nusiteleportuoti pas zaideja\n"},
      {""},
		{""}
}
            new akomandos[260];
	        format(akomandos,sizeof(akomandos), "%s",admsg[7]);
	        ShowPlayerDialog(playerid,8,DIALOG_STYLE_MSGBOX,"Admin komandos", akomandos, "+", "");
	        
	        
            }
        }
How to create code somthing like that i dont know its mine but its wrong
Reply
#2

Try this

ShowPlayerDialog
pawn Код:
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Rules","Rules server:\nRule 1\nRule 2\nRule 3","Accept","Cancel");
OnDialogResponse
pawn Код:
if(dialogid == 8)
{
if(response == 0)
{
SendClientMessage(playerid, -1, "You have been kicked for not accepting the rules.");
Kick(playerid);
}
if(response == 1)
{
SendClientMessage(playerid, -1, "Thank you for accepting the rules");
}

return 1;
}
Reply
#3

No that i wanna(sorry for bad english)
Reply
#4

What do you mean? Can you give me a good explaination please?
Reply
#5

What are you actually asking for?
Reply
#6

he want to make dialog box for all admin cmd i guess..
something like when you type /help, the dialog box appears and show all the server cmd.
Reply
#7

How to create somthing like that
Reply
#8

Код:
#define DialogRules 1

new Msg[2000];

format(Msg, 2000, "{FFFF00}%s rule 1\n", Msg);
format(Msg, 2000, "{FFFF00}%s rule 2\n", Msg);
format(Msg, 2000, "{FFFF00}%s rule 3\n", Msg);
format(Msg, 2000, "{FFFF00}%s rule 4\n", Msg);
format(Msg, 2000, "{FFFF00}%s rule 5\n", Msg);
format(Msg, 2000, "{FFFF00}%s rule 6\n", Msg);
etc
etc
etc
etc

ShowPlayerDialog(playerid, DialogRules, DIALOG_STYLE_MSGBOX, "Rules:", Msg, "Accept", "Cancel");
Reply
#9

Do it like this:
Код:
CMD:ah(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(Playerid, -1, "Please login to RCON.");
    new AdminHelp[700];
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));
    strcat(AdminHelp, "Insert your text here", sizeof(AdminHelp));

    ShowPlayerDialog(playerid, DIALOG_TEXT, DIALOG_STYLE_MSGBOX, "Text here", AdminHelp, "Ok", "Close");
    return 1;
}
Try that command and see if it is what you want. That will display a dialog like in the picture you posted.
Here is a tutorial I made a while back: https://sampforum.blast.hk/showthread.php?tid=469899
Hope this helps
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)