How to creat big dialog msg box -
sn0p - 18.01.2014
Код:
//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
Re: How to creat big dialog msg box -
Nourdin - 18.01.2014
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;
}
Re: How to creat big dialog msg box -
sn0p - 18.01.2014
No that i wanna(sorry for bad english)
Re: How to creat big dialog msg box -
Nourdin - 18.01.2014
What do you mean? Can you give me a good explaination please?
Re: How to creat big dialog msg box -
1FreeHost - 18.01.2014
What are you actually asking for?
Re: How to creat big dialog msg box -
EmrysXD - 18.01.2014
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.
Re: How to creat big dialog msg box -
sn0p - 18.01.2014
How to create somthing like that
Re: How to creat big dialog msg box -
zola0311 - 18.01.2014
Код:
#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");
Re: How to creat big dialog msg box -
Blademaster680 - 18.01.2014
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