I wanted to make F9 HP/AP a way that when you die a message is displayed other than (HP:0 , AP:0) and it's not working out so well . Here's the code ..
Code:case VK_F9: { char szMsg[256] = ""; if(ZGetGame()->m_pMyCharacter->IsDie() == 1 && (ZGetGame()->GetMatch()->IsTeamPlay() == 1)) { sprintf(szMsg, "!I'm Dead."); } else { sprintf(szMsg, "I'm Respawning."); } if(ZGetGame()->GetMatch()->IsTeamPlay()) { sprintf(szMsg, "!(HP: %d , AP: %d)" , (int)ZGetGame()->m_pMyCharacter->GetHP() , (int)ZGetGame()->m_pMyCharacter->GetAP()); ZApplication::GetGameInterface()->GetChat()->Input(szMsg); return true; } else { sprintf(szMsg, "(HP: %d , AP: %d)" , (int)ZGetGame()->m_pMyCharacter->GetHP() , (int)ZGetGame()->m_pMyCharacter->GetAP()); ZApplication::GetGameInterface()->GetChat()->Input(szMsg); return true; } } break;


Reply With Quote

