Raised This Month: $32 Target: $400
 8% 

User's initiated voteban


Post New Thread Reply   
 
Thread Tools Display Modes
Author
blood
New Member
Join Date: Jul 2007
Location: Bellefeuille, Québec
Plugin ID:
109
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allow user's initiated voteban
    Unapprover:
    Reason for Unapproving:
    conlficts with sourcemod base.
    Old 07-29-2007 , 17:25   User's initiated voteban
    Reply With Quote #1

    This plugins allow user's initiated voteban with or without admin presence.


    Feature:
    • Users can be votebanned even if they leave before the vote end.
    Cvars:
    • sm_uvoteban_percent
      • Percent needed to voteban
      • Default: 0.60 (60%)
    • sm_uvoteban_bantime
      • Time in minutes target will be banned
      • Default: 30
    • sm_uvoteban_time_vote_last
      • Seconds until vote end
      • Default: 120 (2 min)
    • sm_uvoteban_enable_if_admin_is_present
      • Can voteban even if admin is present (1: Yes, 0: No)
      • Default: 0 (No)
    • sm_uvoteban_minimum_votes
      • Minimum number of votes it take to ban
      • Default: 3
    • sm_uvoteban_bantype
      • 0 = ban by ID, 1 = ban by IP, 2 = both
      • Default: 0 (by SteamID)
    • sm_uvoteban_votekick
      • Allow "votekick" to be an alias of the voteban command. (1: Yes, 0: No)
      • Default: 0 (No)
    Installation
    • Step 1:
      • Click "Get Plugin" at the bottom of the post and save to your addons\sourcemod\plugins directory
    • Step 2:
      • Download the "plugin.uvoteban.txt" file and put it into your addons\sourcemod\translations directory
    (the cvars and installation steps style were taken from ferret's KnifeMug)
    Attached Files
    File Type: sp Get Plugin or Get Source (uvoteban.sp - 1329 views - 11.9 KB)
    File Type: txt plugin.uvoteban.txt (1.8 KB, 539 views)

    Last edited by blood; 08-05-2007 at 21:58.
    blood is offline
    Isias
    Senior Member
    Join Date: Apr 2006
    Old 07-29-2007 , 20:53   Re: User's initiated voteban
    Reply With Quote #2

    German Translation (UTF - 8 )
    Attached Files
    File Type: txt plugin.uvoteban.txt (1.8 KB, 374 views)
    Isias is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 07-29-2007 , 23:19   Re: User's initiated voteban
    Reply With Quote #3

    Good, however, I suggest a rewrite when the Vote manager comes out in the "base code" which will simplify the process and the code that you have. A lot you will still need to see if there is an admin online and a lot of your other checks.

    You could start the re-write now, however there would be a few changes once it's in official release form.

    Good work otherwise and nice idea on the checking to see if an admin with the correct permissions is around. A suggestion is to use the
    Code:
    GetAdminFlag(aid, Access_Ban, Access_Effective)
    native which would be easier when checking the users who have "ban" access.
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ is offline
    blood
    New Member
    Join Date: Jul 2007
    Location: Bellefeuille, Québec
    Old 07-31-2007 , 20:19   Re: User's initiated voteban
    Reply With Quote #4

    Thanks for the translation -<[PAGC]>- Isias!

    Thanks ^BuGs^ for the suggestions, I'll take a look at Vote manager.
    blood is offline
    ^BuGs^
    Senior Member
    Join Date: May 2007
    Old 08-01-2007 , 16:40   Re: User's initiated voteban
    Reply With Quote #5

    Also, for the command triggers in the chat window, you should go with using:

    Code:
    RegConsoleCmd("sm_voteban", Command_VoteBan);
    Instead of having to phrase every line in say. This will also help when you create automatic triggers: !voteban and /voteban
    __________________
    Sourcemod Plugin Author and Plugin Approver
    "The correct way is MAXPLAYERS + 1"
    I will not take bugs/new idea reports over the forums. Please use the issue list.
    ^BuGs^ is offline
    blood
    New Member
    Join Date: Jul 2007
    Location: Bellefeuille, Québec
    Old 08-05-2007 , 22:02   Re: User's initiated voteban
    Reply With Quote #6

    Thanks, i updated it and I fixed a bug.
    blood is offline
    ferret
    SourceMod Developer
    Join Date: Dec 2004
    Location: Atlanta, GA
    Old 08-08-2007 , 14:08   Re: User's initiated voteban
    Reply With Quote #7

    I hiighly suggest NOT using sm_voteban. That will exist in SM's base vote commands.
    __________________
    I'm a blast from the past!
    ferret 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 10:00.


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