how to make cmds list - 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: how to make cmds list (
/showthread.php?tid=608803)
how to make cmds list -
usman123 - 05.06.2016
please tell me how to make commands list like when i press /cmds it shows all commands
Re: how to make cmds list -
CSLangdale - 05.06.2016
What processor do you use? But just write your cmd in you command processor and use sendclientmessage(playerid, color_white, "your message");
Re: how to make cmds list -
xTURBOx - 05.06.2016
you have to manually make a command name "/cmds" , and use a dialog,clientmessage,etc to send the list of commands.......... Unless you command processor has a special function to to get it?
Re: how to make cmds list -
usman123 - 05.06.2016
thanks for help
Re: how to make cmds list -
Konstantinos - 05.06.2016
https://sampforum.blast.hk/showthread.php?pid=3702245#pid3702245
Re: how to make cmds list -
Roozevelt - 05.06.2016
How about the Teleports . it's the same one ?
Re: how to make cmds list -
Konstantinos - 05.06.2016
The commands are public functions which can be read by AMX and retrieve them, teleports are not. Unless you have stored the names in an array and loop through them to easily display them in a dialog, you'll have to do it manually.
Re: how to make cmds list -
CarRamper - 05.06.2016
Use This
Код:
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;
}