SA-MP Forums Archive
The problem GM - 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: The problem GM (/showthread.php?tid=304164)



The problem GM - AliNuTzZz - 17.12.2011

Hello I have a problem when someone writes a wrong command does not write nimik
I want to write like in exempu
Ex say that is wrong command /statss
write:
This command / statss no use / cmds or / help


Re: The problem GM - [MG]Dimi - 17.12.2011

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(!strcmp(cmdtext,"/command",true))
    {
        ...
        return 1;
    }
    else return SendClientMessage(playerid,-1,"Use /cmds");
    return 0;
}
Something like this?