[how] instead of (id, level, cid)
in this function
public HandleBanhammer(id, level, cid) { if (!cmd_access(id, level, cid, 1)) return PLUGIN_HANDLED; it checks an admin access how to make it public HandleBanhammer(id) but with similar check. if (get_user_flags == ? |
Re: [how] instead of (id, level, cid)
yes, AFAIK
Code:
public BanHammer(id) |
Re: [how] instead of (id, level, cid)
if (get_user_flags(id) & ADMIN_LEVEL_B) return PLUGIN_HANDLED;
ok found |
Re: [how] instead of (id, level, cid)
Why do you not want to use it that way?
You should at least do something like this: Code:
|
Re: [how] instead of (id, level, cid)
also you should use
~get_user_flags(id) & level instead !(get_user_flags(id) & level) |
Re: [how] instead of (id, level, cid)
Stick with cmd_access.
|
Re: [how] instead of (id, level, cid)
Quote:
|
| All times are GMT -4. The time now is 04:31. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.