Chat Mute? [message #484234] |
Sat, 26 October 2013 16:37 |
UnitXc
Messages: 116 Registered: March 2009
Karma: 0
|
Recruit |
|
|
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?
|
|
|
|
Re: Chat Mute? [message #484239 is a reply to message #484234] |
Sun, 27 October 2013 03:01 |
|
cAmpa
Messages: 597 Registered: March 2006
Karma: 0
|
Colonel |
|
|
You could set the sound function in front of the filter.
Chat_Hook() {
Sound_Commands();
Mute_Function();
}
He would be able to spam sounds without you can see it ingame now.
Or you do it like this with a few edits in sound function.
Chat_Hook() {
bool isSoundCommand = Sound_Commands();
if (isSoundCommand == false)
Mute_Function();
}
bool Sound_Commands()
{
...
if (SoundCommandFound)
{
return true;
}
return false;
}
Bückstabü!
|
|
|
|
|
|
Re: Chat Mute? [message #484253 is a reply to message #484234] |
Sun, 27 October 2013 13:15 |
|
reborn
Messages: 3231 Registered: September 2004 Location: uk - london
Karma: 0
|
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
|
|
|
Re: Chat Mute? [message #484288 is a reply to message #484244] |
Mon, 28 October 2013 16:57 |
UnitXc
Messages: 116 Registered: March 2009
Karma: 0
|
Recruit |
|
|
Xpert wrote on Sun, 27 October 2013 04:58 | He was asking this question due to an incident that occured with him in Jelly.
|
thats actually not 100% correct, but rather Ive asked this before and was told its impossible, the reason I asked many MANY months ago is because I knew that the incident in jelly would happen at some point, because I feel extreme hatred for many of the lifeforms that play the game still.
being chat only muted would bring me MUCH relief while still enabling me to communicate in a limited but wholy legitimate renegade fashion.
|
|
|