Blockland Forums > Modification Help
Can someone fix this mute/unmute event server.cs?
ScratchTehEPICSpaceDude:
The mute part seems to work, but the unmute doesn't. Please help.
jes00:
--- Code: ---function GameConnection::unMute(%this)
{
$Mute[%victim.BL_ID] = false;
MessageClient(%victim, '', "\c6You are now unmuted");
}
--- End code ---
It would be %this.BL_ID not %victim.BL_ID because %victim is not defined.
FFSO:
nvm
jes00:
--- Quote from: FFSO on March 13, 2012, 09:27:06 PM ---
--- Code: ---function GameConnection::unMute(%this)
{
%this.BL_ID = %victim.BL_ID;
$Mute[%victim.BL_ID] = false;
MessageClient(%victim, '', "\c6You are now unmuted");
}
--- End code ---
--- End quote ---
That makes no sense, it would make %this.BL_ID blank because %victim.BL_ID is not defined.
FFSO:
nvm