Will this work? - 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: Will this work? (
/showthread.php?tid=116406)
Will this work? -
JoeDaDude - 28.12.2009
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// Do something here
return 1;
}
return SendClientMessage(playerid,COLOR_WHITE,"This command does not exist, Please type /commands for a list");
}
Ingame would that say: This command does not exist, Please type /commands for a list
If someone types in a command that dont exist
Re: Will this work? -
Jeffry - 28.12.2009
Why didnt you just try.
And i think it will work.
Re: Will this work? -
LarzI - 28.12.2009
Yes that will work.
For christ's sake, test before asking.