Help with ZCMD..
#1

I am using ZCMD, if I tipe a wrong command, it says "Server: Unknown command", but I want to change it.. I know that I must put like this:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    return SendClientMessage(playerid, COLOR_GREY, "Invalid command");
}
But that doesn't work..

Thanks
Reply
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/mycommand", cmdtext, true, 10) == 0)
    {
        // Do something here
        return 1;
    }
    return SendClientMessage(playerid, COLOR_GREY, "Invalid command");
}
Reply
#3

Thats what I am doing...
Reply
#4

pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
   if(!success) SendClientMessage(playerid,COLORHERE,"Error: Invalid Command, Please Type /Help To Find Out More!");
   return 1;
}
Reply
#5

Quote:
Originally Posted by mmrk
Посмотреть сообщение
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
   if(!success) SendClientMessage(playerid,COLORHERE,"Error: Invalid Command, Please Type /Help To Find Out More!");
   return 1;
}
Thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)