Witam.. czemu to mi nie dziala ? ma ktos jakis pomysl
new const wartosc_perkow_def[] = {0,
5,15,30,50,
10,15,20,35,
30,20,10,5,
12,8,4,1
};
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits)
{
if(!is_user_alive(this) || !is_user_connected(this) || !is_user_connected(idattacker) || get_user_team(this) == get_user_team(idattacker) || !postac_gracza[idattacker])
return HAM_IGNORED;
if(perk_def[this] == 9 && random_num(1, wartosc_perkow_def[perk_def[this]]) == 1 || perk_def[this] == 10 && random_num(1, wartosc_perkow_def[perk_def[this]]) == 1 || perk_def[this] == 11 && random_num(1, wartosc_perkow_def[perk_def[this]]) == 1 || perk_def[this] == 12 && random_num(1, wartosc_perkow_def[perk_def[this]]) == 1)
return HAM_IGNORED;
SetHamParamFloat(4, damage);
return HAM_IGNORED;
}
ma ktos pomysl


Dodatki SourceMod










