Page 1 of 1

[CS:GO] Timed CTBans

Posted: Tue Jul 23, 2019 3:52 pm
by in_so@pta
[CS:GO] Timed CTBans Allows admins to CTBan players for X amount of rounds
Developed by GryTrean

Description:

This plugin allows server administrators to ban a player or SteamID from joining the CT team for an entered amount of rounds. This plugin is still under development and minor bugs might still be found. Plugin is tested and should work with other plugins without any problems.

Features:
CTBans for any amount of rounds
MySQL connected
Ban Reason
Ban-Status command
SteamID banning/unbanning
Multiple CT-Join blocking (round start, round end, swapteam)

Commands:
sm_ctban <player> <rounds> <reason> - Bans a PLAYER from the CT Team for X ROUNDS. The last argument is to set a reason for the ban - Shows when player gets banned and when he/she checks ban status
sm_ctunban <player> - Unbans a PLAYER from the CT Team.
sm_ctstatus - If you are banned, returns the reason of the ban. If you are not, informs you that you can join the CT Team.
To allow players to CTBan others, give them the "ADMFLAG_SLAY" flag
The plugin does at this moment not contain any CVARS or Translation files. These are planned to be created in the upcoming versions.

Installation:
Drop ctbans.smx to /sourcemod/plugins
Eventually drop ctbans.sp to /sourcemod/scripting
Add this to databases.cfg (of course with your information instead of the given
Code:

Code: Select all

"ctbans"
{
	"driver"			"default"
	"host"			"localhost"
	"database"			"sourcemod"
	"user"			"root"
	"pass"			""

}
Restart the server (for the highest chance of working. Not sure if just reloading the plugin will properly connect to MySQL).

Planned Updates:
Checking other players ban-status
Perm-Bans
Your ideas

Changelog:
Code:

Code: Select all

03.11.2016
* Started Developing the plugin

03.12.2016
* Intial plugin release on AlliedModders
Screenshots:
CTBan
Spoiler


Image

CTUnban
Spoiler


Image

Swithteam while banned & CTStatus
Spoiler


Image




Thank you for taking your time and reading this.
I hope you will like the plugin, it might also be smart to tell you, that this is the actual first plugin I upload here. I have some more JailBreak plugins on my disk (more than 3000 lines of code!) which I will be glad to sell by a nice price.
I hope I didnt forget anything, if you have any questions, just write in the comments below and I will try to answer.

I also appreciate all donates I get. I give out plugins for free which are not always that easy to make. Thank you!
Donate: https://www.paypal.com/cgi-bin/webscr?c ... 44RBDXE4EA
Attached Files
File Type: smx [ENG] ctban.smx
File Type: sp Get Plugin or Get Source ctban.sp
File Type: smx [PL] CTban.smx
Source AlliedModders