Dodanie do klasy dodatkowe DMG+INT
Kolar`. 07.08.2011
Witam, jak dodać klasie +10DMG +(int) ? Dodam .sma przykładowej klasy.
codclass_general.sma 1,15 KB 84 Ilość pobrań
codclass_general.sma 1,15 KB 84 Ilość pobrań
HaDeS From HELL
07.08.2011
#include <hamsandwich>
#define DMG_BULLET (1<<1)
new bool:ma_klase[33];
public plugin_init() { RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); }
public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits) { if(!is_user_connected(idattacker)) return HAM_IGNORED; if(!ma_klase[idattacker]) return HAM_IGNORED; if(get_user_weapon(idattacker) == CSW_MP5NAVY && damagebits & DMG_BULLET) //Bron cod_inflict_damage(idattacker, this, 10.0, 0.2, idinflictor, damagebits); return HAM_IGNORED; }
Użytkownik Szybcioor edytował ten post 07.08.2011 11:23