Too Late To Ban
1 Attachment(s)
Description
This plugin store players names and steamids that disconnected recently, allowing you to ban them with a menu even if they are disconnected. Usefull for those little <insert insult here> that jump from a cliff and disconnect immediately (l4d players will see what I meen :evil:). You can access the menu from the section "Player Commands" in AdminMenu (can be disabled) or by a SM command. The plugin use the command "sm_addban" to ban the player, so it work with SM basebans and sourcebans. Commands sm_tltb - Display a menu with disconnected players (!tltb or /tltb in chat) sm_tltb reset - Reset the stored players sm_tltb resetmenu - Reset the ban menu options file CVars tltb_check_reason - Only store a player informations if he disconnected himself, values: <0|1> (Default 0) tltb_stored_players - The maximum number of player(s) to store, values: <0 to 20> (Default 7) tltb_players_order - Display the last disconnected players first in the menu, values: <0|1> (Default 1) tltb_use_ban_reason - Display the ban reasons menu, values: <0|1> (Default 1) tltb_use_admin_menu - Add a "Ban disconnected player" menu in players commands section of AdminMenu, values: <0|1> (Default 1) Installation Put "TooLateToBan.smx" in your "<mod_dir>/addons/sourcemod/plugins/" directory. On first load the plugin will create a config file located here: "<mod_dir>/cfg/sourcemod/too_late_to_ban.cfg" And a file containing ban time and ban reasons displayed by the menu and used to ban the player, located here: "<mod_dir>/addons/sourcemod/data/tltb_ban_options.txt" tltb_ban_options.txt sample Code:
"TooLateToBan" Changelog 1.0.0 - 12/07/09 * Initial release 1.0.0a - 14/07/09 * Added condition to check if player is already strored * Added public cvar tltb_version Notes This is my first SM plugin, so it's not bug free I think or optimized, feel free to tell me what i'm doing wrong and to use this thread if you find bug(s). English is not my language, sorry if I spell it wrong. So, have fun and ban those *bip* that ruin your game and disconnect. :mrgreen: |
Re: Too Late To Ban
Nice work and idea. How does it store them? (I havnt looked at the plugin)
|
Re: Too Late To Ban
It store players informations in arrays.
|
Re: Too Late To Ban
oh wow great plugin. I was using lastx for a while, but it didn't go the extra step to make something like htis. Great idea.
|
Re: Too Late To Ban
Looks like a handy little plugin for a few of our servers. Thanks :)
|
Re: Too Late To Ban
Excellent plugin. Thanks alot for making this.
|
Re: Too Late To Ban
YAY... A nother excelent plugin that sounds like 100% what i need.
i think i am 1-2 plugin(s) away from having a perfect server now.. Thank you |
Re: Too Late To Ban
Thanks for your comments, hope it helps. :)
|
Re: Too Late To Ban
Please update your description to include the public cvar in your code. Once done your plugin will be approved.
|
Re: Too Late To Ban
I'm getting double names in the ban list. Such as:
1.) Player 1 2.) Player 1 3.) Player 2 4.) Player 2 5.) Player 3 6.) Player 3 7.) Player 4 |
All times are GMT -4. The time now is 11:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.