L 09/06/2011 - 06:34:59: [AMXX] Displaying debug trace (plugin "codclass_Mauser.amxx")
L 09/06/2011 - 06:34:59: [AMXX] Run time error 19: function not found
L 09/06/2011 - 06:34:59: [AMXX] [0] codclass_Mauser_115600.sma::plugin_init (line 30)
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <codmod> #include <fakemeta> #include <hamsandwich> #define DMG_BULLET (1<<1)new const nazwa[] = "Mauser"; new const opis[] = "Natychmiastowo zabija,ma na to szans: 3% ||"; new const bronie = 1<<CSW_FAMAS; new const zdrowie = 30; new const kondycja = 38; new const inteligencja = 0; new const wytrzymalosc = 20; new bool:ma_klase[33];new bool:moze_skoczyc[33]; new const maxClip[31] = { -1, 13, -1, 10, 1, 7, 1, 30, 30, 1, 30, 20, 25, 30, 35, 25, 12, 20, 10, 30, 100, 8, 30, 30, 20, 2, 7, 30, 30, -1, 50 };public plugin_init() { register_plugin(nazwa, "1.0", "QTM_Peyote"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_forward(FM_CmdStart, "CmdStart"); register_event("DeathMsg", "DeathMsg", "ade"); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); }public cod_class_disabled(id) ma_klase[id] = false; public TakeDamage(this, idinflictor, idattacker, Float:damage, damagebits) { if(!is_user_connected(idattacker)) return HAM_IGNORED; if(!ma_klase[idattacker]) return HAM_IGNORED; if(damagebits & DMG_BULLET) { new weapon = get_user_weapon(idattacker); if(weapon == CSW_FAMAS && damage > 20.0 && random_num(1,30) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } return HAM_IGNORED; }