SA-MP Forums Archive
how to change this ... - 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 change this ... (/showthread.php?tid=484917)



how to change this ... - Laserman - 02.01.2014

hello, I want to change the 'Server: Unknown Command' when the player typed a wrong command
I am using zcmd

my code:
CMD:lv(playerid, params[])
{
SetPlayerPos(playerid,2026.8271,1341.9763,10.8203) ;
GameTextForPlayer(playerid, "~g~Las Venturas", 5000, 3);
return 1;
}


Re: how to change this ... - HardRock - 02.01.2014

PHP код:
public OnPlayerCommandPerformed(playeridcmdtext[], success)
{
    if(!
success)
    {
        
SendClientMessage(playeridYOURCOLORHERE"MESSAGE HERE!!!");
    }
    return 
1;