Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Chat Mute?
Re: Chat Mute? [message #484253 is a reply to message #484234] Sun, 27 October 2013 13:15 Go to previous message
reborn is currently offline  reborn
Messages: 3231
Registered: September 2004
Location: uk - london
Karma:
General (3 Stars)
UnitXc wrote on Sat, 26 October 2013 19:37

Is it possible to create a mute command that mutes only a players ability to type ingame but leaves their ability to use voice commands?


Yes it is possible, is it required?

In fact, you don't actually have to write any code at all, you can just delete this:
		if(MutedPlayers[PlayerID] == false)
		{
			return true;
		}
		else
		{
			return false; //Keep this line only
		}


from the existing mute plug-in, and then compile it.

From this hook, not the chat hook:

virtual bool OnRadioCommand(int PlayerType, int PlayerID, int AnnouncementID, int IconID, AnnouncementEnum AnnouncementType)



[Updated on: Sun, 27 October 2013 13:16]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ECW New Meltdown Deathmatch
Next Topic: Tiberium Refinery WIP
Goto Forum:
  


Current Time: Fri Dec 13 17:59:39 MST 2024

Total time taken to generate the page: 0.01217 seconds