13.01.2010, 19:54
Include the ZCMD include, ZCMD uses an alternative function for command responses, you'll need to remove the dcmd(xxx). There are two functions, one when the command is recieved and one when it has been performed.
DCMD:
With ZCMD:
Just an example, to show you the difference. You should add level checks under the command, instead of the part where it's parsing the command.
pawn Код:
public OnPlayerCommandPerformed(playerid, cmdtext[], success)
{
return 1;
}
public OnPlayerCommandReceived(playerid, cmdtext[])
{
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(afro, 4, cmdtext);
}
dcmd_afro(playerid, params[])
{
return 1;
}
pawn Код:
command(afro, playerid, params[])
{
return 1;
}