Flag allows to use plugin
So I got an plugin, Golden AK for cs 1.6. It allows you to buy an Golden AK, is you say /goldenak. So what I need, is that only players with admin flag S (ADMIN_LEVEL_G) can buy it. I've been searching around and I think I have to add this to somewhere in the plugin:
Code:
if( get_user_flags(/goldenak) & ADMIN_LEVEL_G)Plugin it self: http://forums.alliedmods.net/showthread.php?t=92393 Hope someone can help. |
Re: Flag allows to use plugin
Just add this
if(!(get_user_flags(id) & ADMIN_LEVEL_G)) return PLUGIN_HANDLED at the top of CmdBuyAk. |
Re: Flag allows to use plugin
Quote:
|
Re: Flag allows to use plugin
1 Attachment(s)
Sure.
|
Re: Flag allows to use plugin
Quote:
|
| All times are GMT -4. The time now is 13:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.