SA-MP Forums Archive
Unknow Command [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: Unknow Command [ZCMD] (/showthread.php?tid=406328)



Unknow Command [ZCMD] - [CG]Milito - 09.01.2013

Hello!

I'm wondering how to change the default message when you type an unknown command, since I switched to ZCMD and it doesn't use OnPlayerCommandText callback I don't know how to change it

Hope you understand

Thanks in advance


Re: Unknow Command [ZCMD] - JustinAn - 09.01.2013

Do you mean this?

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success) SendClientMessage(playerid, COLOR_WHITE, "ChangeMe");
    return 1;
}
If yes, your welcome.


Re: Unknow Command [ZCMD] - [CG]Milito - 09.01.2013

Thanks man
+rep