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

[TF2] AdvancedBans


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Giovanifsa
Member
Join Date: Jul 2013
Location: Brazil Paraná
Plugin ID:
4757
Plugin Version:
3.1
Plugin Category:
General Purpose
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    5 
    Plugin Description:
    Adds the possibility to ban a player from a class or a team
    Old 07-26-2015 , 20:24   [TF2] AdvancedBans
    Reply With Quote #1

    This plugin adds the ability to ban a player from a team or a class. Should be useful for servers that have some special rules.

    Commands
    sm_advban <player name> <class name or team name> <time> : Bans a player from a class or a team for x minutes.
    sm_advbanid <SteamID3> <class name or team name> <time> : Bans players via SteamIDs from classes or teams for x minutes.

    sm_advunban <player name> <class name or team name> : Unbans a player from a class or a team.
    sm_advunbanid <SteamID3> <class name or team name> : Unbans players via SteamIDs from classes or teams.

    sm_advshow <player name> or sm_advshow : Displays all bans that a player received for classes and teams.


    Versions. Latest update: (07/13/2018)
    Spoiler


    Todo:
    Spoiler


    This plugin saves the main file in addons/sourcemod/data/ with the name bandata.txt

    It's really supposed to work, but if for some reason it doesn't, click in my signature down here and add me! (Or make a post here)
    Attached Files
    File Type: sp Get Plugin or Get Source (advancedbans.sp - 933 views - 28.3 KB)
    __________________

    Last edited by Giovanifsa; 07-12-2018 at 23:38.
    Giovanifsa is offline
    Send a message via Skype™ to Giovanifsa
    Benoist3012
    Veteran Member
    Join Date: Mar 2014
    Location: CWave::ForceFinish()
    Old 07-27-2015 , 05:52   Re: [TF2] Ban player from class/team
    Reply With Quote #2

    Nice job, little question if we ban a player from blue for 20 minutes, the player leave and come back 5 minutes after, the plugin will show to him he need to wait 15 minutes?

    And if the server crash(for a unknow reason) and restart 3 minutes after, if the player come back on the plugin will show to him he still need to wait 17 minutes?

    Ps: Remove your debug code it's useless for server owner, and it's not in english

    Pss: Nice job again!
    __________________

    Last edited by Benoist3012; 07-27-2015 at 05:53.
    Benoist3012 is offline
    Giovanifsa
    Member
    Join Date: Jul 2013
    Location: Brazil Paraná
    Old 07-27-2015 , 10:09   Re: [TF2] Ban player from class/team
    Reply With Quote #3

    Quote:
    Originally Posted by Benoist3012 View Post
    Nice job, little question if we ban a player from blue for 20 minutes, the player leave and come back 5 minutes after, the plugin will show to him he need to wait 15 minutes?

    And if the server crash(for a unknow reason) and restart 3 minutes after, if the player come back on the plugin will show to him he still need to wait 17 minutes?

    Ps: Remove your debug code it's useless for server owner, and it's not in english

    Pss: Nice job again!
    Yep, the plugin gets the actual time and compare with the ban time
    Thanks!
    __________________

    Last edited by Giovanifsa; 07-27-2015 at 10:10.
    Giovanifsa is offline
    Send a message via Skype™ to Giovanifsa
    Benoist3012
    Veteran Member
    Join Date: Mar 2014
    Location: CWave::ForceFinish()
    Old 07-27-2015 , 10:46   Re: [TF2] Ban player from class/team
    Reply With Quote #4

    Quote:
    Originally Posted by Giovanifsa View Post
    Yep, the plugin gets the actual time and compare with the ban time
    Thanks!
    Good to know, so we ban a player 2 years he come back 1 years after he still need to wait that good
    __________________
    Benoist3012 is offline
    Giovanifsa
    Member
    Join Date: Jul 2013
    Location: Brazil Paraná
    Old 07-28-2015 , 10:44   Re: [TF2] Ban player from class/team
    Reply With Quote #5

    Quote:
    Originally Posted by Benoist3012 View Post
    Good to know, so we ban a player 2 years he come back 1 years after he still need to wait that good
    Just don't ban them for 23 Years, because I think this plugin will bug in 2038 :v
    __________________
    Giovanifsa is offline
    Send a message via Skype™ to Giovanifsa
    Rd1981
    Senior Member
    Join Date: Apr 2011
    Old 07-29-2015 , 10:37   Re: [TF2] Ban player from class/team
    Reply With Quote #6

    Would it be possible to have some type of interface that shows players if their banned from class or team and for how long like bluebans does but its a pretty basic webpanel.
    Rd1981 is offline
    Giovanifsa
    Member
    Join Date: Jul 2013
    Location: Brazil Paraná
    Old 07-30-2015 , 13:23   Re: [TF2] Ban player from class/team
    Reply With Quote #7

    Quote:
    Originally Posted by Rd1981 View Post
    Would it be possible to have some type of interface that shows players if their banned from class or team and for how long like bluebans does but its a pretty basic webpanel.
    Well, I don't know anything about Webpanels now, but i'm sure i'll add a menu for banned players
    __________________
    Giovanifsa is offline
    Send a message via Skype™ to Giovanifsa
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 07-30-2015 , 17:20   Re: [TF2] Ban player from class/team
    Reply With Quote #8

    What are you doing about maps that switch teams when rounds change, such as every payload map ever?
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord is offline
    Benoist3012
    Veteran Member
    Join Date: Mar 2014
    Location: CWave::ForceFinish()
    Old 07-31-2015 , 04:25   Re: [TF2] Ban player from class/team
    Reply With Quote #9

    Quote:
    Originally Posted by Powerlord View Post
    What are you doing about maps that switch teams when rounds change, such as every payload map ever?
    According to the 1st post that mean if the player is banned from blue, he will be a defender forever
    __________________
    Benoist3012 is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 07-31-2015 , 11:51   Re: [TF2] Ban player from class/team
    Reply With Quote #10

    Quote:
    Originally Posted by Benoist3012 View Post
    According to the 1st post that mean if the player is banned from blue, he will be a defender forever
    I should probably note that I read the code before I asked that question.

    The answer actually is... it does nothing in the current version.

    Why? Because automatic team changes do not use the jointeam command, even though they fire the player_team event.

    This is because it's only checking for the jointeam command, but the game switches the players' teams on its own.

    Autobalance / Team Scramble has the same issue.

    For that matter, the autoteam command is not being hooked. `autoteam` is used by players to select a random team... it's functionally the same as choosing the Random door on the team selection screen.
    __________________
    Not currently working on SourceMod plugin development.
    Powerlord 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 21:16.


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