Raised This Month: $18 Target: $400
 4% 

[ANY] CallAdmin Block v2.3 (03/07/2022)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ratawar
Member
Join Date: Dec 2017
Location: Argentina
Plugin ID:
7295
Plugin Version:
2.1
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
3 
Plugin Description:
Allows admins to block people from using CallAdmin
Old 09-17-2020 , 11:55   [ANY] CallAdmin Block v2.3 (03/07/2022)
Reply With Quote #1

[ANY] CallAdmin Block

About

This is a module for CallAdmin written by dordnung and Impact, that facilitates blocking people from using CallAdmin.


Source

The source code can be found here.

Commands

sm_calladmin_block_add <user | STEAM_0:X:XXXXX> <time> [alias]
sm_cb_add <user | STEAM_0:X:XXXXX> <time> [alias]

sm_calladmin_block_remove <user | STEAM_0:X:XXXXX>
sm_cb_remove <user | STEAM_0:X:XXXXX>

sm_calladmin_block_list
sm_cb_list

Usage

Banning users
  • To ban a user, you must specify 2 arguments in the add command: a Steam ID or an in-game target, and the ban time.
    • Ban time is in minutes, send 0 to indicate a permanent ban
  • The third argument is an optional alias to keep track of who you've banned.
    • If you ban an in-game target without specifying an alias, his name will be automatically added as alias
    • If you ban a Steam ID without a target, it will be added to the ban list alias-less.
    • Alias is one word only!
  • If you attempt to ban a user who was already banned, his ban time and alias will be overwritten with what you specified!

Code:
sm_cb_add STEAM_0:1:109770789 30 somealias
Code:
sm_cb_add ampere 60
Unbanning users
  • To unban a user, you can either use the specific command built for that, or open the banlist and do it from there.
    • The command takes only one argument: either a valid Steam ID, or an in-game user.

Code:
sm_cb_remove STEAM_0:1:109770789
Code:
sm_cb_remove ampere
Viewing the ban list
  • The plugin features a powerful menu capable of showing all the bans in the database, as well as accessing each individual ban's details.
    • As you enter a ban's details panel, you have the option to unban that player right away.

Code:
sm_cb_list
Installation

Drag all contents of the zip file inside your <game>/addons/sourcemod/ folder and restart your server.

The plugin uses as database connection name "calladmin_block", so in your <game>/addons/sourcemod/configs/databases.cfg you need to add your database details like so:

Code:
"calladmin_block"
{
	"driver" 			        "mysql"
	"host" 				"your-host-here"
	"database" 			"db-name-here"
	"user" 				"username-here"
	"pass" 				"pw-here"
	"port" 				"3306" // (most likely)
}
Changelog
  • v1.0 (September 17, 2020)
    • Initial release
  • v1.1 (September 17, 2020)
    • Patched memory leaks
  • v2.0 (September 27, 2020)
    • Ditched Files for MySQL user ban storage
    • Added support for temporal and permanent bans
    • Added support for issuing bans with a reference custom alias
  • v2.1 (September 30, 2020)
    • Extra GetAuthId checks
    • Removed redundancies
    • Edited queries to override ban time issue as well on duplicate ban
    • Added some extra returns and deletes to prevent memory leaks
  • v2.3 (March 7, 2022)
    • Added extra database validations (thanks Addie)
    • Added new command aliases (!cb_add, !cb_remove, !cb_list)

TO-DO
  • Add support for SQLite
Attached Files
File Type: zip calladmin-block-v2.3.zip (24.9 KB, 48 views)
__________________

Last edited by ratawar; 03-07-2022 at 22:25.
ratawar is offline
foxsay
AlliedModders Donor
Join Date: Sep 2013
Old 09-18-2020 , 10:03   Re: [ANY] CallAdmin Block
Reply With Quote #2

awesome finnaly i can block kids who spam calladmin
foxsay is offline
SPRINGx
New Member
Join Date: Mar 2020
Old 09-18-2020 , 11:25   Re: [ANY] CallAdmin Block
Reply With Quote #3

Finally, thanks alot.
SPRINGx is offline
gula345
Member
Join Date: Jul 2017
Location: Belgie
Old 09-18-2020 , 18:20   Re: [ANY] CallAdmin Block
Reply With Quote #4

Can you add to your plug a possibility to block some player for time ?
Now if you block you have to remove manually. Will be better if will be like sourcebans this same mechanic to remove ban
gula345 is offline
ratawar
Member
Join Date: Dec 2017
Location: Argentina
Old 09-18-2020 , 19:49   Re: [ANY] CallAdmin Block
Reply With Quote #5

Quote:
Originally Posted by gula345 View Post
Can you add to your plug a possibility to block some player for time ?
Now if you block you have to remove manually. Will be better if will be like sourcebans this same mechanic to remove ban
Sure thing, will add to the TO-DO list.
__________________

Last edited by ratawar; 09-18-2020 at 19:50.
ratawar is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 09-20-2020 , 12:05   Re: [ANY] CallAdmin Block
Reply With Quote #6

Good plugin, but I am missing a kind of database. If a user is banned, he should be blocked on all servers. Is it possible to add something like this in the future?
freak.exe_uLow is offline
ratawar
Member
Join Date: Dec 2017
Location: Argentina
Old 09-20-2020 , 17:30   Re: [ANY] CallAdmin Block
Reply With Quote #7

Quote:
Originally Posted by freak.exe_uLow View Post
Good plugin, but I am missing a kind of database. If a user is banned, he should be blocked on all servers. Is it possible to add something like this in the future?
I'm planning to switch to a database to support both multi-servers and temporal bans!
__________________
ratawar is offline
foxsay
AlliedModders Donor
Join Date: Sep 2013
Old 03-18-2021 , 08:54   Re: [ANY] CallAdmin Block v2.1 (09/30/2020)
Reply With Quote #8

L 03/18/2021 - 11:27:24: [SM] Error (line 62, column 2): Callback error
L 03/18/2021 - 11:27:26: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 03/18/2021 - 11:27:26: [SM] Blaming: a3pAdminP/calladmin_block_sql.smx
L 03/18/2021 - 11:27:26: [SM] Call stack trace:
L 03/18/2021 - 11:27:26: [SM] [0] Database.Query
L 03/18/2021 - 11:27:26: [SM] [1] Line 120, C:\Users\Usuario\Documents\Github\calladmin-block\scripting\calladmin_block_sql.sp::OnCli entPostAdminCheck
__________________
poggers
foxsay is offline
ratawar
Member
Join Date: Dec 2017
Location: Argentina
Old 03-22-2021 , 11:28   Re: [ANY] CallAdmin Block v2.1 (09/30/2020)
Reply With Quote #9

Quote:
Originally Posted by foxsay View Post
L 03/18/2021 - 11:27:24: [SM] Error (line 62, column 2): Callback error
L 03/18/2021 - 11:27:26: [SM] Exception reported: Invalid database Handle 0 (error: 4)
L 03/18/2021 - 11:27:26: [SM] Blaming: a3pAdminP/calladmin_block_sql.smx
L 03/18/2021 - 11:27:26: [SM] Call stack trace:
L 03/18/2021 - 11:27:26: [SM] [0] Database.Query
L 03/18/2021 - 11:27:26: [SM] [1] Line 120, C:\Users\Usuario\Documents\Github\calladmin-block\scripting\calladmin_block_sql.sp::OnCli entPostAdminCheck
By that stack trace I can tell you're using an older version of the program - I will update it in the thread.

You can get the latest (2.2?) version from here:
https://github.com/maxijabase/callad...ee/2.0/plugins

You can see my attempt at preventing this issue in this commit:
https://github.com/maxijabase/callad...36511a5c2b2125
__________________

Last edited by ratawar; 06-02-2021 at 09:59.
ratawar is offline
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 03-04-2022 , 13:45   Re: [ANY] CallAdmin Block v2.1 (09/30/2020)
Reply With Quote #10

Hey and is anyone willing to fix the plugin? The MySQL function does not work anymore. Already wrote to the author on Github, but no answer. Would also pay as a thank you

the problem: https://github.com/maxijabase/callad...ent-1049994106

EDIT: the problem was fixed, I thank the author

Last edited by freak.exe_uLow; 03-08-2022 at 02:03.
freak.exe_uLow 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 02:15.


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