AS topic says, im wondering how to overrule a flagcheck in my code.
I've been created a command and registered it as concmd, using flag ADMIN_LEVEL_A bound to it as accessflag needed.
However, what ive been trying with bad results is to be able to perform this command on admins as much as on normal users without any accesses. Like if I do this command on an admin, it will be performed and CONTINUED instead of saying "Client has Immunity"
Code:
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDELD
perhaps I would use this instead:
Code:
if(get_user_flags(id)&ADMIN_LEVEL_A)
return PLUGIN_CONTINUE
Am I totaly out-of-bounds here, or am I close to the solutionen?
Need a bit help.