15.08.2016, 20:53
You can't with ZCMD, you'll have to edit it, but that's not really needed. You could do:
If you enter /command 2, /command or anything else that isn't /command 1, you'll get the unknown command message. So it's practically like having a command with a space.
pawn Код:
#include <sscanf2>
CMD:command(playerid, params[])
{
if(IsNumeric(params) && strval(params) == 1)
{
// Code here
return 1;
}
return 0;
}
stock IsNumeric(const string[])
{
return !sscanf(string, "{d}");
}