The thing is, you don't put the zcmds under OnPlayerCommandText.
Example:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
// all
return 1;
}
return 0;
}
You can't use the following under OnPlayerCommandText
pawn Код:
CMD:test(playerid, params[])
{
SendClientMessage(playerid, -1, "test");
return 1;
}
Example of what NOT to do:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
CMD:test(playerid, params[])
{
SendClientMessage(playerid, -1, "test");
return 1;
}
return 1;
}
If you put the CMD:test under OnPlayerCommandText, it doesn't work, because you can only put strcmp commands under OnPlayerCommandText.
zcmd can be put anywhere on the script, just do it like I showed you.
Hope I helped!