SA-MP Forums Archive
How to make a /commands menu - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to make a /commands menu (/showthread.php?tid=90624)



How to make a /commands menu - SampStunta - 09.08.2009

Hello, please help me on how to make a /commands menu...

So like you type in /commands and it comes up with a list of commands


Thanx!


Re: How to make a /commands menu - pagie1111 - 09.08.2009

pawn Код:
SendClientMessage(playerid,COLOR,const message[]);



Re: How to make a /commands menu - Rickk - 09.08.2009

Do you mean a list of commands just like text? Or do you want to create a menu that views the commands (and maybe even executes them).

In case of just like text:

Код:
if(strcmp(cmd, "/Commands", true) == 0)
{
  SendClientMessage(playerid, YOUR_COLOR, " This are the commands of your server");
  SendClientMessage(playerid, YOUR_COLOR, " /command 1, /command 2, /command 3");
  SendClientMessage(playerid, YOUR_COLOR, " /command 4, /command 5, /command 6");
}
In case of the menu it is a bit more complicated.


Re: How to make a /commands menu - SampStunta - 19.08.2009

And What Do I Put This In?