Raised This Month: $51 Target: $400
 12% 

[Sven Co-op] Hide Donator Icons


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Sven Coop        Category:   Admin Commands       
gabuch2
AlliedModders Donor
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 - 686 views - 1.4 KB)
__________________

Last edited by gabuch2; 07-01-2016 at 16:02.
gabuch2 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
gabuch2
AlliedModders Donor
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!
__________________
gabuch2 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: São Paulo, Brasil
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.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-01-2016 , 15:06   Re: [Sven Co-op] Hide Donator Icons
Reply With Quote #6

Updated!
__________________
gabuch2 is offline
Reply



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 11:22.


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