ATTRIB(Client, playerid, int, this.playerid);
ATTRIB(Client, parm_idlesince, int, this.parm_idlesince);
+ ATTRIB(Client, muted, int, this.muted);
METHOD(Client, m_unwind, bool(Client this));
if (accepted > 0)
{
- client.muted = true;
+ CS(client).muted = true;
return;
}
else
if (accepted > 0)
{
- client.muted = false;
+ CS(client).muted = false;
return;
}
else
if (!teamsay && !privatesay && substring(msgin, 0, 1) == " ")
msgin = substring(msgin, 1, -1); // work around DP say bug (say_team does not have this!)
- msgin = formatmessage(source, msgin);
+ if(source)
+ msgin = formatmessage(source, msgin);
string colorstr;
if (!IS_PLAYER(source))
sourcemsgstr = strcat(privatemsgprefix, substring(sourcemsgstr, privatemsgprefixlen, -1));
int ret;
- if(source.muted)
+ if(source && CS(source).muted)
{
// always fake the message
ret = -1;
void PlayerDamage(entity this, entity inflictor, entity attacker, float damage, int deathtype, vector hitloc, vector force);
-/** to be used by `prvm_edictset server playernumber muted 1` */
-.float muted;
int Say(entity source, float teamsay, entity privatesay, string msgin, float floodcontrol);