16.10.2011, 12:26
Today i get idea to make admin commands more simple for scripting and reading.
Since i use ZCMD my basic command look's like:
And i made a small function to check is player admin level (or higher)
But now i get even better idea for that.I thinking about adding 3rd parameter to zcmd
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...
Since i use ZCMD my basic command look's like:
pawn Код:
CMD:mycommand(playerid, params[])
{
return 1;
}
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;
}
pawn Код:
CMD:command(playerid, params[], Level)
{
return 1;
}
I wondering is anyone successfully modified ZCMD to something like these?
And dont say use YCMD...