Po prostu wystarczy że zrobisz tak:
Znajdź (TakeDamage)
I to
if(informacje_przedmiotu_gracza[this][0] == 27 && informacje_przedmiotu_gracza[this][1]>0)
{
informacje_przedmiotu_gracza[this][1]--;
return HAM_SUPERCEDE;
}
if(wytrzymalosc_gracza[this]>0)
damage -= redukcja_obrazen_gracza[this]*damage;
if(informacje_przedmiotu_gracza[this][0] == 2 || informacje_przedmiotu_gracza[this][0] == 3)
damage-=(float(informacje_przedmiotu_gracza[this][1])<damage)? float(informacje_przedmiotu_gracza[this][1]): damage;
if(informacje_przedmiotu_gracza[idattacker][0] == 5 && !UTIL_In_FOV(this, idattacker) && UTIL_In_FOV(idattacker, this))
damage*=2.0;
if(informacje_przedmiotu_gracza[idattacker][0] == 10)
damage+=informacje_przedmiotu_gracza[idattacker][1];
if(informacje_przedmiotu_gracza[this][0] == 12)
damage-=(5.0<damage)? 5.0: damage;
if(weapon == CSW_AWP && informacje_przedmiotu_gracza[idattacker][0] == 13)
damage=float(health);
if(informacje_przedmiotu_gracza[idattacker][0] == 21)
damage+=10;
if(informacje_przedmiotu_gracza[idattacker][0] == 22)
damage+=20;
if(weapon == CSW_KNIFE)
{
if(informacje_przedmiotu_gracza[this][0] == 4)
damage=damage*1.4+inteligencja_gracza[idattacker];
if((informacje_przedmiotu_gracza[idattacker][0] == 8 || (klasa_gracza[idattacker] == Snajper && random(2) == 2) || klasa_gracza[idattacker] == Komandos) && !(get_user_button(idattacker) & IN_ATTACK))
damage = float(health);
}
if(informacje_przedmiotu_gracza[this][0] == 26 && random_num(1, informacje_przedmiotu_gracza[this][1]) == 1)
{
SetHamParamEntity(3, this);
SetHamParamEntity(1, idattacker);
}
Zamień na to
if(damagebits & DMG_BULLET)
{
if(informacje_przedmiotu_gracza[this][0] == 27 && informacje_przedmiotu_gracza[this][1]>0)
{
informacje_przedmiotu_gracza[this][1]--;
return HAM_SUPERCEDE;
}
if(wytrzymalosc_gracza[this]>0)
damage -= redukcja_obrazen_gracza[this]*damage;
if(informacje_przedmiotu_gracza[this][0] == 2 || informacje_przedmiotu_gracza[this][0] == 3)
damage-=(float(informacje_przedmiotu_gracza[this][1])<damage)? float(informacje_przedmiotu_gracza[this][1]): damage;
if(informacje_przedmiotu_gracza[idattacker][0] == 5 && !UTIL_In_FOV(this, idattacker) && UTIL_In_FOV(idattacker, this))
damage*=2.0;
if(informacje_przedmiotu_gracza[idattacker][0] == 10)
damage+=informacje_przedmiotu_gracza[idattacker][1];
if(informacje_przedmiotu_gracza[this][0] == 12)
damage-=(5.0<damage)? 5.0: damage;
if(weapon == CSW_AWP && informacje_przedmiotu_gracza[idattacker][0] == 13)
damage=float(health);
if(informacje_przedmiotu_gracza[idattacker][0] == 21)
damage+=10;
if(informacje_przedmiotu_gracza[idattacker][0] == 22)
damage+=20;
if(weapon == CSW_KNIFE)
{
if(informacje_przedmiotu_gracza[this][0] == 4)
damage=damage*1.4+inteligencja_gracza[idattacker];
if((informacje_przedmiotu_gracza[idattacker][0] == 8 || (klasa_gracza[idattacker] == Snajper && random(2) == 2) || klasa_gracza[idattacker] == Komandos) && !(get_user_button(idattacker) & IN_ATTACK))
damage = float(health);
}
if(informacje_przedmiotu_gracza[this][0] == 26 && random_num(1, informacje_przedmiotu_gracza[this][1]) == 1)
{
SetHamParamEntity(3, this);
SetHamParamEntity(1, idattacker);
}
}