Kod klasy
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <fakemeta> #include <codmod> new bool:ma_klase[33]; new const nazwa[] = "Sokol"; new const opis[] = "Widzi kamperów"; new const bronie = 1<<CSW_SG552; new const zdrowie = 10; new const kondycja = 10; new const inteligencja = 10; new const wytrzymalosc = 10; public plugin_init() { register_plugin(nazwa, "1.0", "QTM_Peyote"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_event("ResetHUD", "ResetHUD", "abe"); register_forward(FM_AddToFullPack, "FwdAddToFullPack", 1) } public cod_class_enabled(id) { ma_klase[id] = true; return COD_CONTINUE; } public cod_class_disabled(id) ma_klase[id] = false; public FwdAddToFullPack(es_handle, e, ent, host, hostflags, player, pSet) { if(!is_user_connected(host) || !is_user_connected(ent)) return; if(!ma_klase[host]) return; set_es(es_handle, ES_RenderAmt, 255.0); }
Kod perku
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <fakemeta> #include <codmod> new const perk_name[] = "Eagle Eye"; new const perk_desc[] = "Widzisz niewidzialnych"; new bool:ma_perk[33]; public plugin_init() { register_plugin(perk_name, "1.0", "QTM_Peyote"); cod_register_perk(perk_name, perk_desc); register_forward(FM_AddToFullPack, "FwdAddToFullPack", 1) } public cod_perk_enabled(id) { ma_perk[id] = true; return COD_CONTINUE; } public cod_perk_disabled(id) ma_perk[id] = false; public FwdAddToFullPack(es_handle, e, ent, host, hostflags, player, pSet) { if(!is_user_connected(host) || !is_user_connected(ent)) return; if(!ma_perk[host]) return; set_es(es_handle, ES_RenderAmt, 255.0); }
Proszę o pomoc z góry dzięki