Command help
#1

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

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!
Reply
#3

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)