05.06.2016, 08:04
please tell me how to make commands list like when i press /cmds it shows all commands
CMD:cmds(playerid, params[])
{
new CommandList[2000] = "%s";
new a;
new Commands[][] = {
" \n%s",
"{00FF40} Server Commands\n{DADADA}%s",
"\Type Your Commands In Between It.n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
"Type Your Commands In Between It.\n%s",
};
a = sizeof(Commands);
for(new i = 0; i<a; i++)
{
format(CommandList, sizeof(CommandList), CommandList, Commands[i]);
}
format(CommandList, sizeof(CommandList), CommandList, "");
ShowPlayerDialog(playerid,51, DIALOG_STYLE_MSGBOX, "{FFFF00}SERVER NAME HERE", CommandList, "Close", "");
return 1;
}