Attached Files
-
codclass_instructor.sma 1.84KB
25 downloads
codclass_instructor.amxx
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Posted 17.12.2011 23:33
Posted 17.12.2011 23:40
#include <amxmodx> #include <codmod> #include <hamsandwich> #define DMG_BULLET (1<<1) #include <fun> #include <engine> #include <cstrike> #include <fakemeta> new const nazwa[] = "Instructor"; new const opis[] = "+10% dmg z AK47, 1/4 szansy, ze wrogowi zacznie sie trzasc ekran"; new const bronie = (1<<CSW_FLASHBANG)|(1<<CSW_DEAGLE)|(1<<CSW_AK47); new const zdrowie = 50; new const kondycja = 50; new const inteligencja = 0; new const wytrzymalosc = 25; new ma_klase[33] public plugin_init() { register_plugin(nazwa, "1.0", "amxx.pl"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); } public cod_class_enabled(id) { if(!(get_user_flags(id) & ADMIN_LEVEL_H)) { client_print(id, print_chat, "[Instructor] Nie masz uprawnien, aby uzywac tej klasy.") return COD_STOP; } give_item(id, "weapon_flashbang"); give_item(id, "weapon_flashbang"); return COD_CONTINUE; } 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_AK47) cod_inflict_damage(idattacker, this, damage*0.1, 0.5, idinflictor, damagebits); } return HAM_IGNORED; }
Edited by Why?!, 17.12.2011 23:52.
Posted 17.12.2011 23:58
Posted 18.12.2011 10:46
Posted 18.12.2011 11:52
Posted 18.12.2011 12:04
Chcąc napisać do mnie prywatną wiadomość, wpierw zapoznaj się ze stroną "O mnie" w moim profilu użytkownika [ radim ] !
Posted 18.12.2011 12:32
0 members, 1 guests, 0 anonymous users