Raised This Month: $32 Target: $400
 8% 

Release SourceBans++ (v1.6.4) [Updated: 2021-10-06]


Post New Thread Closed Thread   
 
Thread Tools Display Modes
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 02-19-2018 , 14:35   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1211

Quote:
Originally Posted by Neuro Toxin View Post
Nice.

"SourceBans++ runs on variety of games that use the Source Engine, from CS:S to CS:GO"

From CSS to CSGO isn't the biggest jump in variety.
There ya go, replaced it with Alien Swarm
__________________
RumbleFrog is offline
Sarabveer
Veteran Member
Join Date: Feb 2014
Old 02-19-2018 , 16:51   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1212

Quote:
Originally Posted by RumbleFrog View Post
There ya go, replaced it with Alien Swarm
lol
__________________
Sarabveer is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 02-20-2018 , 00:52   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1213

GG WP
__________________
Neuro Toxin is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 02-20-2018 , 23:02   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1214

Interested to know what docs do you guys want to see? So I can start writing them up.
__________________
RumbleFrog is offline
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 02-21-2018 , 00:34   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1215

hi
i have 15 server with sb.
but player is banned from one server but the player has banned from all 15 server
I do not want player is banned from all servers.
I do want player is banned Only the server that is banned from it

please help
Dr.Mohammad is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 02-21-2018 , 19:24   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1216

Quote:
Originally Posted by Dr.Mohammad View Post
hi
i have 15 server with sb.
but player is banned from one server but the player has banned from all 15 server
I do not want player is banned from all servers.
I do want player is banned Only the server that is banned from it

please help
"Global admin, ban, and communication management system for the Source engine"

Don't use it then
__________________
RumbleFrog is offline
Qes
AlliedModders Donor
Join Date: Jul 2014
Old 02-27-2018 , 09:02   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1217

Hello,
How I can add new notification when player have ban and connect with server?
Code:
public VerifyBan(Handle:owner, Handle:hndl, const String:error[], any:userid)
{
decl String:clientName[64];
decl String:clientAuth[64];
decl String:clientIp[64];
new client = GetClientOfUserId(userid);

if (!client)
	return;

/* Failure happen. Do retry with delay */
if (hndl == INVALID_HANDLE)
{
	LogToFile(logFile, "Verify Ban Query Failed: %s", error);
	PlayerRecheck[client] = CreateTimer(RetryTime, ClientRecheck, client);
	return;
}
GetClientIP(client, clientIp, sizeof(clientIp));
GetClientAuthId(client, AuthId_Steam2, clientAuth, sizeof(clientAuth));
GetClientName(client, clientName, sizeof(clientName));
if (SQL_GetRowCount(hndl) > 0)
{
	decl String:buffer[40];
	decl String:Name[128];
	decl String:Query[512];

	SQL_EscapeString(DB, clientName, Name, sizeof(Name));
	if (serverID == -1)
	{
		FormatEx(Query, sizeof(Query), "INSERT INTO %s_banlog (sid ,time ,name ,bid) VALUES  \
			((SELECT sid FROM %s_servers WHERE ip = '%s' AND port = '%s' LIMIT 0,1), UNIX_TIMESTAMP(), '%s', \
			(SELECT bid FROM %s_bans WHERE ((type = 0 AND authid REGEXP '^STEAM_[0-9]:%s$') OR (type = 1 AND ip = '%s')) AND RemoveType IS NULL LIMIT 0,1))",
			DatabasePrefix, DatabasePrefix, ServerIp, ServerPort, Name, DatabasePrefix, clientAuth[8], clientIp);
	}
	else
	{
		FormatEx(Query, sizeof(Query), "INSERT INTO %s_banlog (sid ,time ,name ,bid) VALUES  \
			(%d, UNIX_TIMESTAMP(), '%s', \
			(SELECT bid FROM %s_bans WHERE ((type = 0 AND authid REGEXP '^STEAM_[0-9]:%s$') OR (type = 1 AND ip = '%s')) AND RemoveType IS NULL LIMIT 0,1))",
			DatabasePrefix, serverID, Name, DatabasePrefix, clientAuth[8], clientIp);
	}

	SQL_TQuery(DB, ErrorCheckCallback, Query, client, DBPrio_High);
	FormatEx(buffer, sizeof(buffer), "banid 5 %s", clientAuth);
	ServerCommand(buffer);
	KickClient(client, "%t", "Banned Check Site", WebsiteAddress);
	return;
}
#if defined DEBUG
LogToFile(logFile, "%s is NOT banned.", clientAuth);
#endif

PlayerStatus[client] = true;
}
This notification print to player command "You have been banned by this server, check {1} for more info", but I want to add reason, time for this notification
Qes is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 03-11-2018 , 17:05   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1218

^^ https://github.com/sbpp/sourcebans-pp/issues/404


Per issue #407 and PR #408 for the 1.6.3 pre-release

It introduced:

PHP Code:
/*********************************************************
 * Reports a player
 *
 * @param iReporter    The client index of the reporter
 * @param iTarget    The client index of the player to report
 * @param sReason    The reason to report the player
 * @noreturn
 *********************************************************/
native void SourceBans_ReportPlayer(int iReporterint iTarget, const char[] sReason);

/*********************************************************
 * Called when a new report is inserted
 *
 * @param iReporter    The client index of the reporter
 * @param iTarget    The client index of the player to report
 * @param sReason    The reason to report the player
 * @noreturn
 *********************************************************/
forward void SourceBans_OnReportPlayer(int iReporterint iTarget, const char[] sReason); 
With this new native implementation, sbpp_report.sp is also introduced to take advantage of this new native, allowing players to report in-game, and inserting into the submissions table.
__________________

Last edited by RumbleFrog; 03-11-2018 at 17:07.
RumbleFrog is offline
Michauux
Member
Join Date: Nov 2015
Old 03-11-2018 , 18:01   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1219

Quote:
Originally Posted by RumbleFrog View Post
^^ https://github.com/sbpp/sourcebans-pp/issues/404


Per issue #407 and PR #408 for the 1.6.3 pre-release

It introduced:

PHP Code:
/*********************************************************
 * Reports a player
 *
 * @param iReporter    The client index of the reporter
 * @param iTarget    The client index of the player to report
 * @param sReason    The reason to report the player
 * @noreturn
 *********************************************************/
native void SourceBans_ReportPlayer(int iReporterint iTarget, const char[] sReason);

/*********************************************************
 * Called when a new report is inserted
 *
 * @param iReporter    The client index of the reporter
 * @param iTarget    The client index of the player to report
 * @param sReason    The reason to report the player
 * @noreturn
 *********************************************************/
forward void SourceBans_OnReportPlayer(int iReporterint iTarget, const char[] sReason); 
With this new native implementation, sbpp_report.sp is also introduced to take advantage of this new native, allowing players to report in-game, and inserting into the submissions table.
Where can I find the reported players on the site?
Michauux is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 03-11-2018 , 18:25   Re: [RELEASE] SourceBans++ (v1.6.2) [Updated: 2017-07-04]
#1220

Quote:
Originally Posted by Michauux View Post
Where can I find the reported players on the site?
Admin Panel -> Bans -> Ban submissions

When I find time I'll create a Discord webhook plugin for this
__________________

Last edited by RumbleFrog; 03-11-2018 at 18:25.
RumbleFrog is offline
Closed Thread


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 20:27.


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