how to make cmds list
#1

please tell me how to make commands list like when i press /cmds it shows all commands
Reply
#2

What processor do you use? But just write your cmd in you command processor and use sendclientmessage(playerid, color_white, "your message");
Reply
#3

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?
Reply
#4

thanks for help
Reply
#5

https://sampforum.blast.hk/showthread.php?pid=3702245#pid3702245
Reply
#6

How about the Teleports . it's the same one ?
Reply
#7

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.
Reply
#8

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;
	}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)