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

Solved create a "fake" client with a particular SteamId


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OneMore
Senior Member
Join Date: Feb 2019
Old 04-06-2022 , 08:32   create a "fake" client with a particular SteamId
Reply With Quote #1

I asked a question about banning offline players in Sourcebans++ here:
https://forums.alliedmods.net/showpost.php?p=2775950

I have an idea to add a "fake user" to the server with a recorded earlier SteamID and call the native function of Sourcebans++ to ban it.
I prefer using natives instead of directly writing to the SBPP database to maintain compatibility with future versions.
What do you think about it?

Last edited by OneMore; 04-06-2022 at 10:23.
OneMore is offline
xerox8521
Senior Member
Join Date: Sep 2011
Old 04-06-2022 , 08:47   Re: create a "fake" client with a particular SteamId
Reply With Quote #2

You could use sm_addban <time> <steamid> [reason]. If you really need a native you should request one on the github issues page.
xerox8521 is offline
OneMore
Senior Member
Join Date: Feb 2019
Old 04-06-2022 , 09:36   Re: create a "fake" client with a particular SteamId
Reply With Quote #3

Quote:
Originally Posted by xerox8521 View Post
You could use sm_addban...
sm_addban does not ban in Sourcebans++, isn't it? Or does Sourcebans catch it? I'm not sure... I need to have bans in Sourcebans++ to see and manage them in the web interface.

To be honest, I doubt that they add such a function based on a GitHub request. It is quite an obvious Native, but they do not have it for many years. Why do they listen to my only request now... That's why I try to find a workaround...
But thanks anyway
OneMore is offline
OneMore
Senior Member
Join Date: Feb 2019
Old 04-06-2022 , 10:11   Re: create a "fake" client with a particular SteamId
Reply With Quote #4

I checked the code and see that Soursebans++ have commands sm_addban. I think this is the best solution, thanks.
OneMore 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 05:03.


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