[STB2] Save Temporary Bans 2
6 Attachment(s)
[STB2] Save Temporary Bans 2
- Storage temporary bans, in order not lose them after server reboot *PS If you already have SourceBans, don't use this !! If you didn't know, Source Dedicated Server handle bans from "computer memory" (server command listid) and these bans disapear when server reboot. To get bans work after server reboot, you need first execute permanent ban list. Add exec banned_user.cfg exec banned_ip.cfg in ...cfg/autoexec.cfg file When there come changes in SRCDS ban list in "memory" (more bans or unban), need save all current bans from "memory" to banned_user.cfg file Add writeid writeip in ...cfg/server.cfg file
about forked server
But this not work on temporary bans what have timelimit when expire (day, week, moth ban length). Then you need install plugin what keep these bans activate.
Immunity Admins with flag "e" (unban). Can override to different flag or "allow" one of admin groups use stb2_immunity Notice! Works only stb2_mode 1 and 2 Cvars Plugin generate automatically configuration file in ...cfg/sourcemod/plugin.stb2.cfg Code:
stb2_leave_srcds_ban "0" Code:
sm_stb2_banlist - Move plugin stb2.smx in ...addons/sourcemod/plugins/ - Move translation stb2.phrases.txt in ...addons/sourcemod/translations/ - Edit with notepad ...addons/sourcemod/configs/databases.cfg Code:
"Databases" Chat announce Player Bacardi left the game (Banned) 364d 20h 52m 55s left = 2012-06-01 17:15:33 Screenshots Kick message to banned player when they try connect to server in stb2_mode 1 or 2 https://forums.alliedmods.net/attach...1&d=1307038189 Show list bans/unbans, print 5 id at time. Can also search certain id (Now using commands from rcon) https://forums.alliedmods.net/attach...1&d=1307038573 Using MySQL - First, you have own MySQL database - Edit databases.cfg Code:
"stb2" Usage Admin commands - Show 5 bans what are recently added. sm_stb2_banlist - Show next 5 bans, etc. etc. sm_stb2_banlist 5 - Show certain ban by steamid sm_stb2_banlist LIKE STEAM_0:1:12345 - Show 5 bans which contains given text or number, example id from above sm_stb2_banlist LIKE %345% - sm_stb2_unbanlist works same way Credits SM Developer team Wiki SQL (SourceMod Scripting) Save Scores (1.3.4) SoD Player Stats log Code:
Version 2.0, 2.6.2011 |
Re: [STB] Save Temporary Bans
A most needed plugin, good work man.
|
Re: [STB] Save Temporary Bans
Quote:
Hope this work with less trouble and errors. *edit Those who want know how many minutes are x hours, days, weeks, months, or year. Can find from web. http://www.unitconversion.org/time/m...onversion.html *edit edit Feedback ? |
Re: [STB] Save Temporary Bans
Yes, this is a much needed plugin!
I will add this to my servers soon. :) |
Re: [STB] Save Temporary Bans
Great stuff, when I only had 1 server I needed something like this. It will be a great plugin for most servers.
|
Re: [STB] Save Temporary Bans
Quote:
To clarify now in this post... Those who have other addons beside SM. Like Mani Admin Plugin or Event Script, (I assume now) this plugin not save bans added by those plugins or other than SourceMod own plugins. Plugin only save ban or change ban when OnBanClient OnBanIdentity OnRemoveBan happen. Even if ban added by using srcds own command rcon bandid 1440 STEAM_id plugin not save. So this have very limited action... or how to say. When I have more time, I could look add rcon banid part in this plugin. *edit UPDATED version 0.3 Should now save all temporary bans by steamid with ban time |
Re: [STB] Save Temporary Bans
Bacardi
Maybe, you could make a translation file for editing chat or panel messages? :) *edit And, maybe you think about how delete undanned players from list? Quote:
|
Re: [STB] Save Temporary Bans
Quote:
Quote:
*edit I maybe need change my plugin cvar prefix... I didn't look if there already taken "stb_", I found that there is Simple Team Balancer what use this. :grrr: |
Re: [STB] Save Temporary Bans
|
Re: [STB] Save Temporary Bans
is it possible to somehow migrate this to sourcebans?
|
All times are GMT -4. The time now is 18:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.