Code:
if(!cmd_access(id, level, cid, 3))
return PLUGIN_HANDLED;
3 is the number of arguments that the command contains. Say you are using amx_heal..
amx_heal <player> <amount>
- arg 0 = amx_heal
- arg 1 = <player>
- arg 2 = <amount>
So you have 3 in that case because the command itself counts, too.
__________________