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

[ANY] List Donators


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Malachi
Senior Member
Join Date: Jun 2010
Location: USA
Plugin ID:
3485
Plugin Version:
0.0.7
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Gives admins an easy way to list donators on the server.
    Old 01-24-2013 , 13:00   [ANY] List Donators
    Reply With Quote #1

    Credits:
    Thanks toazron1 for his Basic Donator Interface which this uses.
    Thanks to Mammal and Necrophix Gaming Community for their support.

    How It Works:
    When an admin types !listdonators (or /listdonators) in chat, the plugin lists all donators currently on the server. The list is only displayed to admins.

    Notes:
    I use this to verify when I've added a donator to the database. Tested on TF2. Relies on Basic Donator Interface to keep track of donators, so you must already be running that. I also added a check for IsFakeClient because I was sometimes getting Replay listed as a donator - not sure if it's this plugins fault or not.

    CVARS:
    <none>

    Registered Commands:
    sm_listdonators (new as of v0.0.6)

    Potential Future Enhancements:
    Reload donators before we list them.

    Installation Instructions:
    You must already be running Basic Donator Interface. Download the zip file (this won't auto-compile because of includes). Drop the .smx file in your plugins directory. Change maps or restart the server or issue a plugin load command.

    Versions:
    * 0.0.7 - fix donator number counter
    * 0.0.6 - convert chat trigger to cvar, also check for fake player
    * 0.0.5 - Changed chat trigger to avoid conflict w/basic donator plugin, removed unneeded cvar
    * 0.0.4a - changed earlier admin check to prevent donators from triggering plugin
    * 0.0.3a - alpha, added color text, changed admin check to exclude donators (unlike before)
    * 0.2 - alpha
    * 0.1 - alpha
    Attached Files
    File Type: sp Get Plugin or Get Source (donator.list.sp - 378 views - 2.4 KB)
    File Type: smx donator.list.smx (3.3 KB, 356 views)

    Last edited by Malachi; 08-03-2013 at 16:01. Reason: Update to v0.0.7
    Malachi is offline
    Groger
    Veteran Member
    Join Date: Oct 2009
    Location: Belgium
    Old 01-24-2013 , 13:57   Re: [ANY] List Donators
    Reply With Quote #2

    Actually, isin't it better to base it on a flag instead of "basic donator interface"? Cause now server that don't use it cannot use this.

    If you modify it so its based on a flag everyone can use it, even bdi
    Groger is offline
    shavit
    AlliedModders Donor
    Join Date: Dec 2011
    Location: Israel
    Old 01-24-2013 , 14:23   Re: [ANY] List Donators
    Reply With Quote #3

    I think you should make an sm_listdonators command instead of hooking chat..
    __________________
    retired
    shavit is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 01-24-2013 , 15:00   Re: [ANY] List Donators
    Reply With Quote #4

    What is wrong with using sm_who to verify who is a donator?
    Additionally you don't need that zip file attached.

    Last edited by Sreaper; 01-24-2013 at 15:08.
    Sreaper is offline
    Malachi
    Senior Member
    Join Date: Jun 2010
    Location: USA
    Old 01-24-2013 , 15:56   Re: [ANY] List Donators
    Reply With Quote #5

    Quote:
    Originally Posted by Groger View Post
    Actually, isin't it better to base it on a flag instead of "basic donator interface"? Cause now server that don't use it cannot use this.

    If you modify it so its based on a flag everyone can use it, even bdi
    I don't have much experience using flags. We use BDI which doesn't use them.

    I guess I can look into it. Right now my priorities are elsewhere.
    Malachi is offline
    Malachi
    Senior Member
    Join Date: Jun 2010
    Location: USA
    Old 01-24-2013 , 15:57   Re: [ANY] List Donators
    Reply With Quote #6

    Quote:
    Originally Posted by shavit View Post
    I think you should make an sm_listdonators command instead of hooking chat..
    Hmm, and maybe have it automatically add itself to the admin menu?
    Malachi is offline
    Malachi
    Senior Member
    Join Date: Jun 2010
    Location: USA
    Old 01-24-2013 , 16:01   Re: [ANY] List Donators
    Reply With Quote #7

    Quote:
    Originally Posted by Sreaper View Post
    What is wrong with using sm_who to verify who is a donator?
    Additionally you don't need that zip file attached.
    I thought this wouldn't auto-compile because of external includes. Am I wrong?

    I've never heard of using sm_who. Is that a standard SM command? Ok, I see it.

    That looks more useful for using admin flags when tracking donators. We're not doing it that way - we have a dedicated database to manage them.


    EDIT: The plugin fails to compile through the forums as expected.

    Last edited by Malachi; 01-24-2013 at 16:02.
    Malachi is offline
    Sreaper
    髪を用心
    Join Date: Nov 2009
    Old 01-24-2013 , 16:58   Re: [ANY] List Donators
    Reply With Quote #8

    You can manually attach the .smx as it's a valid filetype.
    You should only compress large files as right now all you are saving is 92 bytes.
    It's taking longer to extract the plugin than it would have been to download it directly.

    Last edited by Sreaper; 01-24-2013 at 17:21.
    Sreaper is offline
    Malachi
    Senior Member
    Join Date: Jun 2010
    Location: USA
    Old 01-25-2013 , 01:51   Re: [ANY] List Donators
    Reply With Quote #9

    Quote:
    Originally Posted by Sreaper View Post
    You can manually attach the .smx as it's a valid filetype.
    You should only compress large files as right now all you are saving is 92 bytes.
    It's taking longer to extract the plugin than it would have been to download it directly.
    Done!
    Malachi is offline
    Malachi
    Senior Member
    Join Date: Jun 2010
    Location: USA
    Old 08-05-2013 , 10:44   Re: [ANY] List Donators
    Reply With Quote #10

    There is currently an intermittant issue where this plugin unexpectedly reports the Replay bot as a donator. I have looked at the code, but am thinking the problem lies in the IsPlayerDonator func as supplied by donator.core.
    Malachi 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:18.


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