Modifing ZCMD
#1

Today i get idea to make admin commands more simple for scripting and reading.

Since i use ZCMD my basic command look's like:
pawn Код:
CMD:mycommand(playerid, params[])
{
    return 1;
}
And i made a small function to check is player admin level (or higher)
pawn Код:
CMD:myadmincommand(playerid, params[])
{
    LevelCheck(playerid, 2);//These will check is player level 2 or higher if no it will return error message
    return 1;
}
But now i get even better idea for that.I thinking about adding 3rd parameter to zcmd
pawn Код:
CMD:command(playerid, params[], Level)
{
    return 1;
}
The problem is that i always get some error or warnings or whatever
I wondering is anyone successfully modified ZCMD to something like these?
And dont say use YCMD...
Reply


Messages In This Thread
Modifing ZCMD - by DRIFT_HUNTER - 16.10.2011, 12:26
Re: Modifing ZCMD - by DRIFT_HUNTER - 16.10.2011, 13:03

Forum Jump:


Users browsing this thread: 3 Guest(s)