SA-MP Forums Archive
SERVER: Unknown command text? [SOLVED] - 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: SERVER: Unknown command text? [SOLVED] (/showthread.php?tid=435194)



SERVER: Unknown command text? [SOLVED] - Hargrave - 05.05.2013

Hello everyone!

I just wondering when I'm writing in a random command such as /dffewhfeuw it says "SERVER: Unknown command". Is it possible to change that to something else, if yes please give me a code or some information.

Thanks!


Re: SERVER: Unknown command text? - Hargrave - 05.05.2013

I've tried this:
Quote:

Replaced "return 0;" with "return SendClientMessage(playerid, [color], "You're not harry potter to make your own commands");" didn't work.

(Sorry for double posting, forgot to edit the other comment before writing this one)


Re: SERVER: Unknown command text? - SilverKiller - 05.05.2013

If you use ZCMD,

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
    if(!success)
        return SendClientMessage(playerid, 0xFF0000FF, "Ops! Unknown Command!");
    return 1;
}



Re: SERVER: Unknown command text? - Hargrave - 05.05.2013

Thank you so much, yeah I'm using zcmd.

Problem SOLVED.