Disable vote command when Admin is Connected.
1 Attachment(s)
Description:
It's simple, this plugin remove the vote command when admin is connected. Changelog: v1.0 - Initial public release. v2.0 - Optimized few settings. Thanks :3 |
Re: Disable vote command when Admin is Connected.
Any suggestions?
|
Re: Disable vote command when Admin is Connected.
nice
but no comments if you want any idea of new plugin then pm me |
Re: Disable vote command when Admin is Connected.
I think you can use bits , its better and dont need to do a loop , only a suggerestion.
|
Re: Disable vote command when Admin is Connected.
Quote:
I would suggest that instead of is_user_admin you would check ( ADMIN_MAP | ADMIN_VOTE | ADMIN_RCON ) flag, because i don't think you want to disable wotes if there is only an admin with ADMIN_CHAT flag online. Edit : my bad, but check against flags that allow admins to kick players, so, in plugin_cfg forward, check dynamically access level of amx_votekick, amx_voteban, amx_kick, amx_ban, amx_banip, make a bitsum of all flags and add ADMIN_RCON in it, or if you are lazy just do ADMIN_KICK | ADMIN_BAN | ADMIN_VOTE | ADMIN_RCON |
Re: Disable vote command when Admin is Connected.
Updated.
|
Re: Disable vote command when Admin is Connected.
PHP Code:
|
Re: Disable vote command when Admin is Connected.
Quote:
|
Re: Disable vote command when Admin is Connected.
disable votemap when admin is connected ? :-/
|
All times are GMT -4. The time now is 22:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.