Raised This Month: $102 Target: $400
 25% 

[Sven Co-op] Hide Donator Icons


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Sven Coop        Category:   Admin Commands       
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 06-30-2016 , 12:06   [Sven Co-op] Hide Donator Icons
Reply With Quote #1

In Sven Co-op, players may donate to the staff to get extra features, plus having an exclusive icon in the scoreboard. This is a very small plugin that hides any donator/extra icon in your server. Useful if you don't want to clutter the scoreboard with unnecessary stuff. This plugin does not block donator features. It does not hide extra features to special users (specific set of Admin Flags defined by a Cvar).

Fully tested and it should work without any issue.

Requirements:
  • Sven Co-op server. Useless in other games.
Cvars
  • amx_svendonor_enabled (default "1")
    • Allows you to enable/disable the plugin.
  • amx_svendonor_ignore (default "ab")
    • Allows you to set which flags users must have in order to be ignored by the plugin.
Changelog:
  • 0.6
    • amx_svendonor_ignore now works properly.
  • 0.5
    • Added CVars.
    • Fixed another typo in one of the strings.
  • 0.2
    • Fixed a small typo in the console message.
  • 0.1
    • Initial Release.
Attached Files
File Type: sma Get Plugin or Get Source (hide_donation.sma - 387 views - 1.4 KB)
__________________

Last edited by Gabe Iggy; 07-01-2016 at 16:02.
Gabe Iggy is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-30-2016 , 13:05   Re: [Sven Co-op] Hide Donator Icons
Reply With Quote #2

Code:
get_user_info(id, "cl_hidextra", value, charsmax(value));
Is this a typo? Are you missing an 'e' character in there? Because in some other strings it appears as "cl_hideextra".

Last edited by KliPPy; 06-30-2016 at 13:06.
KliPPy is offline
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 06-30-2016 , 14:26   Re: [Sven Co-op] Hide Donator Icons
Reply With Quote #3

Quote:
Originally Posted by KliPPy View Post
Code:
get_user_info(id, "cl_hidextra", value, charsmax(value));
Is this a typo? Are you missing an 'e' character in there? Because in some other strings it appears as "cl_hideextra".
Whoops , there is indeed a typo, however the line you posted it's ok, it was the console message (cl_hideextra) the one that was wrong.

Fixed already!
__________________
Gabe Iggy is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 06-30-2016 , 14:35   Re: [Sven Co-op] Hide Donator Icons
Reply With Quote #4

For approval, add a cvar to decide if admins should follow this restriction or not.
__________________
HamletEagle is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: SP, Brazil
Old 06-30-2016 , 14:45   Re: [Sven Co-op] Hide Donator Icons
Reply With Quote #5

Quote:
Originally Posted by HamletEagle View Post
For approval

rly.
__________________
BattleRoyale Mod
Public PugMod
Furien Mod

-

Currently working on Thanos vs. Avengers: 15%
EFFx is offline
Send a message via Skype™ to EFFx
Gabe Iggy
Veteran Member
Join Date: Mar 2011
Location: Chile
Old 07-01-2016 , 15:06   Re: [Sven Co-op] Hide Donator Icons
Reply With Quote #6

Updated!
__________________
Gabe Iggy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:33.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode