need help wich servar command
#9

Quote:
Originally Posted by Kase
Посмотреть сообщение
ZCMD is a command system for pawn.

Anyways, what do you exactly want?
He means that if someone writes some non existing command, this will SendClientMessage(playerid,0xFF0000FF,"wrong command use/cmds");

Anyways you can do it like this. (Or just try it - I'm not sure).

Where's your OnPlayerCommandText callback.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return 0;
}
And now just change this return 0; to return SendClientMessage(playerid,0xFF0000FF,"wrong command use/cmds");
Reply


Messages In This Thread
need help wich servar command - by doreto - 18.01.2011, 14:32
Re: need help wich servar command - by Kase - 18.01.2011, 14:47
Re: need help wich servar command - by Alex_Valde - 18.01.2011, 14:52
Re: need help wich servar command - by doreto - 18.01.2011, 15:46
Re: need help wich servar command - by Alex_Valde - 18.01.2011, 15:49
Re: need help wich servar command - by doreto - 18.01.2011, 15:50
Re: need help wich servar command - by Kase - 18.01.2011, 15:51
Re: need help wich servar command - by doreto - 18.01.2011, 15:54
Re: need help wich servar command - by Alex_Valde - 18.01.2011, 16:04
Re: need help wich servar command - by BlackWolf120 - 18.01.2011, 16:08

Forum Jump:


Users browsing this thread: 3 Guest(s)