public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_connected(idattacker))
return HAM_IGNORED;
new Float:max_health = 100.0+cod_get_user_health(idattacker, 1, 1, 1);
if(ma_klase[idattacker])
{
fm_set_user_health(idattacker, (get_user_health(idattacker)+floatround(damage*0.3) > max_health)? max_health : get_user_health(idattacker)+floatround(damage*0.3));
}
return HAM_IGNORED;
}
45 linijka:
fm_set_user_health(idattacker, (get_user_health(idattacker)+floatround(damage*0.3) > max_health)? max_health : get_user_health(idattacker)+floatround(damage*0.3));
Co moze byc nie tak?


Dodatki SourceMod




Moja zawartość
Mężczyzna
