did you find a way to silence someone in jail yet?
I'm working on it. This is what I have so far: (it goes in base > client > scripts > ChatHud.cs(.dso))
if(messagehud_edit.getValue() $= $cusswords)
{
$demcount += 15;
// (declare demcount as 0 in initialization)
if($demcount < 75)
{
if(getWordCount(%message))
{
ChatHud.addLine(%message);
}
messageClient($___, '', '\c5You have commited a crime. (\c3Cursing\c5).');
messageClient($___, '', '\c5You have \c3%1\c5 demerits.', $demcount);
messageAll("", '\c3%1\c5 has \c3%2\c5 demerits!', $____, $demcount);
}
else
{
if(getWordCount(%message))
{
ChatHud.addLine(%message);
}
messageClient($___, '', '\c5You have commited a crime. (\c3Cursing\c5.');
messageClient($___, '', '\c5You have \c3%1\c5 demerits. You are a criminal.', $demcount);
messageAll("", '\c3%1\c5 has \c3%2 demerits! Arrest him!', $___, $demcount);
}
}
else
{
if(getWordCount(%message))
{
ChatHud.addLine(%message);
}
}
}
The only thing i haven't gotten is the sender's id (so you'd just replace all of the $___ with a variable representing the sender of the message)
-------------
^sorry, i just realized that was for making a demerit thing.
v this is what i have for disabling global chat in jail:
-------------
This goes in the file where you made your jail script, in the area where you'd send the player to the jail coordinates:
$playerisinjail = 1;
and when you're unjailing them:
$playerisinjail = 0;
and this goes in the chatHud.cs, in the command for when you send a message:
if($playerisinjail $= 0)
{
[command to send the message]
}
else
{
messageClient($victim, '', 'you cant use global chat in jail');
}
-----
i haven't tested any of this.