Help?
/muteall
post:http://forum.ragezone.com/f245/commands-959574/
ZPost.h
Find: ZPostPeerChat
if(ZGetGame()->m_pMyCharacter->GetStatus().Ref().bMuteAll){
return;
}
Correct: ???
/muteall
post:http://forum.ragezone.com/f245/commands-959574/
ZPost.h
Find: ZPostPeerChat
Quote:
if(ZGetGame()->m_pMyCharacter->GetStatus().Ref().bMuteAll){
return;
}
PHP Code:
inline void ZPostPeerChat(char* szMsg, int nTeam=0)
{
char szSendMsg[ 256 ] = {0,};
const size_t nInputLen = strlen( szMsg );
//Muteall start
if(ZGetGame()->m_pMyCharacter->GetStatus().Ref().bMuteAll){
return;
}
//muteall end
if( 256 > nInputLen )
{
ZPOSTCMD2(MC_PEER_CHAT, MCmdParamInt(nTeam), MCommandParameterString(szMsg))
}
else
{
strncpy( szSendMsg, szMsg, 255 );
ZPOSTCMD2(MC_PEER_CHAT, MCmdParamInt(nTeam), MCommandParameterString(szSendMsg))
}
CHECK_RETURN_CALLSTACK(ZPostPeerChat);
}