How to do a custom "wrong command" with zcmd?
#1

How to do a custom "wrong command" text with zcmd? I know how to do it with onplayercmdtext but what about zcmd?
Reply
#2

Please be more specific , don't get you
Reply
#3

How can I be more specific? It says everything... lol
Reply
#4

Try zcmd include edited by me http://pastebin.com/Y9AAgUyN

And in top of your public OnPlayerCommandText add:

pawn Код:
if(zcmd(playerid,cmdtext) > 0)return 1;
else return SendClientMessage(playerid, -1, "Wrong command");
Reply
#5

Not sure what you ment, but try out OnplayerCommandPerformed.

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{    
    if(!success) return SendClientMessage(playerid, -1, "Unkown CMD | Use /cmds");  //If the command was wrong/invalid
 return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)