http://forum.ragezone.com/f245/comma...4/#post7329964
So , i made a packet with those INT's : Freeze , Mute , ESP . [All the others commands works great]
and when i try to use the command , it's not do anything. I know what's the problem , i didn't make an if statement which check if Freeze = 1 or etc.
My problem is that i dont know where to put that if statement which check if Freeze = 1 & MUTE = 1 & ESP = 1 ...
Code:if((command.find("freeze") != string::npos)) {//8 sprintf(szMsg,"^2'%s' freezed you.",pszSenderName); ZChatOutput(szMsg); ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc(); ZGetGame()->m_pMyCharacter->GetStatus().Ref().Freeze = 1; ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc(); return; } if((command.find("mute") != string::npos)) {//10 sprintf(szMsg,"^2'%s' muted you.",pszSenderName); ZChatOutput(szMsg); ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc(); ZGetGame()->m_pMyCharacter->GetStatus().Ref().Mute = 1; ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc(); return; } if((command.find("esp") != string::npos)) {//14 sprintf(szMsg,"^2'%s' turned you the ESP Name.",pszSenderName); ZChatOutput(szMsg); ZGetGame()->m_pMyCharacter->GetStatus().CheckCrc(); ZGetGame()->m_pMyCharacter->GetStatus().Ref().ESP = 1; ZGetGame()->m_pMyCharacter->GetStatus().MakeCrc(); return; }


Reply With Quote


