SA-MP Forums Archive
Help Please - 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 Please (/showthread.php?tid=237469)



Help Please - Ironboy - 09.03.2011

i need a help.If a player used a unknown command it should show...
"This command is not exist do /help for more informations"
how to do that?


Re: Help Please - Montis123 - 09.03.2011

You use zcmd or cmdtext?


Re: Help Please - Ironboy - 09.03.2011

cmdtext


Re: Help Please - Montis123 - 09.03.2011

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
return SendClientMessage(playerid,COLOR,"SERVER: All commands /help");
}



Re: Help Please - Ironboy - 09.03.2011

ok its done ty


Re: Help Please - Riddick94 - 09.03.2011

How to do that w ZCMD?


Re: Help Please - Montis123 - 09.03.2011

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
How to do that w ZCMD?
pawn Код:
public OnPlayerCommandPerformed(playerid,cmdtext[],success)
{
if(!success) return SendClientMessage(playerid,COLOR,"SERVER: All commands /help");
return 1;
}