SA-MP Forums Archive
Command 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)
+--- Thread: Command help (/showthread.php?tid=582750)



Command help - Toxik - 23.07.2015

Sup guys
How can i replace SERVER: Unknown command
with text [SERVER]: use /help to se all the server commands!


Re: Command help - Stanford - 23.07.2015

What command processor are you using?
If it's zcmd: under OnPlayerCommandPerformed
pawn Код:
if(!success) { // message }
I hope I helped any feedback is appreciated
Hint: this works with izcmd version (Yashas) too I believe!


Re: Command help - TenTen - 23.07.2015

Quote:
Originally Posted by Toxik
Посмотреть сообщение
Sup guys
How can i replace SERVER: Unknown command
with text [SERVER]: use /help to se all the server commands!
Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
	if(! success) return GameTextForPlayer(playerid, "~r~Unknown command~n~~r~Try /help for commands list", 5000, 3);
	return 1;
}