How to do a custom "wrong command" with zcmd? - 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: How to do a custom "wrong command" with zcmd? (
/showthread.php?tid=401436)
How to do a custom "wrong command" with zcmd? -
101 - 22.12.2012
How to do a custom "wrong command" text with zcmd? I know how to do it with onplayercmdtext but what about zcmd?
Re: How to do a custom "wrong command" with sscanf? -
RedCrossER - 22.12.2012
Please be more specific , don't get you
Re: How to do a custom "wrong command" with zcmd? -
101 - 22.12.2012
How can I be more specific? It says everything... lol
Re: How to do a custom "wrong command" with zcmd? -
stabker - 22.12.2012
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");
Re: How to do a custom "wrong command" with zcmd? -
gtakillerIV - 22.12.2012
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;
}