/help - 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: /help (
/showthread.php?tid=270589)
/help -
iGetty - 20.07.2011
How can I make a command like this:
pawn Код:
command(help, playerid, params)
{
Here will be, say you did /help [WORD], and when you chose the word, it shows information, like this:
/help commands
It would show the commands help, and how could I do it for like, 6 different things?
return 1;
}
Thanks.
Re: /help -
[HiC]TheKiller - 21.07.2011
Use the example located
HERE
Re: /help -
iGetty - 21.07.2011
That explains nothing to do with what I want..
Re: /help -
PrawkC - 24.07.2011
pawn Код:
CMD:help(playerid, params[])
{
new option[24];
if(sscanf(params, "s[24]", option))
{
SendClientMessage(playerid, -1, "Syntax: /help option");
SendClientMessage(playerid, -1, "Options: vehicle, etc, etc ,etc");
return 1;
}
if(!strcmp(option, "vehicle", true))
{
SendClientMessage(playerid, -1, "Heres your vehicle help!");
}
else return SendClientMessage(playerid, -1, "That option doesn't exist!");
return 1;
}
Should be straight forward on how to add more
Edit: lol just noticed this was an old topic, hadn't closed this tab! lol.