y_commands question - 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: y_commands question (
/showthread.php?tid=514458)
y_commands question -
PaulDinam - 21.05.2014
I don't understand the help part, whether help is true or not.
How do I make it accessible so it will display that message "Lists all the commands a player can use."
pawn Код:
YCMD:help(playerid, params[], help)
{
if (help)
{
SendClientMessage(playerid, 0xFF0000AA, "Lists all the commands a player can use.");
}
else
{
//
}
return 1;
}
Re: y_commands question -
arakuta - 21.05.2014
AFAIK help parameter works this way:
I type /mycmd help, so the if(help) part will be executed. And if params isn't 'help', then the normal command will be executed.
Re: y_commands question -
PaulDinam - 21.05.2014
It doesn't work, I have tried.
Re: y_commands question -
PaulDinam - 21.05.2014
This doesn't work as well.