BTW, thanks for your National Gunz. But I am still using Gregon, btw I used some lines in your released. TY VM.
I tried to edit the source to
Code:
if(pAttacker == m_pMyCharacter){
m_pMyCharacter->AddIcon(ZCI_HEADSHOT);
}
I built my source and I tried and the sound and icon working
But on the default code
Code:
if(pVictim->GetLastDamageType()==ZD_BULLET_HEADSHOT)
{
pAttacker->AddIcon(ZCI_HEADSHOT);
MEMBER_SET_CHECKCRC(pAttacker->GetStatus(), nHeadShot, pAttacker->GetStatus().Ref().nHeadShot+1);
}
It doesn't work, like there is something wrong with this line if(pVictim->GetLastDamageType()==ZD_BULLET_HEADSHOT), but only the Victim can see the headshot icon.