Poprawka klasy
Zablokowany
1337 03.03.2011
Witam.
proszę o poprawke klasy natomiast.
ma miec 1/3 na natychmiastowe zabicie z usp.
jak kuca jest niewidzialny
SMA
Użytkownik Pavulon edytował ten post 06.03.2011 10:52
proszę o poprawke klasy natomiast.
ma miec 1/3 na natychmiastowe zabicie z usp.
jak kuca jest niewidzialny
SMA
Spoiler
#include <amxmodx> #include <codmod> #include <hamsandwich> #include <fakemeta> #define DMG_BULLET (1<<1) new const nazwa[] = "Rozpierdalacz (KLASA PREMIUM)"; new const opis[] = "Ma 500HP, +200HP za zabojstwo, 1/3 z deagle'a, 1/2 z HE, 1/2 z Scouta, 1/6 z Shotguna"; new const bronie = 1<<CSW_DEAGLE | 1<<CSW_SCOUT | 1<<CSW_XM1014 | 1<<CSW_HEGRENADE; new const zdrowie = 400; new const kondycja = 38; new const inteligencja = 0; new const wytrzymalosc = 20; new bool:ma_klase[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", "Zepa edit. Svizz"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_event("DeathMsg", "DeathMsg", "ade"); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); } public cod_class_enabled(id) { if(!(get_user_flags(id) & ADMIN_LEVEL_H)) { client_print(id, print_chat, "[Rozpierdalacz] Nie masz uprawnien, aby uzywac tej klasy.") return COD_STOP; } ma_klase[id] = true; return COD_CONTINUE; } public cod_class_disabled(id) ma_klase[id] = false; public DeathMsg() { new killer = read_data(1); new victim = read_data(2); if(!is_user_connected(killer)) return PLUGIN_CONTINUE; if(ma_klase[victim] && !ma_klase[killer]) cod_set_user_xp(killer, cod_get_user_xp(killer)+10); if(ma_klase[killer]) { new cur_health = pev(killer, pev_health); new Float:max_health = 100.0+cod_get_user_health(killer); new Float:new_health = cur_health+200.0<max_health? cur_health+200.0: max_health; set_pev(killer, pev_health, new_health); new weapon = get_user_weapon(killer); if(maxClip[weapon] != -1) set_user_clip(1, maxClip[weapon]); } return PLUGIN_CONTINUE; } stock set_user_clip(id, ammo) { new weaponname[32], weaponid = -1, weapon = get_user_weapon(id, _, _); get_weaponname(weapon, weaponname, 31); while ((weaponid = engfunc(EngFunc_FindEntityByString, weaponid, "classname", weaponname)) != 0) if (pev(weaponid, pev_owner) == id) { set_pdata_int(weaponid, 51, ammo, 4); return weaponid; } return 0; } 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_SCOUT && damage > 20.0 && random_num(1,2) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_HEGRENADE && damage > 20.0 && random_num(1,2) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_XM1014 && damage > 20.0 && random_num(1,6) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_DEAGLE && damage > 20.0 && random_num(1,3) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } return HAM_IGNORED; } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par } */
Użytkownik Pavulon edytował ten post 06.03.2011 10:52
Gufinsky 03.03.2011
Spoiler
#include <amxmodx> #include <codmod> #include <hamsandwich> #include <fakemeta> #include <engine> #define DMG_BULLET (1<<1) new const nazwa[] = "Rozpierdalacz (KLASA PREMIUM)"; new const opis[] = "Ma 500HP, +200HP za zabojstwo, 1/3 z deagle'a, 1/2 z HE, 1/2 z Scouta, 1/6 z Shotguna"; new const bronie = 1<<CSW_DEAGLE | 1<<CSW_SCOUT | 1<<CSW_XM1014 | 1<<CSW_HEGRENADE; new const zdrowie = 400; new const kondycja = 38; new const inteligencja = 0; new const wytrzymalosc = 20; new bool:ma_klase[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", "Zepa edit. Svizz"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_event("DeathMsg", "DeathMsg", "ade"); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); } public cod_class_enabled(id) { if(!(get_user_flags(id) & ADMIN_LEVEL_H)) { client_print(id, print_chat, "[Rozpierdalacz] Nie masz uprawnien, aby uzywac tej klasy.") return COD_STOP; } ma_klase[id] = true; return COD_CONTINUE; } public cod_class_disabled(id) ma_klase[id] = false; public DeathMsg() { new killer = read_data(1); new victim = read_data(2); if(!is_user_connected(killer)) return PLUGIN_CONTINUE; if(ma_klase[victim] && !ma_klase[killer]) cod_set_user_xp(killer, cod_get_user_xp(killer)+10); if(ma_klase[killer]) { new cur_health = pev(killer, pev_health); new Float:max_health = 100.0+cod_get_user_health(killer); new Float:new_health = cur_health+200.0<max_health? cur_health+200.0: max_health; set_pev(killer, pev_health, new_health); new weapon = get_user_weapon(killer); if(maxClip[weapon] != -1) set_user_clip(1, maxClip[weapon]); } return PLUGIN_CONTINUE; } stock set_user_clip(id, ammo) { new weaponname[32], weaponid = -1, weapon = get_user_weapon(id, _, _); get_weaponname(weapon, weaponname, 31); while ((weaponid = engfunc(EngFunc_FindEntityByString, weaponid, "classname", weaponname)) != 0) if (pev(weaponid, pev_owner) == id) { set_pdata_int(weaponid, 51, ammo, 4); return weaponid; } return 0; } 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_SCOUT && damage > 20.0 && random_num(1,2) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_HEGRENADE && damage > 20.0 && random_num(1,2) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_XM1014 && damage > 20.0 && random_num(1,6) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_DEAGLE && damage > 20.0 && random_num(1,3) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); if(weapon == CSW_USP && damage > 20.0 && random_num(1,3) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } return HAM_IGNORED; } public client_PreThink(id) { if(!ma_klase[id]) return; new button = get_user_button(id); if(button & IN_DUCK) set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 5); else set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 25); }
Załączone pliki
- codclass_rozpierdalacz.amxx 6,98 KB 7 Ilość pobrań
1337 03.03.2011
sory nie to dalem bo miala byc klasa nie riozpierdalcz tylko tresaros ...
ma miec tylko usp 1/3 na zabicie,niewidke jak kuca
ma miec tylko usp 1/3 na zabicie,niewidke jak kuca
Spoiler
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <codmod> #include <cstrike> #include <fakemeta> #include <engine> #include <hamsandwich> #define DMG_BULLET (1<<1) new bool:ma_klase[33]; new bool:moze_skoczyc[33]; new const nazwa[] = "TresaroS klasa premium"; new const opis[] = "1/3 z USP, podwojny skok, kucajac jest niewidzialny, mniejsza gravitka"; new const bronie = 1<<CSW_USP; new const zdrowie = 37; new const kondycja = 60; new const inteligencja = 5; new const wytrzymalosc = 0; public plugin_init() { register_plugin(nazwa, "0.9a", "Svizz"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_forward(FM_CmdStart, "CmdStart"); } public cod_class_enabled(id) { set_pev(id, pev_gravity, 0.85); ma_klase[id] = true; } public cod_class_disabled(id) { set_pev(id, pev_gravity, 1.0); ma_klase[id] = false; } public CmdStart(id, uc_handle) { if(!ma_klase[id]) return FMRES_IGNORED; new button = get_uc(uc_handle, UC_Buttons); new oldbutton = pev(id, pev_oldbuttons); new flags = pev(id, pev_flags); if((button & IN_JUMP) && !(flags & FL_ONGROUND) && !(oldbutton & IN_JUMP) && moze_skoczyc[id]) { moze_skoczyc[id] = false; new Float:velocity[3]; pev(id, pev_velocity, velocity); velocity[2] = random_float(265.0,285.0); set_pev(id, pev_velocity, velocity); } else if(flags & FL_ONGROUND) moze_skoczyc[id] = true; return FMRES_IGNORED; } 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_USP && damagebits & DMG_BULLET && random_num(1,3) && damage > 2.0) { cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } return HAM_IGNORED; } public client_PreThink(id) { if(!ma_klase[id]) return; new button = get_user_button(id); if(button & IN_DUCK) set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 5); else set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255); } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par } */
Gufinsky 04.03.2011
Spoiler
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <codmod> #include <cstrike> #include <fakemeta> #include <engine> #include <hamsandwich> #define DMG_BULLET (1<<1) new bool:ma_klase[33]; new bool:moze_skoczyc[33]; new const nazwa[] = "TresaroS klasa premium"; new const opis[] = "1/3 z USP, podwojny skok, kucajac jest niewidzialny, mniejsza gravitka"; new const bronie = 1<<CSW_USP; new const zdrowie = 37; new const kondycja = 60; new const inteligencja = 5; new const wytrzymalosc = 0; public plugin_init() { register_plugin(nazwa, "0.9a", "Svizz"); cod_register_class(nazwa, opis, bronie, zdrowie, kondycja, inteligencja, wytrzymalosc); register_forward(FM_CmdStart, "CmdStart"); RegisterHam(Ham_TakeDamage, "player", "TakeDamage"); } public cod_class_enabled(id) { set_pev(id, pev_gravity, 0.85); ma_klase[id] = true; } public cod_class_disabled(id) { set_pev(id, pev_gravity, 1.0); ma_klase[id] = false; } public CmdStart(id, uc_handle) { if(!ma_klase[id]) return FMRES_IGNORED; new button = get_uc(uc_handle, UC_Buttons); new oldbutton = pev(id, pev_oldbuttons); new flags = pev(id, pev_flags); if((button & IN_JUMP) && !(flags & FL_ONGROUND) && !(oldbutton & IN_JUMP) && moze_skoczyc[id]) { moze_skoczyc[id] = false; new Float:velocity[3]; pev(id, pev_velocity, velocity); velocity[2] = random_float(265.0,285.0); set_pev(id, pev_velocity, velocity); } else if(flags & FL_ONGROUND) moze_skoczyc[id] = true; return FMRES_IGNORED; } 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_USP && damage > 20.0 && random_num(1,3) == 1) cod_inflict_damage(idattacker, this, float(get_user_health(this))-damage+1.0, 0.0, idinflictor, damagebits); } return HAM_IGNORED; } public client_PreThink(id) { if(!ma_klase[id]) return; new button = get_user_button(id); if(button & IN_DUCK) set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 25); else set_rendering(id,kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 255); }
Załączone pliki
- codclas_tresaros.amxx 5,54 KB 5 Ilość pobrań
Gufinsky 04.03.2011
Spoiler
ZAŁĄCZNIK!
Załączone pliki
- codclass_tresaros.amxx 5,53 KB 4 Ilość pobrań
1337 04.03.2011
Sma moze dasz
i dodaj do sma i skompiluj i daj sma i amxx
if(!(get_user_flags(id) & ADMIN_LEVEL_A))
{
client_print(id, print_chat, "[TresaroS] Nie masz uprawnien, aby uzywac tej klasy.")
return COD_STOP;
}
dodaj to zeby klasa premium byla
Użytkownik opalejro edytował ten post 04.03.2011 17:45
i dodaj do sma i skompiluj i daj sma i amxx
if(!(get_user_flags(id) & ADMIN_LEVEL_A))
{
client_print(id, print_chat, "[TresaroS] Nie masz uprawnien, aby uzywac tej klasy.")
return COD_STOP;
}
dodaj to zeby klasa premium byla
Użytkownik opalejro edytował ten post 04.03.2011 17:45
Zablokowany