Raised This Month: $ Target: $400
 0% 

[CSS] CT Ban [updated 16/09/2012]


Post New Thread Reply   
 
Thread Tools Display Modes
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 08-08-2013 , 02:21   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #51

plugin is working perfect, when I ban people from CT they are denied from CT and stay banned until unbanned

been working fine for months, but I just noticed the mySQL database is completely empty :\
and I don't have it setup to use sqlite

ct_restrict.kv
Code:
"CTRestrict"
{
	"Options"
	{
		"Database"
		{
			"use_sqlite"	"0" 
			"database_config"	"ctbans" 
		}
	}
}
databases.cfg

Code:
"Databases"
{
	"driver_default"		"mysql"
	
	// When specifying "host", you may use an IP address, a hostname, or a socket file path
	
	"default"
	{
		"driver"			"default"
		"host"				"localhost"
		"database"			"sourcemod"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
	
	"storage-local"
	{
		"driver"			"sqlite"
		"database"			"sourcemod-local"
	}

	"clientprefs"
	{
		"driver"			"sqlite"
		"host"				"localhost"
		"database"			"clientprefs-sqlite"
		"user"				"root"
		"pass"				""
		//"timeout"			"0"
		//"port"			"0"
	}
	
		"sourcebans"
	{
		"driver"		"mysql"
		"host"			"slayersfastdl.site.nfoservers.com"	// The host where your mysql server is located
		"database"		"slayersfastdl_sb"	// The name of the database
		"user"			"slayersfastdl"		// The name of the user that the plugin should use to connect
		"pass"			"*******"	// The password for this user
	}

		"ctbans"
	{
		"driver"		"mysql"
		"host"			"slayersfastdl.site.nfoservers.com"	// The host where your mysql server is located
		"database"		"slayersfastdl_ctbans"	// The name of the database
		"user"			"slayersfastdl"		// The name of the user that the plugin should use to connect
		"pass"			"*******"	// The password for this user
		"port"			"3306"
	}
}
what am I doing wrong, I wanted to have the CT bans displayed to a webpage but there is no database D:
__________________

Last edited by PresidentEvil; 08-08-2013 at 02:22.
PresidentEvil is offline
Rizla
SourceMod Donor
Join Date: Jun 2010
Old 08-08-2013 , 12:34   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #52

try this
Attached Files
File Type: smx ct_restrict.smx (10.2 KB, 186 views)
File Type: sp Get Plugin or Get Source (ct_restrict.sp - 555 views - 13.9 KB)
Rizla is offline
PresidentEvil
AlliedModders Donor
Join Date: Jun 2012
Old 08-08-2013 , 20:06   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #53

Quote:
Originally Posted by Rizla View Post
try this
still no
__________________
PresidentEvil is offline
Dkmuniz
Senior Member
Join Date: Jun 2013
Old 08-17-2013 , 21:30   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #54

You can add to ban by steamid also?
Dkmuniz is offline
Obey
New Member
Join Date: Feb 2015
Old 04-06-2015 , 12:20   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #55

Quote:
Warning: mysqli::mysqli(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /hsphere/local/home/hb846459051/bananparty.se/bans/pages/page.ctbanlist.php on line 33 Warning: mysqli::mysqli(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: Name or service not known in /hsphere/local/home/hb846459051/bananparty.se/bans/pages/page.ctbanlist.php on line 33 Warning: mysqli::query(): Couldn't fetch mysqli in /hsphere/local/home/hb846459051/bananparty.se/bans/pages/page.ctbanlist.php on line 64 Fatal error: Call to a member function fetch_assoc() on null in /hsphere/local/home/hb846459051/bananparty.se/bans/pages/page.ctbanlist.php on line 74
Help
Obey is offline
Kamizun
AlliedModders Donor
Join Date: May 2015
Location: Portugal
Old 07-31-2015 , 07:53   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #56

Working for csgo?
Kamizun is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 09-01-2015 , 22:09   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #57

Here's a version that uses the mysql (database configuration "ctbans")
no keyvalue file needed.


(works in CSGO - SourceMod 1.7.3-dev+5233)
Attached Files
File Type: sp Get Plugin or Get Source (ct_restrict.sp - 495 views - 13.3 KB)

Last edited by Totenfluch; 09-01-2015 at 22:10.
Totenfluch is offline
Valeriano
AlliedModders Donor
Join Date: Oct 2015
Location: Denmark
Old 10-01-2015 , 20:59   Re: [CSS] CT Ban [updated 16/09/2012]
Reply With Quote #58

Someone please make a command so we can ban steamid's if they left the server, like !ctbanid STEAMID

or make a ct ban disconnect menu.
Valeriano 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 18:51.


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