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

[ANY] SourceComms (0.9.266 - 22/11/2014)


Post New Thread Reply   
 
Thread Tools Display Modes
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 04-26-2014 , 09:01   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #281

Quote:
Originally Posted by wtfaatp View Post
For some reason the plugin is reading people as CONSOLE? As in when an admin bans someone they are listed as CONSOLE.. No idea why? anyone else know whats going on here?
Maybe they using sourcemod (basecomm) menu? Player actions -> ...
__________________

Last edited by ppalex; 04-26-2014 at 09:01.
ppalex is offline
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 04-26-2014 , 09:02   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #282

Quote:
Originally Posted by IceCucumber View Post
I got everything else working, but the "UnMute" and "Delete Block" buttons at the web server's index.php?p=commslist don't seem to work. Any idea how to fix this? All the other website functinality seems to work normally.

Edit: This was actually browser dependent; I couldn't use the buttons on Firefox, but it works with IE. No idea why as I have javascript enabled.
did you have any errors in browser console?
__________________
ppalex is offline
wherE1997
Member
Join Date: Dec 2013
Old 04-27-2014 , 08:50   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #283

Try to compile the SourceComms and this is the Error

undefined symbol "SQL_SetCharset"
__________________
Sorry for my bad English!
wherE1997 is offline
ppalex
Senior Member
Join Date: Nov 2012
Location: Russia, near the Moscow
Old 04-27-2014 , 09:38   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #284

Quote:
SourceMod version 1.5.3 or 1.6 is required to compile the plugin (compiled plugin also works on sm 1.5)
__________________
ppalex is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 04-27-2014 , 16:59   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #285

Quote:
Originally Posted by ppalex View Post
Maybe they using sourcemod (basecomm) menu? Player actions -> ...
I think you are right.. I wish there was a way to git ride of that.. I will inform everyone.. thank you!


Edit: Anyway to make this plugin dependent of its self and not require basecomms ? That would take away my problem
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows

Last edited by wtfaatp; 04-29-2014 at 12:49.
wtfaatp is offline
IceCucumber
Member
Join Date: Dec 2011
Old 05-14-2014 , 11:42   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #286

Quote:
Originally Posted by ppalex View Post
did you have any errors in browser console?
Sorry about the late response. This problem occurred in SourceBans 1.4.10. After updating to 1.4.11, the buttons started working properly.
IceCucumber is offline
2NASTY4U
Senior Member
Join Date: Mar 2014
Old 05-15-2014 , 21:45   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #287

Why not uploading the newest version here? After starting a server with this plugin, it's updating to version 0.9.262. The latest version in thread is 0.9.260.
2NASTY4U is offline
wtfaatp
Senior Member
Join Date: Jul 2010
Old 05-16-2014 , 20:56   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #288

Quote:
Originally Posted by 2NASTY4U View Post
If sourcemods own mute / gag system is used to mute / gag a player, it shows that the victim was muted / gaged by console. You have to use the right option in admin menu. Not mute / gag in player commands.

To get around this I edited the basecomm.sp and recompiled.. I didnt post what I did for a while cause I didnt know the exact rules on it but either way here is my edit... From my understanding I'm not aloud to post the .sp/.smx so no on accidentally overwrites the original......

Code:
#include <sourcemod>
#include <sdktools>
#undef REQUIRE_PLUGIN
#include <adminmenu>

#pragma semicolon 1

public Plugin:myinfo =
{
	name = "Basic Comm Control",
	author = "AlliedModders LLC, wtfaatp",
	description = "Provides methods of controlling communication.",
	version = "no menu 0.1",
	url = "http://www.sourcemod.net/"
};

new bool:g_Muted[MAXPLAYERS+1];		// Is the player muted?
new bool:g_Gagged[MAXPLAYERS+1];	// Is the player gagged?

new Handle:g_Cvar_Deadtalk = INVALID_HANDLE;	// Holds the handle for sm_deadtalk
new Handle:g_Cvar_Alltalk = INVALID_HANDLE;	// Holds the handle for sv_alltalk
new bool:g_Hooked = false;			// Tracks if we've hooked events for deadtalk

new Handle:hTopMenu = INVALID_HANDLE;

new g_GagTarget[MAXPLAYERS+1];

#include "basecomm/gag.sp"
#include "basecomm/natives.sp"
#include "basecomm/forwards.sp"

public APLRes:AskPluginLoad2(Handle:myself, bool:late, String:error[], err_max)
{
	CreateNative("BaseComm_IsClientGagged", Native_IsClientGagged);
	CreateNative("BaseComm_IsClientMuted",  Native_IsClientMuted);
	CreateNative("BaseComm_SetClientGag",   Native_SetClientGag);
	CreateNative("BaseComm_SetClientMute",  Native_SetClientMute);
	RegPluginLibrary("basecomm");
	
	return APLRes_Success;
}

public OnPluginStart()
{
	LoadTranslations("common.phrases");
	LoadTranslations("basecomm.phrases");
	
	g_Cvar_Deadtalk = CreateConVar("sm_deadtalk", "0", "Controls how dead communicate. 0 - Off. 1 - Dead players ignore teams. 2 - Dead players talk to living teammates.", 0, true, 0.0, true, 2.0);
	g_Cvar_Alltalk = FindConVar("sv_alltalk");
	
	RegAdminCmd("sm_mute", Command_Mute, ADMFLAG_CHAT, "sm_mute <player> - Removes a player's ability to use voice.");
	RegAdminCmd("sm_gag", Command_Gag, ADMFLAG_CHAT, "sm_gag <player> - Removes a player's ability to use chat.");
	RegAdminCmd("sm_silence", Command_Silence, ADMFLAG_CHAT, "sm_silence <player> - Removes a player's ability to use voice or chat.");
	
	RegAdminCmd("sm_unmute", Command_Unmute, ADMFLAG_CHAT, "sm_unmute <player> - Restores a player's ability to use voice.");
	RegAdminCmd("sm_ungag", Command_Ungag, ADMFLAG_CHAT, "sm_ungag <player> - Restores a player's ability to use chat.");
	RegAdminCmd("sm_unsilence", Command_Unsilence, ADMFLAG_CHAT, "sm_unsilence <player> - Restores a player's ability to use voice and chat.");	
	
	HookConVarChange(g_Cvar_Deadtalk, ConVarChange_Deadtalk);
	HookConVarChange(g_Cvar_Alltalk, ConVarChange_Alltalk);
	
	/* Account for late loading 
	new Handle:topmenu;
	if (LibraryExists("adminmenu") && ((topmenu = GetAdminTopMenu()) != INVALID_HANDLE))
	{
		OnAdminMenuReady(topmenu);
	}
	*/
	// Normally, OnClientSayCommand would be aqequate and more appropirate here, but it does
	// not catch attempted chat triggers, which we also want to be blocked if a player is gagged.
	AddCommandListener(Command_Say, "say");
	AddCommandListener(Command_Say, "say_team");
	
	new String:gameDir[64];
	GetGameFolderName(gameDir, sizeof(gameDir));
	if (StrEqual(gameDir, "insurgency", false))
	{
		AddCommandListener(Command_Say, "say2");
	}
	else if (StrEqual(gameDir, "nucleardawn", false))
	{
		AddCommandListener(Command_Say, "say_squad");
	}
}

public ConVarChange_Deadtalk(Handle:convar, const String:oldValue[], const String:newValue[])
{
	if (GetConVarInt(g_Cvar_Deadtalk))
	{
		HookEvent("player_spawn", Event_PlayerSpawn, EventHookMode_Post);
		HookEvent("player_death", Event_PlayerDeath, EventHookMode_Post);
		g_Hooked = true;
	}
	else if (g_Hooked)
	{
		UnhookEvent("player_spawn", Event_PlayerSpawn);
		UnhookEvent("player_death", Event_PlayerDeath);		
		g_Hooked = false;
	}
}


public bool:OnClientConnect(client, String:rejectmsg[], maxlen)
{
	g_Gagged[client] = false;
	g_Muted[client] = false;
	
	return true;
}

public Action:Command_Say(client, const String:command[], argc)
{
	if (client)
	{
		if (g_Gagged[client])
		{
			return Plugin_Stop;		
		}
	}
	
	return Plugin_Continue;
}

public ConVarChange_Alltalk(Handle:convar, const String:oldValue[], const String:newValue[])
{
	new mode = GetConVarInt(g_Cvar_Deadtalk);
	
	for (new i = 1; i <= MaxClients; i++)
	{
		if (!IsClientInGame(i))
		{
			continue;
		}
		
		if (g_Muted[i])
		{
			SetClientListeningFlags(i, VOICE_MUTED);
		}
		else if (GetConVarBool(g_Cvar_Alltalk))
		{
			SetClientListeningFlags(i, VOICE_NORMAL);
		}
		else if (!IsPlayerAlive(i))
		{
			if (mode == 1)
			{
				SetClientListeningFlags(i, VOICE_LISTENALL);
			}
			else if (mode == 2)
			{
				SetClientListeningFlags(i, VOICE_TEAM);
			}
		}
	}
}

public Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	
	if (!client)
	{
		return;	
	}
	
	if (g_Muted[client])
	{
		SetClientListeningFlags(client, VOICE_MUTED);
	}
	else
	{
		SetClientListeningFlags(client, VOICE_NORMAL);
	}
}

public Event_PlayerDeath(Handle:event, const String:name[], bool:dontBroadcast)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	
	if (!client)
	{
		return;	
	}
	
	if (g_Muted[client])
	{
		SetClientListeningFlags(client, VOICE_MUTED);
		return;
	}
	
	if (GetConVarBool(g_Cvar_Alltalk))
	{
		SetClientListeningFlags(client, VOICE_NORMAL);
		return;
	}
	
	new mode = GetConVarInt(g_Cvar_Deadtalk);
	if (mode == 1)
	{
		SetClientListeningFlags(client, VOICE_LISTENALL);
	}
	else if (mode == 2)
	{
		SetClientListeningFlags(client, VOICE_TEAM);
	}
}

Just recompile locally.. No menu and no more having to tell admin not to use the basecomm commands..
__________________
SourceMod : 1.10.0 (Official) | MetaMod : 1.10.7 (Official)
Server : NFOservers - Windows
wtfaatp is offline
hamza47sohail
Senior Member
Join Date: Jan 2014
Old 05-26-2014 , 10:35   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #289

Hello,
I am getting this error on the Comm List in the sourcebans website.
I can use the plugin fine from ingame but it doesn't display anything in the List on the website.
It was working fine some time ago but I don't really know what happened.

I also can't view the options under the Comms tab in the admin panel.
Here is my website:

www.bravegaming.net/bans/

Here are the details:
Code:
Event Details
[256] mysqli error: [1048: Column 'aid' cannot be null] in EXECUTE("INSERT INTO sb_log(type,title,message, function, query, aid, host, created) VALUES ('w','PHP Warning','[512] Smarty error: unable to read resource: "page_comms.tpl"
\nError on line 1094 in file /home/Website/bans/includes/smarty/Smarty.class.php','/home/Website/bans/includes/smarty/Smarty.class.php - 1094
/home/Website/bans/includes/smarty/Smarty.class.php - 1590
/home/Website/bans/includes/smarty/Smarty.class.php - 1416
/home/Website/bans/includes/smarty/Smarty.class.php - 1255
','p=commslist&hideinactive=false&searchText=STEAM_0:0:68074129',NULL,'173.245.56.174',1400347877)") 
Fatal error on line 77 in file /home/Website/bans/includes/adodb/adodb-errorhandler.inc.php

Parent Function	

/home/Website/bans/includes/adodb/adodb-errorhandler.inc.php - 77
/home/Website/bans/includes/adodb/adodb.inc.php - 1074
/home/Website/bans/includes/adodb/adodb.inc.php - 1030
/home/Website/bans/includes/CSystemLog.php - 79

Query String	
p=commslist&hideinactive=false&searchText=STEAM_0:0:68074129
__________________
The Server Is In CANADA GameTracker Is Being Weird

Last edited by hamza47sohail; 05-26-2014 at 10:37.
hamza47sohail is offline
aaron1234
Member
Join Date: Feb 2012
Old 05-29-2014 , 02:52   Re: [ANY] SourceComms (0.9.260 - 02/11/2013)
Reply With Quote #290

Sorry if it has been posted, But is there a way to make it so you can limit certain people on how long they can mute/gag someone?
aaron1234 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 14:42.


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