Raised This Month: $ Target: $400
 0% 

[CS:S/CS:GO/TF2] shavit's bhoptimer (v2.5.5a 08/August/2019)


Post New Thread Reply   
 
Thread Tools Display Modes
Guccci
AlliedModders Donor
Join Date: Aug 2016
Old 08-28-2016 , 10:58   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #821

Quote:
Originally Posted by shavit View Post
Code:
L 08/28/2016 - 02:35:14: [SM] Unable to load extension "dbi.mysql.ext": libz.so.1: cannot open shared object file: No such file or directory
Yeah you have some kind of error. I can't really help you solve it as it's not related to the plugin, you can try asking in the General forum!
I fixed that error but I am still getting these errors with the plugin
http://pastebin.com/aNQE0CdX
Guccci is offline
Technoblazed
Senior Member
Join Date: May 2016
Location: United Kingdom
Old 08-28-2016 , 11:00   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #822

Quote:
Originally Posted by Guccci View Post
I fixed that error but I am still getting these errors with the plugin
http://pastebin.com/aNQE0CdX
Is your database on the same server as your gameserver?
Technoblazed is offline
Guccci
AlliedModders Donor
Join Date: Aug 2016
Old 08-28-2016 , 11:08   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #823

Quote:
Originally Posted by Technoblazed View Post
Is your database on the same server as your gameserver?
Yes it is
Guccci is offline
Technoblazed
Senior Member
Join Date: May 2016
Location: United Kingdom
Old 08-28-2016 , 11:49   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #824

Quote:
Originally Posted by Guccci View Post
Yes it is
What does
PHP Code:
mysql -h 127.0.0.1 
return?
Technoblazed is offline
Guccci
AlliedModders Donor
Join Date: Aug 2016
Old 08-28-2016 , 12:37   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #825

Quote:
Originally Posted by Technoblazed View Post
What does
PHP Code:
mysql -h 127.0.0.1 
return?
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
Guccci is offline
Kruzi
Senior Member
Join Date: Dec 2014
Location: Kyiv, Ukraine
Old 08-29-2016 , 03:11   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #826

shavit, people can switch team if they pick random team when connected. Before i updated ur plugin all was ok.
Also web stat is not updating since i updated timer. Only last record is 21th , but i saw how my players bet world records.
Error log:
Quote:
L 08/29/2016 - 00:10:18: [SM] Blaming: shavit-chat.smx()
L 08/29/2016 - 00:10:18: [SM] Call stack trace:
L 08/29/2016 - 00:10:18: [SM] [1] Shavit_GetRank
L 08/29/2016 - 00:10:18: [SM] [2] Line 187, shavit-chat.sp::LoadChatCache()
L 08/29/2016 - 00:10:18: [SM] [3] Line 801, shavit-chat.sp:layer_Spawn()
L 08/29/2016 - 00:10:18: [SM] [5] CS_RespawnPlayer
L 08/29/2016 - 00:10:18: [SM] [6] Line 335, E:\SM\addons\sourcemod\scripting\shavit_nwe\s havit-misc.sp::Command_Jointeam()
L 08/29/2016 - 00:10:20: [SM] Exception reported: Native is not bound
Kruzi is offline
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 08-29-2016 , 03:37   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #827

Quote:
Originally Posted by Kruzi View Post
shavit, people can switch team if they pick random team when connected. Before i updated ur plugin all was ok.
that's fine
keep in mind the plugin is for *bhop servers*
you could edit jointeam to do that in csgo
i included this 15 seconds thingy because mp_join_grace_time was broken for me

Code:
float gF_StartTime = 0.0;

/*onpluginstart*/
{
	// hooks
	HookEvent("round_start", Round_Start);
}

public void OnMapStart()
{
	gF_StartTime = GetEngineTime();
}

public Action Command_Jointeam(int client, const char[] command, int args)
{
	if(!IsValidClient(client))
	{
		return Plugin_Continue;
	}

	char[] arg1 = new char[8];
	GetCmdArg(1, arg1, 8);

	int iTeam = StringToInt(arg1);

	// client is trying to join the same team he's in now.
	// i'll let the game handle it.
	if(GetClientTeam(client) == iTeam)
	{
		return Plugin_Continue;
	}

	int iNewTeam = 0;

	switch(iNewTeam)
	{
		case CS_TEAM_T:
		{
			// if T spawns are available in the map
			if(FindEntityByClassname(-1, "info_player_terrorist") != -1)
			{
				iNewTeam = CS_TEAM_T;
			}
		}

		case CS_TEAM_CT:
		{
			// if CT spawns are available in the map
			if(FindEntityByClassname(-1, "info_player_counterterrorist") != -1)
			{
				iNewTeam = CS_TEAM_CT;
			}
		}

		// if they chose to spectate, i'll force them to join the spectators
		case CS_TEAM_SPECTATOR:
		{
			iNewTeam = CS_TEAM_SPECTATOR;
			CS_SwitchTeam(client, CS_TEAM_SPECTATOR);
		}

		default:
		{
			return Plugin_Continue;
		}
	}

	if(gCV_RespawnOnTeam.BoolValue && iNewTeam > 0)
	{
		if(iNewTeam != CS_TEAM_SPECTATOR)
		{
			int iAlivePlayers = 0;

			for(int i = 1; i <= MaxClients; i++)
			{
				if(IsValidClient(i, true) && GetClientTeam(i) == iNewTeam)
				{
					iAlivePlayers++;
				}
			}

			if(GetEngineTime() - gF_StartTime <= 15 || iAlivePlayers == 0)
			{
				CS_SwitchTeam(client, iNewTeam);
				CS_RespawnPlayer(client);
			}

			else
			{
				ChangeClientTeam(client, iNewTeam);
			}
		}

		else
		{
			CS_SwitchTeam(client, iNewTeam);
		}

		return Plugin_Handled;
	}

	return Plugin_Continue;
}

public void Round_Start(Handle event, const char[] name, bool dontBroadcast)
{
	gF_StartTime = GetEngineTime();
}
__________________
retired
shavit is offline
Kruzi
Senior Member
Join Date: Dec 2014
Location: Kyiv, Ukraine
Old 08-29-2016 , 10:56   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #828

Quote:
Originally Posted by shavit View Post
that's fine
keep in mind the plugin is for *bhop servers*
you could edit jointeam to do that in csgo
i included this 15 seconds thingy because mp_join_grace_time was broken for me

Code:
float gF_StartTime = 0.0;

/*onpluginstart*/
{
	// hooks
	HookEvent("round_start", Round_Start);
}

public void OnMapStart()
{
	gF_StartTime = GetEngineTime();
}

public Action Command_Jointeam(int client, const char[] command, int args)
{
	if(!IsValidClient(client))
	{
		return Plugin_Continue;
	}

	char[] arg1 = new char[8];
	GetCmdArg(1, arg1, 8);

	int iTeam = StringToInt(arg1);

	// client is trying to join the same team he's in now.
	// i'll let the game handle it.
	if(GetClientTeam(client) == iTeam)
	{
		return Plugin_Continue;
	}

	int iNewTeam = 0;

	switch(iNewTeam)
	{
		case CS_TEAM_T:
		{
			// if T spawns are available in the map
			if(FindEntityByClassname(-1, "info_player_terrorist") != -1)
			{
				iNewTeam = CS_TEAM_T;
			}
		}

		case CS_TEAM_CT:
		{
			// if CT spawns are available in the map
			if(FindEntityByClassname(-1, "info_player_counterterrorist") != -1)
			{
				iNewTeam = CS_TEAM_CT;
			}
		}

		// if they chose to spectate, i'll force them to join the spectators
		case CS_TEAM_SPECTATOR:
		{
			iNewTeam = CS_TEAM_SPECTATOR;
			CS_SwitchTeam(client, CS_TEAM_SPECTATOR);
		}

		default:
		{
			return Plugin_Continue;
		}
	}

	if(gCV_RespawnOnTeam.BoolValue && iNewTeam > 0)
	{
		if(iNewTeam != CS_TEAM_SPECTATOR)
		{
			int iAlivePlayers = 0;

			for(int i = 1; i <= MaxClients; i++)
			{
				if(IsValidClient(i, true) && GetClientTeam(i) == iNewTeam)
				{
					iAlivePlayers++;
				}
			}

			if(GetEngineTime() - gF_StartTime <= 15 || iAlivePlayers == 0)
			{
				CS_SwitchTeam(client, iNewTeam);
				CS_RespawnPlayer(client);
			}

			else
			{
				ChangeClientTeam(client, iNewTeam);
			}
		}

		else
		{
			CS_SwitchTeam(client, iNewTeam);
		}

		return Plugin_Handled;
	}

	return Plugin_Continue;
}

public void Round_Start(Handle event, const char[] name, bool dontBroadcast)
{
	gF_StartTime = GetEngineTime();
}
now people can't join more than half slots on server. If i install team limit bypass they can join more than half slots but they can switch team
Kruzi is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 08-29-2016 , 11:52   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #829

Quote:
Originally Posted by Kruzi View Post
now people can't join more than half slots on server. If i install team limit bypass they can join more than half slots but they can switch team
https://forums.alliedmods.net/showthread.php?p=1877187
sneaK is offline
Devinee
Junior Member
Join Date: Aug 2016
Old 08-30-2016 , 03:22   Re: [CS:S/CS:GO] shavit's simple bhop timer (1.4b 21/September/2015)
Reply With Quote #830

Help please.I had an old version of the Shavit bhop timer and I deleted the database and created a new one.After that, I made a local database.
Code:
  173 <Error> "[shavit] Core" (1.5b) by shavit
  174 <Failed> "[shavit] Player Stats" (1.5b) by shavit
  175 <Error> "[shavit] Sounds" (1.5b) by shavit
  176 <Failed> "[shavit] World Records" (1.5b) by shavit
  177 <Failed> "[shavit] Chat" (1.5b) by shavit
  178 <Failed> "[shavit] Map Zones" (1.5b) by shavit
  179 <Failed> "[shavit] Rankings" (1.5b) by shavit
- Sourcemod 1.8
- databases:
PHP Code:
    "shavit"
    
{
        
"driver"         "mysql"
        "host"           "localhost"
        "database"       "shavit"
        "user"           "root"
        "pass"           ""
    

-

Last edited by Devinee; 08-30-2016 at 03:25.
Devinee 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 16:29.


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