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:
|
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
|
|
|