Jump to content

rAsEaL

Members
  • Content Count

    142
  • Joined

  • Last visited

  • Days Won

    4

rAsEaL last won the day on November 2 2018

rAsEaL had the most liked content!

Community Reputation

43 Excellent

4 Followers

About rAsEaL

  • Birthday 07/02/1995

Converted

Recent Profile Visitors

553 profile views
  1. rAsEaL

    Cerere Avatar GLaDoS

    V1 V2
  2. Descriere: Atunci cand loveste un om acesta ii poate arunca arma (+Attack2 , click dreapta) Descarcare: /* ==================================================== Name: Deimos Zombie Type: Zombie Class Desc: Press +Attack2 to Drop Human Weapon Edit: Dias Leon This zombie class made by Petr & 5c0r. ==================================================== */ #include <amxmodx> #include <engine> #include <fakemeta> #include <zombieplague> #include <fun> #include <hamsandwich> #include <fakemeta_util> #include <zombiexp> #define PLUGIN "[ZP] ZClass: Deimos Zombie" #define VERSION "1.1" #define AUTHOR "Petr+5cor" new const zclass_name[] = { "Deimos Zombie" } new const zclass_info[] = { ">> Press +Attack2 <<" } new const zclass_model[] = { "revenant_nik" } new const zclass_clawmodel[] = { "v_revenant_um.mdl" } const zclass_health = 13000 const zclass_speed = 440 const Float:zclass_gravity = 0.7 const Float:zclass_knockback = 0.25 new beamSpr, deimos_spr new const deimos_sound[] = "zombie_plague/deimos_skill_hit.wav" //Cvars new pcvar_distance new cvar_cooldown // Cooldown when dropped the weapon of human new g_deimos new g_maxplayers new is_cooldown[33] = 0 new bool:g_cd[33] new cvar_nemesis #define PRIMARY_WEAPONS_BIT_SUM ((1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)) // You can allways add more public plugin_precache() { g_deimos = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback) beamSpr = precache_model("sprites/lgtning.spr") deimos_spr = precache_model("sprites/deimosexp.spr") precache_sound(deimos_sound) } public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) pcvar_distance = register_cvar ( "zp_deimos_distance", "1000" ) cvar_cooldown = register_cvar("zp_deimos_shot_cooldown","5.0") cvar_nemesis = register_cvar("zp_deimos_nemesis", "1") g_maxplayers = get_maxplayers() register_logevent("roundStart", 2, "1=Round_Start") register_forward(FM_CmdStart, "fwd_cmd_start") RegisterHam(Ham_Spawn,"player","fw_PlayerSpawn_Post",1) } public fw_PlayerSpawn_Post(id) { // Not alive... if(!is_user_alive(id)) return HAM_IGNORED if(cvar_nemesis == 1) { if(zp_get_user_zombie_class(id) == g_deimos && zp_get_user_zombie(id)) { g_cd[id] = true } } else { if(zp_get_user_zombie_class(id) == g_deimos && zp_get_user_zombie(id) && !zp_get_user_nemesis(id)) { g_cd[id] = true } } return HAM_IGNORED } public fwd_cmd_start(id, uc_handle, seed) { if(cvar_nemesis == 1) { if (!is_user_alive(id) || !zp_get_user_zombie(id) || g_cd[id] ) return FMRES_IGNORED } else { if (!is_user_alive(id) || !zp_get_user_zombie(id) || g_cd[id] || zp_get_user_nemesis(id) ) return FMRES_IGNORED } if (zp_get_user_zombie_class(id) != g_deimos) return FMRES_IGNORED static buttons buttons = get_uc(uc_handle, UC_Buttons) if(buttons & IN_ATTACK2) { drop_weapon(id) g_cd[id] = true } buttons &= ~IN_ATTACK2 set_uc(uc_handle, UC_Buttons, buttons) return FMRES_HANDLED } drop_weapon(id) { new target, body static Float:start[3] static Float:aim[3] pev(id, pev_origin, start) fm_get_aim_origin(id, aim) start[2] += 16.0; // raise aim[2] += 16.0; // raise get_user_aiming ( id, target, body, pcvar_distance ) if( is_user_alive( target ) && !zp_get_user_zombie( target ) && !zp_get_user_survivor( target ) ) { message_begin(MSG_BROADCAST ,SVC_TEMPENTITY) write_byte(TE_EXPLOSION) engfunc(EngFunc_WriteCoord, aim[0]) engfunc(EngFunc_WriteCoord, aim[1]) engfunc(EngFunc_WriteCoord, aim[2]) write_short(deimos_spr) write_byte(10) write_byte(30) write_byte(4) message_end() emit_sound(id, CHAN_WEAPON, deimos_sound, VOL_NORM, ATTN_NORM, 0, PITCH_NORM) drop(target) } message_begin(MSG_BROADCAST,SVC_TEMPENTITY) write_byte(0) engfunc(EngFunc_WriteCoord,start[0]); engfunc(EngFunc_WriteCoord,start[1]); engfunc(EngFunc_WriteCoord,start[2]); engfunc(EngFunc_WriteCoord,aim[0]); engfunc(EngFunc_WriteCoord,aim[1]); engfunc(EngFunc_WriteCoord,aim[2]); write_short(beamSpr); // sprite index write_byte(0); // start frame write_byte(30); // frame rate in 0.1's write_byte(10); // life in 0.1's write_byte(100); // line width in 0.1's write_byte(10); // noise amplititude in 0.01's write_byte(200); // red write_byte(200); // green write_byte(0); // blue write_byte(100); // brightness write_byte(50); // scroll speed in 0.1's message_end(); set_task( get_pcvar_float(cvar_cooldown), "reset_cooldown2", id ); } public zp_user_infected_post(id, infector) { if ((zp_get_user_zombie_class(id) == g_deimos) && !zp_get_user_nemesis(id)) { is_cooldown[id] = 0 g_cd[id] = false } } public reset_cooldown2(id) { g_cd[id] = false client_print( id, print_chat, "[Deimos Zombie] Now. You can use your Ability. Press +Attack2" ) } public zp_user_humanized_post(id) { remove_task(id) is_cooldown[id] = 0 } public roundStart() { for (new i = 1; i <= g_maxplayers; i++) { is_cooldown[i] = 0 remove_task(i) } } stock drop(id) { new weapons[32], num get_user_weapons(id, weapons, num) for (new i = 0; i < num; i++) { if (PRIMARY_WEAPONS_BIT_SUM & (1<<weapons[i])) { static wname[32] get_weaponname(weapons[i], wname, sizeof wname - 1) engclient_cmd(id, "drop", wname) } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1066\\ f0\\ fs16 \n\\ par } */ LINK RESURSE ! Nume: [ZP] ZClass: Deimos Zombie Link oficial: click , am postat mai mult acest plugin pentru ca lipsesc fisiere din link-ul original..modele + lgtning.spr Instalare: 1. Fisierul zp_zclass_deimos.sma il puneti in addons/amxmodx/scripting 2. Fisierul zp_zclass_deimos.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma: zp_zclass_deimos.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg zp_deimos_distance | Distanța de la distanță (implicit: 500 - 1000) zp_deimos_shot_cooldown | Cooldown după cădere (Implicit: 30) zp_deimos_nemesis | Activat dacă vrei nemesis, de asemenea, poți folosi această abilitate (Implicit: 1)
  3. Descriere: Jetpack la zombi Descarcare: LINK RESURSE! #include <amxmodx> #include <fakemeta> #include <hamsandwich> #include < zombieplague > #include < cstrike > #include < fun > //native zp_get_user_zombie(id) //native zp_register_extra_item(const name[], cost, teams) new const ClassnameJetPack[] = "n4d_jetpack" new const ClassnameRocket[] = "n4d_bazooka" new const ModelVJetPack[] = "models/ls/v_jp_lars_zm.mdl" new const ModelPJetPack[] = "models/ls/p_egon_zm.mdl" new const ModelWJetPack[] = "models/ls/w_egon_zm.mdl" new const ModelRocket[] = "models/rpgrocket.mdl" new const SoundPickup[] = "items/gunpickup2.wav" new const SoundShoot[] = "ls/at4-1.wav" new const SoundTravel[] = "ls/bfuu.wav" new const SoundFly[] = "ls/fly.wav" new const SoundBlow[] = "ls/blow.wav" new bool:bHasJetPack[33] new Float:fJetpackFuel[33] new Float:fLastShoot[33] new SprExp, SprTrail, ItemJetPack, iAllocInfoTarget, iMaxClients, MsgSayText new CvarMaxFuel, CvarRadius, CvarDamage, CvarSpeed, CvarCooldown, CvarRegen, CvarRocketSpeed, CvarCount new Float:CMaxFuel, Float:CRadius, Float:CDamage, CSpeed, Float:CCooldown, Float:CRegen, CRocketSpeed, CCount #define IsPlayer(%0) (1<=%0<=iMaxClients) //#define ZP_TEAM_HUMAN (1<<1) //#define ZP_PLUGIN_HANDLED 97 #define PevEntType pev_flSwimTime #define EntTypeJetPack 3904 #define EntTypeRocket 9340 // Uncomment this to draw ring effect #define DrawRing // Uncomment this to draw flame effect //#define DrawFlame // Uncomment this to draw flame effect #define DrawTrail #if defined DrawTrail #define TRAIL_LIFE 1 #define TRAIL_WIDTH 8 #define TRAIL_RED 210 #define TRAIL_GREEN 100 #define TRAIL_BLUE 0 #define TRAIL_BRIGTHNESS 200 #endif #if defined DrawRing new SprRing #endif #if defined DrawFlame new SprFlame #endif public plugin_precache() { precache_sound(SoundPickup) precache_sound(SoundShoot) precache_sound(SoundTravel) precache_sound(SoundFly) precache_sound(SoundBlow) SprExp = precache_model("sprites/zerogxplode.spr") SprTrail = precache_model("sprites/smoke.spr") #if defined DrawFlame SprFlame = precache_model("sprites/xfireball3.spr") #endif #if defined DrawRing SprRing = precache_model("sprites/shockwave.spr") #endif precache_model(ModelVJetPack) precache_model(ModelPJetPack) precache_model(ModelWJetPack) precache_model(ModelRocket) } public plugin_init() { register_plugin("New Jetpack", "0.0.2", "Bad_Bud,ZmOutStanding,Connor,wbyokomo") register_event("HLTV", "OnNewRound", "a", "1=0", "2=0") register_logevent("OnRoundEnd", 2, "1=Round_End") RegisterHam ( Ham_Spawn, "player", "CBasePlayer_Spawn_Post", .Post = true ); RegisterHam(Ham_Killed, "player", "OnPlayerKilled") RegisterHam(Ham_Player_Jump, "player", "OnPlayerJump") RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_knife", "OnKnifeSecAtkPost", 1) //RegisterHam(Ham_Item_Deploy, "weapon_knife", "OnKnifeDeployPost", 1) register_event("CurWeapon", "check_models", "be") register_forward(FM_PlayerPreThink, "OnPlayerPreThink") register_forward(FM_Touch, "OnTouch") CvarMaxFuel = register_cvar("jp_maxfuel", "250.0") CvarRadius = register_cvar("jp_radius", "250.0") CvarDamage = register_cvar("jp_damage", "800.0") CvarSpeed = register_cvar("jp_speed", "300") CvarCooldown = register_cvar("jp_cooldown", "10.0") CvarRegen = register_cvar("jp_regen", "0.5") CvarRocketSpeed = register_cvar("jp_rocket_speed", "1500") CvarCount = register_cvar("jp_count", "3") iMaxClients = get_maxplayers() MsgSayText = get_user_msgid("SayText") ItemJetPack = zp_register_extra_item("Zombie Jetpack", 50, ZP_TEAM_ZOMBIE) register_clcmd("drop", "CmdDropJP") } public plugin_cfg() { iAllocInfoTarget = engfunc(EngFunc_AllocString, "info_target") } public client_putinserver(id) { ResetValues(id) } public client_disconnect(id) { ResetValues(id) } public OnNewRound() { RemoveAllJetPack() CMaxFuel = get_pcvar_float(CvarMaxFuel) CRadius = get_pcvar_float(CvarRadius) CDamage = get_pcvar_float(CvarDamage) CSpeed = get_pcvar_num(CvarSpeed) CCooldown = get_pcvar_float(CvarCooldown) CRegen = get_pcvar_float(CvarRegen) CRocketSpeed = get_pcvar_num(CvarRocketSpeed) CCount = get_pcvar_num(CvarCount) } public OnRoundEnd() { RemoveAllJetPack() } public CBasePlayer_Spawn_Post ( id ) { if ( !is_user_alive ( id ) ) { return HAM_IGNORED; } if(bHasJetPack[id]) DropJetPack(id); ResetValues(id) return HAM_IGNORED; } public OnPlayerKilled(id) { if(bHasJetPack[id]) DropJetPack(id); ResetValues(id) } public OnPlayerJump(id) { if(bHasJetPack[id] && fJetpackFuel[id] > 0.0 && get_user_weapon(id) == CSW_KNIFE && pev(id, pev_button) & IN_DUCK && ~pev(id, pev_flags) & FL_ONGROUND) { static Float:vVelocity[3], Float:upSpeed pev(id, pev_velocity, vVelocity) upSpeed = vVelocity[2] + 35.0 velocity_by_aim(id, CSpeed, vVelocity) vVelocity[2] = upSpeed > 300.0 ? 300.0 : upSpeed set_pev(id, pev_velocity, vVelocity) #if defined DrawFlame pev(id, pev_origin, vVelocity) engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, vVelocity, 0) write_byte(TE_SPRITE) engfunc(EngFunc_WriteCoord, vVelocity[0]) engfunc(EngFunc_WriteCoord, vVelocity[1]) engfunc(EngFunc_WriteCoord, vVelocity[2]) write_short(SprFlame) write_byte(8) write_byte(128) message_end() #endif #if defined DrawTrail message_begin (MSG_BROADCAST,SVC_TEMPENTITY) write_byte (TE_BEAMFOLLOW) write_short (id) write_short (SprTrail) write_byte (TRAIL_LIFE) write_byte (TRAIL_WIDTH) write_byte (TRAIL_RED) write_byte (TRAIL_GREEN) write_byte (TRAIL_BLUE) write_byte (TRAIL_BRIGTHNESS) message_end() #endif fJetpackFuel[id] > 80.0 ? emit_sound(id, CHAN_STREAM, SoundFly, VOL_NORM, ATTN_NORM, 0, PITCH_NORM) : emit_sound(id, CHAN_STREAM, SoundBlow, VOL_NORM, ATTN_NORM, 0, PITCH_NORM); fJetpackFuel[id] -= 1.0 } } //public zp_user_infected_pre(id) public zp_user_humanized_pre(id) { if(bHasJetPack[id]) DropJetPack(id); ResetValues(id) } public zp_extra_item_selected(id, item) { if(item == ItemJetPack) { if(bHasJetPack[id]) { zp_colored_print(id, "^x04[ZP]^x01 You already have this item!") return ZP_PLUGIN_HANDLED; } else if (jet_count() >= CCount) { zp_colored_print(id, "^x04[ZP]^x01 Sorry, but maximum JetPack's reached!") return ZP_PLUGIN_HANDLED; } else { bHasJetPack[id] = true //zp_colored_print(id, "^x04[ZP]^x01 JetPack usage:^x04 JUMP+DUCK^x01 -- fly |^x04 SECATTACK^x01 -- shoot rocket.") engclient_cmd(id, "weapon_knife") ReplaceModel(id) } } return PLUGIN_CONTINUE; } jet_count() { new i, count = 0; for(i = 1; i < 33; i++) { if(bHasJetPack[i]) { count++; } } return count; } public OnKnifeSecAtkPost(ent2) { if(pev_valid(ent2) == 2) { static id, Float:ctime id = get_pdata_cbase(ent2, 41, 4) ctime = get_gametime() if(is_user_alive(id) && bHasJetPack[id] && fLastShoot[id] < ctime) { new ent = engfunc(EngFunc_CreateNamedEntity, iAllocInfoTarget) if(ent) { engfunc(EngFunc_SetModel, ent, ModelRocket) engfunc(EngFunc_SetSize, ent, Float:{0.0, 0.0, 0.0}, Float:{0.0, 0.0, 0.0}) new Float:fOrigin[3] pev(id, pev_origin, fOrigin) fOrigin[2] += 16.0 engfunc(EngFunc_SetOrigin, ent, fOrigin) set_pev(ent, pev_classname, ClassnameRocket) set_pev(ent, pev_dmg, 100.0) set_pev(ent, pev_owner, id) velocity_by_aim(id, CRocketSpeed, fOrigin) set_pev(ent, pev_velocity, fOrigin) new Float:vecAngles[3] engfunc(EngFunc_VecToAngles, fOrigin, vecAngles) set_pev(ent, pev_angles, vecAngles) set_pev(ent, PevEntType, EntTypeRocket) set_pev(ent, pev_movetype, MOVETYPE_FLY) set_pev(ent, pev_effects, EF_LIGHT) set_pev(ent, pev_solid, SOLID_BBOX) emit_sound(id, CHAN_STATIC, SoundShoot, VOL_NORM, ATTN_NORM, 0, PITCH_NORM) emit_sound(ent, CHAN_WEAPON, SoundTravel, VOL_NORM, ATTN_NORM, 0, PITCH_NORM) message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_BEAMFOLLOW) write_short(ent) write_short(SprTrail) write_byte(40) write_byte(5) write_byte(224) write_byte(224) write_byte(255) write_byte(192) message_end() //set_pdata_float(ent2, 46, CCooldown, 4) //set_pdata_float(ent2, 47, CCooldown, 4) //set_pdata_float(ent2, 48, CCooldown, 4) //set_pdata_float(id, 83, CCooldown, 5) fLastShoot[id] = ctime+CCooldown } else { client_print(id, print_chat, "[JpDebug] Failed to create rocket!") fLastShoot[id] = ctime+1.5 } } } } public check_models(id) { if (!zp_get_user_zombie(id)) { return FMRES_IGNORED } if(bHasJetPack[id]) { new clip,ammo new wpnid = get_user_weapon(id,clip,ammo) if ( wpnid == CSW_KNIFE ) { ReplaceModel(id) } return PLUGIN_CONTINUE } return PLUGIN_CONTINUE } /* public OnKnifeDeployPost(ent) { if(pev_valid(ent) == 2) { static id; id = get_pdata_cbase(ent, 41, 4) //if(is_user_alive(id) && bHasJetPack[id]) ReplaceModel(id); if(!is_user_alive(id)) return; //if(bHasJetPack[id]) ReplaceModel(id); if(bHasJetPack[id]) { new clip,ammo new wpnid = get_user_weapon(id,clip,ammo) if ( wpnid == CSW_KNIFE ) { ReplaceModel(id) } } } } */ public OnPlayerPreThink(id) { if(bHasJetPack[id] && fJetpackFuel[id] < CMaxFuel) { static button; button = pev(id, pev_button) if(!(button & IN_DUCK) && !(button & IN_JUMP)) fJetpackFuel[id] += CRegen; } } public OnTouch(ent, id) { if(pev_valid(ent)) { if(pev(ent, PevEntType) == EntTypeJetPack) { if(IsPlayer(id) && is_user_alive(id) && zp_get_user_zombie(id) && !bHasJetPack[id]) { engfunc(EngFunc_RemoveEntity, ent) bHasJetPack[id] = true emit_sound(id, CHAN_STATIC, SoundPickup, VOL_NORM, ATTN_NORM, 0, PITCH_NORM) engclient_cmd(id,"weapon_knife") ReplaceModel(id) } } else if(pev(ent, PevEntType) == EntTypeRocket) { static Float:fOrigin[3] pev(ent, pev_origin, fOrigin) engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0) write_byte(TE_EXPLOSION) engfunc(EngFunc_WriteCoord, fOrigin[0]) engfunc(EngFunc_WriteCoord, fOrigin[1]) engfunc(EngFunc_WriteCoord, fOrigin[2]) write_short(SprExp) write_byte(40) write_byte(30) write_byte(10) message_end() #if defined DrawRing engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0) write_byte(TE_BEAMCYLINDER) engfunc(EngFunc_WriteCoord, fOrigin[0]) engfunc(EngFunc_WriteCoord, fOrigin[1]) engfunc(EngFunc_WriteCoord, fOrigin[2]) engfunc(EngFunc_WriteCoord, fOrigin[0]) engfunc(EngFunc_WriteCoord, fOrigin[1]) engfunc(EngFunc_WriteCoord, fOrigin[2]+555.0) write_short(SprRing) write_byte(0) write_byte(1) write_byte(6) write_byte(8) write_byte(10) write_byte(224) write_byte(224) write_byte(255) write_byte(192) write_byte(5) message_end() #endif static attacker; attacker = pev(ent, pev_owner) if(!is_user_connected(attacker)) { engfunc(EngFunc_RemoveEntity, ent) return FMRES_IGNORED; } if(pev_valid(id) && !is_user_connected(id)) { static szClassname[32] pev(id, pev_classname, szClassname, 31) if(equal(szClassname, "func_breakable") && (pev(id, pev_solid) != SOLID_NOT)) { dllfunc(DLLFunc_Use, id, ent) } } static victim; victim = -1 while((victim = engfunc(EngFunc_FindEntityInSphere, victim, fOrigin, CRadius)) != 0) { if(is_user_alive(victim) && !zp_get_user_zombie(victim)) { static Float:originV[3], Float:dist, Float:damage pev(victim, pev_origin, originV) dist = get_distance_f(fOrigin, originV) damage = CDamage-(CDamage/CRadius)*dist if(damage > 0.0) { ExecuteHamB(Ham_TakeDamage, victim, ent, attacker, damage, DMG_BULLET) zp_set_user_ammo_packs(attacker, zp_get_user_ammo_packs(attacker) + victim ); // client_print(attacker, print_chat, "[JpDebug] Rocket damage: %.1f", damage) } } } engfunc(EngFunc_RemoveEntity, ent) } } return FMRES_IGNORED; } public CmdDropJP(id) { if(is_user_alive(id) && bHasJetPack[id] && get_user_weapon(id) == CSW_KNIFE) { DropJetPack(id) ResetValues(id) set_pev(id, pev_viewmodel2, "models/v_knife.mdl") set_pev(id, pev_weaponmodel2, "models/p_knife.mdl") return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; } ReplaceModel(id) { set_pev(id, pev_viewmodel2, ModelVJetPack) set_pev(id, pev_weaponmodel2, ModelPJetPack) } DropJetPack(id) { new Float:fAim[3], Float:fOrigin[3] velocity_by_aim(id, 64, fAim) pev(id, pev_origin, fOrigin) fOrigin[0] += fAim[0] fOrigin[1] += fAim[1] new ent = engfunc(EngFunc_CreateNamedEntity, iAllocInfoTarget) if(ent) { engfunc(EngFunc_SetModel, ent, ModelWJetPack) engfunc(EngFunc_SetSize, ent, Float:{-4.0,-4.0,-4.0}, Float:{4.0,4.0,4.0}) engfunc(EngFunc_SetOrigin, ent, fOrigin) set_pev(ent, pev_classname, ClassnameJetPack) set_pev(ent, pev_dmg, 100.0) set_pev(ent, PevEntType, EntTypeJetPack) set_pev(ent, pev_movetype, MOVETYPE_TOSS) set_pev(ent, pev_solid, SOLID_TRIGGER) } } RemoveAllJetPack() { new ent = engfunc(EngFunc_FindEntityByString, -1, "classname", ClassnameJetPack) while(ent > 0) { engfunc(EngFunc_RemoveEntity, ent) ent = engfunc(EngFunc_FindEntityByString, -1, "classname", ClassnameJetPack) } } ResetValues(id) { bHasJetPack[id] = false fJetpackFuel[id] = get_pcvar_float(CvarMaxFuel) } zp_colored_print(target, const message[], any:...) { static buffer[512], i, argscount argscount = numargs() if (!target) { static iPlayers[32], iNum, j, player get_players(iPlayers, iNum, "ch") for (j = 0; j < iNum; j++) { player = iPlayers[j] static changed[5], changedcount changedcount = 0 for (i = 2; i < argscount; i++) { if (getarg(i) == LANG_PLAYER) { setarg(i, 0, player) changed[changedcount] = i changedcount++ } } vformat(buffer, charsmax(buffer), message, 3) message_begin(MSG_ONE_UNRELIABLE, MsgSayText, _, player) write_byte(player) write_string(buffer) message_end() for (i = 0; i < changedcount; i++) setarg(changed[i], 0, LANG_PLAYER); } } else { vformat(buffer, charsmax(buffer), message, 3) message_begin(MSG_ONE, MsgSayText, _, target) write_byte(target) write_string(buffer) message_end() } } Nume: Zombie JetPack Link oficial: click , am postat mai mult acest plugin pentru ca lipsesc fisiere din link-ul original.. rpgrocket.mdl gunpickup2.wav zerogxplode.spr smoke.spr xfireball3.spr shockwave.spr Instalare: 1. Fisierul zp_jetpack_new_zm.sma il puneti in addons/amxmodx/scripting 2. Fisierul zp_jetpack_new_zm.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma: zp_jetpack_new_zm.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg) : jp_maxfuel 250.0 // (maxim de combustibil) jp_radius 250.0 // (raza) jp_damage 800.0 // (cat hp poate dauna) jp_speed 300 // (viteza jetpack-ului) jp_cooldown 10.0 // (in cat timp sa se reincarce) jp_regen 0.5 // (in cat timp sa se regenereze racketa) jp_rocket_speed 1500 // (ce viteza sa aiba racketa) jp_count 3 // (cate rackete) Ca sa editati cat sa coste in meniu: ItemJetPack = zp_register_extra_item("Zombie Jetpack", 50, ZP_TEAM_ZOMBIE) , modificati acolo unde scrie 50 ,puneti cat vreti sau din zp_extraitems.ini
  4. rAsEaL

    ZP Extra Item: Pet - Bat

    Descriere: Iti da animal de companie / gravitatie si long jump. Descarcare: LINK RESURSE! Nume: Pet Instalare: 1. Fisierul zp_nietoperz_2.sma il puneti in addons/amxmodx/scripting 2. Fisierul zp_nietoperz_2.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma: zp_nietoperz_2.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg - Imagini: Apare in meniu.
  5. rAsEaL

    [ZP] Extra Item : Damage Kit

    Descriere: Acest plugin iti da 250 armura(poti seta cata armura vrei) , glow , shotgun si viata. Descarcare: LINK RESURSE! #include <amxmodx> #include <hamsandwich> #include <engine> #include <zombieplague> #include <fun> #include <fakemeta_util> new cvar_knife_dmg, cvar_m3_dmg new cvar_deagle_dmg, g_itemid, cvar_health, cvar_armor new cvar_red, cvar_green, cvar_blue new bool:g_bHasKitDamage[33], g_maxplayers, g_msgSayText new const v_m3_model[] = "models/v_m3_released.mdl" new const p_m3_model[] = "models/p_m3_released.mdl" public plugin_init() { register_plugin("Damage Kit" , "1.3b", "lucas_7_94") register_cvar ("zp_extra_damage", "1.3b", FCVAR_SERVER) RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage") register_event("HLTV", "event_round_start", "a", "1=0", "2=0") register_event("CurWeapon", "event_CurWeapon", "be", "1=1") g_itemid = zp_register_extra_item("Kit De Damage", 90, ZP_TEAM_HUMAN) cvar_m3_dmg = register_cvar ("zp_m3_damage", "6.0") cvar_knife_dmg = register_cvar ("zp_knife_damage", "4.0") cvar_deagle_dmg = register_cvar ("zp_deagle_damage", "6.0") cvar_health = register_cvar ("zp_kit_health", "100") cvar_armor = register_cvar ("zp_kit_armor", "250") cvar_red = register_cvar ("zp_kit_glow_R", "000") cvar_green = register_cvar ("zp_kit_glow_G", "255") cvar_blue = register_cvar ("zp_kit_glow_B", "255") g_maxplayers = get_maxplayers() g_msgSayText = get_user_msgid("SayText") } public plugin_precache() { precache_model(v_m3_model) precache_model(p_m3_model) } public event_round_start() { for(new id = 1; id <= g_maxplayers; id++) g_bHasKitDamage[id] = false } public zp_user_infected_post(infected, infector) { if (g_bHasKitDamage[infected]) { g_bHasKitDamage[infected] = false } } public fw_player_killed(victim, attacker, shouldgib) { if(g_bHasKitDamage[victim]) { KitDamage(victim, "^x04[Kit Damage] You do not have the kit Damage!") g_bHasKitDamage[victim] = false } } public zp_extra_item_selected(player, itemid) { if (itemid == g_itemid) { if(g_bHasKitDamage[player]) { KitDamage(player, "^x04[Zombie Plague] You've got the Damage Kit") zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + 50) return; } else { g_bHasKitDamage[player] = true fm_set_user_health(player, get_user_health(player) + get_pcvar_num(cvar_health)); fm_set_user_armor(player, get_user_armor(player) + get_pcvar_num(cvar_armor)); fm_set_rendering(player, kRenderFxGlowShell, (cvar_red), (cvar_green), (cvar_blue), kRenderNormal, 16); fm_strip_user_weapons(player) give_item(player, "weapon_knife") give_item(player, "weapon_deagle") give_item(player, "weapon_m3") KitDamage(player, "^x04[Zombie Plague] You purchased a kit Damage!!") } } } public event_CurWeapon(id) { new weapid = read_data(2) if(!is_user_alive(id)) return; if(g_bHasKitDamage[id] && weapid == CSW_M3) { entity_set_string(id, EV_SZ_viewmodel, v_m3_model) entity_set_string(id, EV_SZ_weaponmodel, p_m3_model) } } public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type) { if(!(1 <= attacker <= g_maxplayers)) return HAM_IGNORED; if(get_user_weapon(attacker) != CSW_M3) if(get_user_weapon(attacker) != CSW_DEAGLE) if(get_user_weapon(attacker) != CSW_KNIFE) return HAM_IGNORED; if (get_user_weapon(attacker) && g_bHasKitDamage[attacker]) { SetHamParamFloat(4, damage * get_pcvar_float(cvar_m3_dmg)) SetHamParamFloat(4, damage * get_pcvar_float(cvar_deagle_dmg)) SetHamParamFloat(4, damage * get_pcvar_float(cvar_knife_dmg)) } return HAM_IGNORED; } KitDamage(target, const message[], any:...) { static buffer[512], i, argscount argscount = numargs() // Send to everyone if (!target) { static player for (player = 1; player <= g_maxplayers; player++) { // Not connected if (!is_user_connected(player)) continue; static changed[5], changedcount; changedcount = 0 for (i = 2; i < argscount; i++) { if (getarg(i) == LANG_PLAYER) { setarg(i, 0, player) changed[changedcount] = i changedcount++ } } vformat(buffer, sizeof buffer - 1, message, 3) message_begin(MSG_ONE, g_msgSayText, _, player) write_byte(player) write_string(buffer) message_end() for (i = 0; i < changedcount; i++) setarg(changed[i], 0, LANG_PLAYER) } } else { // Format message for player vformat(buffer, sizeof buffer - 1, message, 3) // Send it message_begin(MSG_ONE, g_msgSayText, _, target) write_byte(target) write_string(buffer) message_end() } } Nume: Kit damage Instalare: 1. Fisierul zp_extra_kit_damage.sma il puneti in addons/amxmodx/scripting 2. Fisierul zp_extra_kit_damage.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma: zp_extra_kit_damage.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg zp_m3_damage 6.0 (cat damage sa dea shotgun-ul) zp_knife_damage 4.0 (cat damage sa dea cutitul) zp_deagle_damage 6.0 (cat damage sa dea deagle) zp_kit_health 100 (aici setati voi cat hp sa dea in plus) zp_kit_armor 250 (aici setati voi armura,eu am setat 250,puteti sa o setati cum vreti) zp_kit_glow_R 000 | zp_kit_glow_G 255 |--> aici setati culorile la glow zp_kit_glow_B 255 |
  6. rAsEaL

    [ZP]Zombie Class: Climb

    Descriere: Acest zombi se poate urca pe pereti (apasand tasta E ) Descarcare: LINK RESURSE! /* Wallclimb v1.0f by Python1320 Plagued Version 0.22 by Dabbi Allows Poison Zombie to Climb Walls in Zombie Plague [3.62] CVARS: zp_wallclimb 0 = Off / 1 = Hold USE / 2 = Hold JUMP and DUCK (Default 1) zp_wallclimb_nemesis 0 = Disable wallclimb during nemesis round. / 1 = Enable (Default 1) zp_wallclimb_survivor 0 = Disable wallclimb during survivor round. / 1 = Enable (Default 0) Changes: 0.22 Made the function wallclimb return a value. Put plugin version to a cvar. 0.21 Added cvars to enable disable wallclimb durin survivor/nemesis round 0.2 Added cvar to enable / disable Walllclimb Plugin 0.1 First release. */ #include <amxmodx> // #include <engine> #include <fakemeta> #include <cstrike> #include <zombieplague.inc> //#include <fakemeta_util> #define STR_T 33 // Stuff taken from fakemeta_util #define fm_get_user_button(%1) pev(%1, pev_button) /* stock fm_get_user_button(index) return pev(index, pev_button) */ #define fm_get_entity_flags(%1) pev(%1, pev_flags) /* stock fm_get_entity_flags(index) return pev(index, pev_flags) */ stock fm_set_user_velocity(entity, const Float:vector[3]) { set_pev(entity, pev_velocity, vector); return 1; } //End of stuff from fakemeta_util //new STR_T[32] new bool:g_WallClimb[33] new Float:g_wallorigin[32][3] new cvar_zp_wallclimb, cvar_zp_wallclimb_nemesis, cvar_zp_wallclimb_survivor new g_zclass_climb // Climb Zombie Atributes new const zclass_name[] = { "Climb Zombie" } // name new const zclass_info[] = { "Se urca pe pereti" } // description new const zclass_model[] = { "zombie_oxidation" } // model new const zclass_clawmodel[] = { "v_knife_oxidation.mdl" } // claw model const zclass_health = 10200 // health const zclass_speed = 320 // speed const Float:zclass_gravity = 0.8 // gravity const Float:zclass_knockback = 1.5 // knockback public plugin_init() { register_plugin("[ZP] Wallclimb ", "1.0", "WallClimb by Python1320/Cheap_Suit, Plagued by Dabbi") register_forward(FM_Touch, "fwd_touch") register_forward(FM_PlayerPreThink, "fwd_playerprethink") //register_forward(FM_PlayerPostThink, "fwd_playerpostthink") register_event("DeathMsg","EventDeathMsg","a") //register_cvar("zp_wallclimb_version", PLUGIN_VERSION, FCVAR_SERVER|FCVAR_SPONLY) cvar_zp_wallclimb = register_cvar("zp_wallclimb", "1") cvar_zp_wallclimb_survivor = register_cvar("zp_wallclimb_survivor", "0") cvar_zp_wallclimb_nemesis = register_cvar("zp_wallclimb_nemesis", "1") } public plugin_precache() { g_zclass_climb = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback) } public EventDeathMsg() { new id = read_data(2) g_WallClimb[id] = true return PLUGIN_HANDLED } public client_connect(id) { g_WallClimb[id] = true } public fwd_touch(id, world) { if(!is_user_alive(id) || !g_WallClimb[id] || !pev_valid(id)) return FMRES_IGNORED new player = STR_T if (!player) return FMRES_IGNORED new classname[STR_T] pev(world, pev_classname, classname, (STR_T)) if(equal(classname, "worldspawn") || equal(classname, "func_wall") || equal(classname, "func_breakable")) pev(id, pev_origin, g_wallorigin[id]) return FMRES_IGNORED } public wallclimb(id, button) { static Float:origin[3] pev(id, pev_origin, origin) if(get_distance_f(origin, g_wallorigin[id]) > 25.0) return FMRES_IGNORED // if not near wall if(fm_get_entity_flags(id) & FL_ONGROUND) return FMRES_IGNORED if(button & IN_FORWARD) { static Float:velocity[3] velocity_by_aim(id, 120, velocity) fm_set_user_velocity(id, velocity) } else if(button & IN_BACK) { static Float:velocity[3] velocity_by_aim(id, -120, velocity) fm_set_user_velocity(id, velocity) } return FMRES_IGNORED } public fwd_playerprethink(id) { if(!g_WallClimb[id] || !zp_get_user_zombie(id)) return FMRES_IGNORED if(zp_is_survivor_round() && get_pcvar_num(cvar_zp_wallclimb_survivor) == 0) return FMRES_IGNORED if(zp_is_nemesis_round() && get_pcvar_num(cvar_zp_wallclimb_nemesis) == 0) return FMRES_IGNORED new button = fm_get_user_button(id) if((get_pcvar_num(cvar_zp_wallclimb) == 1) && (button & IN_USE) && (zp_get_user_zombie_class(id) == g_zclass_climb)) //Use button = climb wallclimb(id, button) else if((get_pcvar_num(cvar_zp_wallclimb) == 2) && (button & IN_JUMP) && button & IN_DUCK && (zp_get_user_zombie_class(id) == g_zclass_climb)) //Jump + Duck = climb wallclimb(id, button) return FMRES_IGNORED } Nume: Zombie Class: Climb Instalare: 1. Fisierul zp_class_climb.sma il puneti in addons/amxmodx/scripting 2. Fisierul zp_class_climb.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma: zp_class_climb.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg zp_wallclimb 0 = Off / 1 = Țineți USE / 2 = Țineți JUMP și DUCK (Implicit 1) zp_wallclimb_nemesis 0 = Nemesisul poate urca pe pereți. / 1 = Enable (Default 1) zp_wallclimb_survivor 0 = Survivorul poate urca pe pereți. / 1 = Enable (Default 0)
  7. rAsEaL

    [ZP] Dual Infinity

    Descriere: Dual Infinity apesi click dreapta si click stanga in acelasi timp si faci mai mult dmg,bun pentru playeri. Descarcare: LINK RESURSE! #include <amxmodx> #include <engine> #include <fakemeta> #include <fun> #include <hamsandwich> #include <xs> #include <cstrike> #include <zombieplague> #include <fakemeta_util> #include <amxmisc> new g_mode[33] #define BLOOD_SM_NUM 8 #define ENG_NULLENT -1 #define EV_INT_WEAPONKEY EV_INT_impulse #define DINFINITY_WEAPONKEY 901 #define MAX_PLAYERS 32 #define IsValidUser(%1) (1 <= %1 <= g_MaxPlayers) const USE_STOPPED = 0 const OFFSET_ACTIVE_ITEM = 373 const OFFSET_WEAPONOWNER = 41 const OFFSET_LINUX = 5 const OFFSET_LINUX_WEAPONS = 4 #define BLOOD_STREAM_RED 70 #define WEAP_LINUX_XTRA_OFF 4 #define m_fKnown 44 #define m_flNextPrimaryAttack 46 #define m_flTimeWeaponIdle 48 #define m_iClip 51 #define m_fInReload 54 #define PLAYER_LINUX_XTRA_OFF 5 #define m_flNextAttack 83 #define DINFINITY_RELOAD_TIME 4.0 #define DINFINITY_DRAW_TIME 1.2 const PRIMARY_WEAPONS_BIT_SUM = (1<<CSW_USP)|(1<<CSW_DEAGLE)|(1<<CSW_GLOCK18)|(1<<CSW_P228)|(1<<CSW_ELITE)|(1<<CSW_FIVESEVEN) new const WEAPONENTNAMES[][] = { "", "weapon_p228", "", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10", "weapon_aug", "weapon_smokegrenade", "weapon_sg550", "weapon_fiveseven", "weapon_ump45", "weapon_elite", "weapon_galil", "weapon_famas", "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249", "weapon_m3", "weapon_m4a1", "weapon_tmp", "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552", "weapon_elite", "weapon_knife", "weapon_p90" } new const Fire_Sounds[][] = { "weapons/infi-1.wav" } new const GUNSHOT_DECALS[] = { 41, 42, 43, 44, 45 } new DINFINITY_V_MODEL[64] = "models/v_infinity.mdl" new DINFINITY_V_MODEL2[64] = "models/v_infinity_2.mdl" new DINFINITY_P_MODEL[64] = "models/p_infinity.mdl" new DINFINITY_W_MODEL[64] = "models/w_infinity.mdl" new cvar_dmg_dinfinity, g_itemid_dinfinity, cvar_clip_dinfinity, cvar_dinfinity_ammo , cvar_recoil2_vertical , cvar_recoil2_horizontal , cvar_recoil1_vertical , cvar_recoil1_horizontal new g_MaxPlayers, g_orig_event_dinfinity, g_clip_ammo[33] , g_attack2[33] new m_iBlood[2] , oldweap[33] , g_DINFINITY_TmpClip[33] , g_has_dinfinity[33] public plugin_init() { register_plugin("Dual Infinity", "1.0", "--") register_message(get_user_msgid("DeathMsg"), "message_DeathMsg") register_event("CurWeapon","CurrentWeapon","be","1=1") register_forward(FM_CmdStart, "fw_CmdStart") register_forward(FM_SetModel, "fw_SetModel") register_forward(FM_UpdateClientData, "fw_UpdateClientData_Post", 1) register_forward(FM_PlaybackEvent, "fwPlaybackEvent") for (new i = 1; i < sizeof WEAPONENTNAMES; i++) if (WEAPONENTNAMES[i][0]) RegisterHam(Ham_Item_Deploy, WEAPONENTNAMES[i], "fw_Item_Deploy_Post", 1) RegisterHam(Ham_Item_AddToPlayer, "weapon_elite", "fw_DINFINITY_AddToPlayer") RegisterHam(Ham_Use, "func_tank", "fw_UseStationary_Post", 1) RegisterHam(Ham_Use, "func_tankmortar", "fw_UseStationary_Post", 1) RegisterHam(Ham_Use, "func_tankrocket", "fw_UseStationary_Post", 1) RegisterHam(Ham_Use, "func_tanklaser", "fw_UseStationary_Post", 1) RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_elite", "fw_DINFINITY_PrimaryAttack") RegisterHam(Ham_Item_PostFrame, "weapon_elite", "DInfinity_ItemPostFrame"); RegisterHam(Ham_Weapon_Reload, "weapon_elite", "DInfinity_Reload"); RegisterHam(Ham_Weapon_Reload, "weapon_elite", "DInfinity_Reload_Post", 1); RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage") cvar_dmg_dinfinity = register_cvar("zp_dinfinity_dmg", "150") cvar_clip_dinfinity = register_cvar("zp_dinfinity_clip", "100") cvar_dinfinity_ammo = register_cvar("zp_dinfinity_ammo", "120") cvar_recoil2_vertical = register_cvar("zp_dinfinity_verticalrecoilat2", "3") cvar_recoil2_horizontal = register_cvar("zp_dinfinity_horizontalrecoilat2", "300") cvar_recoil1_vertical = register_cvar("zp_dinfinity_verticalrecoilat1", "200") cvar_recoil1_horizontal = register_cvar("zp_dinfinity_horizontalrecoilat1", "50") g_itemid_dinfinity = zp_register_extra_item("[\rPistols \wDinfinity\r]", 30, ZP_TEAM_HUMAN) g_MaxPlayers = get_maxplayers() set_task (0.1,"fire_id",_,_,_,"b"); } public plugin_natives() { register_native("give_dinfinity", "native_give_dinfinity", 1) } public native_give_dinfinity(id) { g_has_dinfinity[id] = true; } public plugin_precache() { precache_model(DINFINITY_V_MODEL) precache_model(DINFINITY_P_MODEL) precache_model(DINFINITY_V_MODEL2) precache_model(DINFINITY_W_MODEL) precache_sound(Fire_Sounds[0]) precache_sound("weapons/infi_clipin.wav") precache_sound("weapons/infi_clipout.wav") precache_sound("weapons/infi_clipon.wav") precache_sound("weapons/infi_draw.wav") m_iBlood[0] = precache_model("sprites/blood.spr") m_iBlood[1] = precache_model("sprites/bloodspray.spr") precache_model("sprites/640hud5.spr") register_forward(FM_PrecacheEvent, "fwPrecacheEvent_Post", 1) } public fwPrecacheEvent_Post(type, const name[]) { if (equal("events/elite_right.sc", name) || equal("events/elite_left.sc", name) ) { g_orig_event_dinfinity = get_orig_retval() return FMRES_HANDLED } return FMRES_IGNORED } public fw_SetModel(entity, model[]) { if(!is_valid_ent(entity)) return FMRES_IGNORED; static szClassName[33] entity_get_string(entity, EV_SZ_classname, szClassName, charsmax(szClassName)) if(!equal(szClassName, "weaponbox")) return FMRES_IGNORED; static iOwner iOwner = entity_get_edict(entity, EV_ENT_owner) if(equal(model, "models/w_elite.mdl")) { static iStoredSVDID iStoredSVDID = find_ent_by_owner(ENG_NULLENT, "weapon_elite", entity) if(!is_valid_ent(iStoredSVDID)) return FMRES_IGNORED; if(g_has_dinfinity[iOwner]) { entity_set_int(iStoredSVDID, EV_INT_WEAPONKEY, DINFINITY_WEAPONKEY) g_has_dinfinity[iOwner] = false entity_set_model(entity, DINFINITY_W_MODEL) return FMRES_SUPERCEDE; } } return FMRES_IGNORED; } public give_dinfinity(id) { drop_weapons(id, 1); new iWep2 = give_item(id,"weapon_elite") if( iWep2 > 0 ) { cs_set_weapon_ammo(iWep2, get_pcvar_num(cvar_clip_dinfinity)) cs_set_user_bpammo (id, CSW_ELITE, get_pcvar_num(cvar_dinfinity_ammo)) } if(get_user_weapon(id) == CSW_ELITE) { replace_weapon_models(id, CSW_ELITE) UTIL_PlayWeaponAnimation(id, 16) set_pdata_float(id, m_flNextAttack, DINFINITY_DRAW_TIME , PLAYER_LINUX_XTRA_OFF) } g_has_dinfinity[id] = true; } public zp_extra_item_selected(id, itemid) { if(itemid != g_itemid_dinfinity) return; give_dinfinity(id) } public fw_CmdStart(id, uc_handle, seed) { if(!is_user_alive(id)) return PLUGIN_HANDLED if(!g_has_dinfinity[id]) return PLUGIN_HANDLED new szClip, szAmmo new szWeapID = get_user_weapon(id, szClip, szAmmo) if(szWeapID != CSW_ELITE) return PLUGIN_HANDLED if(szClip <= 0) return PLUGIN_HANDLED if(!(get_uc(uc_handle, UC_Buttons) & IN_ATTACK2)) g_attack2[id] = 0 if((get_uc(uc_handle, UC_Buttons) & IN_ATTACK2)) g_attack2[id] = 1 return PLUGIN_HANDLED } public fire_id() { for(new id;id <= 32;id++) { if(!is_user_alive(id)) continue; if(zp_get_user_zombie(id)) continue; new szClip, szAmmo new szWeapID = get_user_weapon(id, szClip, szAmmo) if(szWeapID != CSW_ELITE) continue; if(!g_attack2[id]) continue; if(szClip <= 0) continue; g_mode[id] = 1 replace_weapon_models(id,CSW_ELITE) if(szClip > 1) { UTIL_PlayWeaponAnimation(id, random_num(2,12)) make_blood_and_bulletholes(id) new ak = find_ent_by_owner ( -1, "weapon_elite", id ) set_pdata_int ( ak, 51, szClip - 1, 4 ) make_punchangle(id) }else if(szClip == 1) { new num num = random_num(1,2) if(num == 1) UTIL_PlayWeaponAnimation(id, 7) if(num == 2) UTIL_PlayWeaponAnimation(id, 13) make_blood_and_bulletholes(id) new ak = find_ent_by_owner ( -1, "weapon_elite", id ) set_pdata_int ( ak, 51, szClip - 1, 4 ) make_punchangle(id) }else if(szClip == 0 ) { if(szAmmo > 0) UTIL_PlayWeaponAnimation(id, 14) } } } public fw_DINFINITY_AddToPlayer(DINFINITY, id) { if(!is_valid_ent(DINFINITY) || !is_user_connected(id)) return HAM_IGNORED; if(entity_get_int(DINFINITY, EV_INT_WEAPONKEY) == DINFINITY_WEAPONKEY) { g_has_dinfinity[id] = true entity_set_int(DINFINITY, EV_INT_WEAPONKEY, 0) return HAM_HANDLED; } return HAM_IGNORED; } public fw_UseStationary_Post(entity, caller, activator, use_type) { if (use_type == USE_STOPPED && is_user_connected(caller)) replace_weapon_models(caller, get_user_weapon(caller)) } public fw_Item_Deploy_Post(weapon_ent) { static owner owner = fm_cs_get_weapon_ent_owner(weapon_ent) static weaponid weaponid = cs_get_weapon_id(weapon_ent) replace_weapon_models(owner, weaponid) } replace_weapon_models(id, weaponid) { if(!is_user_alive(id)) return; if(zp_get_user_zombie(id)) return; if(!g_has_dinfinity[id]) return; if(weaponid == CSW_ELITE) { if(g_mode[id] == 0) { set_pev(id, pev_viewmodel2, DINFINITY_V_MODEL) set_pev(id, pev_weaponmodel2, DINFINITY_P_MODEL) }else{ set_pev(id, pev_viewmodel2, DINFINITY_V_MODEL2) set_pev(id, pev_weaponmodel2, DINFINITY_P_MODEL) } if(oldweap[id] != CSW_ELITE) { UTIL_PlayWeaponAnimation(id, 16) set_pdata_float(id, m_flNextAttack, DINFINITY_DRAW_TIME , PLAYER_LINUX_XTRA_OFF) } } if(weaponid != CSW_ELITE) g_mode[id] = 0 oldweap[id] = weaponid } public make_punchangle(id) { if(!is_user_alive(id)) return; if(zp_get_user_zombie(id)) return; if(!g_has_dinfinity[id]) return; if(g_mode[id] == 0) { static Float:punchAngle[3]; punchAngle[0] = float(random_num(-1 * get_pcvar_num(cvar_recoil1_vertical), get_pcvar_num(cvar_recoil1_vertical))) / 100.0; punchAngle[1] = float(random_num(-1 * get_pcvar_num(cvar_recoil1_horizontal), get_pcvar_num(cvar_recoil1_horizontal))) / 100.0; punchAngle[2] = 0.0; set_pev(id, pev_punchangle, punchAngle); }else{ static Float:punchAngle[3]; punchAngle[0] = float(random_num(-1 * get_pcvar_num(cvar_recoil2_vertical), get_pcvar_num(cvar_recoil2_vertical))) / 100.0; punchAngle[1] = float(random_num(-1 * get_pcvar_num(cvar_recoil2_horizontal), get_pcvar_num(cvar_recoil2_horizontal))) / 100.0; punchAngle[2] = 0.0; set_pev(id, pev_punchangle, punchAngle); } } public fw_UpdateClientData_Post(Player, SendWeapons, CD_Handle) { if(!is_user_alive(Player) || (get_user_weapon(Player) != CSW_ELITE) || !g_has_dinfinity[Player]) return FMRES_IGNORED set_cd(CD_Handle, CD_flNextAttack, halflife_time () + 0.001) return FMRES_HANDLED } public fw_DINFINITY_PrimaryAttack(Weapon) { new Player = get_pdata_cbase(Weapon, 41, 4) if (!g_has_dinfinity[Player]) return HAM_IGNORED; if (!is_user_alive(Player) || zp_get_user_zombie(Player)) return HAM_IGNORED; new szClip, szAmmo new szWeapID = get_user_weapon(Player, szClip, szAmmo) if(szClip <= 0) return HAM_IGNORED; new Float:flNextAttack = get_pdata_float(Player, m_flNextAttack, PLAYER_LINUX_XTRA_OFF) if(flNextAttack > 0.0) return PLUGIN_HANDLED if(get_user_weapon(Player) == CSW_ELITE) { g_clip_ammo[Player] = cs_get_weapon_ammo(Weapon) if(szWeapID == CSW_ELITE) { remove_task(Player) g_mode[Player] = 0 replace_weapon_models(Player,CSW_ELITE) new num num = random_num(1,2) if(num == 1) UTIL_PlayWeaponAnimation(Player, random_num(2,6)) if(num == 2) UTIL_PlayWeaponAnimation(Player, random_num(8,12)) make_punchangle(Player) make_blood_and_bulletholes(Player) set_pdata_float(Player, m_flNextAttack, 0.2, PLAYER_LINUX_XTRA_OFF) new ak = find_ent_by_owner ( -1, "weapon_elite", Player ) set_pdata_int ( ak, 51, szClip - 1, 4 ) } } return HAM_SUPERCEDE; } public fwPlaybackEvent(flags, invoker, eventid, Float:delay, Float:origin[3], Float:angles[3], Float:fparam1, Float:fparam2, iParam1, iParam2, bParam1, bParam2) { if ((eventid != g_orig_event_dinfinity)) return FMRES_IGNORED if (!(1 <= invoker <= g_MaxPlayers)) return FMRES_IGNORED playback_event(flags | FEV_HOSTONLY, invoker, eventid, delay, origin, angles, fparam1, fparam2, iParam1, iParam2, bParam1, bParam2) return FMRES_SUPERCEDE } public fw_TakeDamage(victim, inflictor, attacker, Float:damage) { if (victim != attacker && is_user_connected(attacker)) { if(get_user_weapon(attacker) == CSW_ELITE) { if(g_has_dinfinity[attacker]) SetHamParamFloat(4, get_pcvar_float(cvar_dmg_dinfinity)) } } } public message_DeathMsg(msg_id, msg_dest, id) { static szTruncatedWeapon[33], iAttacker, iVictim get_msg_arg_string(4, szTruncatedWeapon, charsmax(szTruncatedWeapon)) iAttacker = get_msg_arg_int(1) iVictim = get_msg_arg_int(2) if(!is_user_connected(iAttacker) || iAttacker == iVictim) return PLUGIN_CONTINUE set_task(1.0,"zero_values",iVictim) if(equal(szTruncatedWeapon, "elite") && get_user_weapon(iAttacker) == CSW_ELITE) { if(g_has_dinfinity[iAttacker]) set_msg_arg_string(4, "elite") } return PLUGIN_CONTINUE } public CurrentWeapon(id) replace_weapon_models(id, read_data(2)) public zp_user_infected_post(id) zero_values(id) public client_connect(id) zero_values(id) public client_disconnect(id) zero_values(id) stock fm_cs_get_current_weapon_ent(id) { return get_pdata_cbase(id, OFFSET_ACTIVE_ITEM, OFFSET_LINUX); } stock fm_cs_get_weapon_ent_owner(ent) { return get_pdata_cbase(ent, OFFSET_WEAPONOWNER, OFFSET_LINUX_WEAPONS); } stock UTIL_PlayWeaponAnimation(const Player, const Sequence) { set_pev(Player, pev_weaponanim, Sequence) message_begin(MSG_ONE_UNRELIABLE, SVC_WEAPONANIM, .player = Player) write_byte(Sequence) write_byte(pev(Player, pev_body)) message_end() } stock make_blood_and_bulletholes(id) { new aimOrigin[3], target, body get_user_origin(id, aimOrigin, 3) get_user_aiming(id, target, body) engfunc(EngFunc_EmitSound, id, CHAN_WEAPON, Fire_Sounds[0], VOL_NORM, ATTN_NORM, 0, PITCH_NORM); static Float:plrViewAngles[3], Float:VecEnd[3], Float:VecDir[3], Float:PlrOrigin[3]; pev(id, pev_v_angle, plrViewAngles); static Float:VecSrc[3], Float:VecDst[3]; //VecSrc = pev->origin + pev->view_ofs; pev(id, pev_origin, PlrOrigin) pev(id, pev_view_ofs, VecSrc) xs_vec_add(VecSrc, PlrOrigin, VecSrc) //VecDst = VecDir * 8192.0; angle_vector(plrViewAngles, ANGLEVECTOR_FORWARD, VecDir); xs_vec_mul_scalar(VecDir, 8192.0, VecDst); xs_vec_add(VecDst, VecSrc, VecDst); new hTrace = create_tr2() engfunc(EngFunc_TraceLine, VecSrc, VecDst, 0, id, hTrace) new hitEnt = get_tr2(hTrace, TR_pHit); get_tr2(hTrace, TR_vecEndPos, VecEnd); if(is_user_alive(target) && zp_get_user_zombie(target)) { if (pev_valid(hitEnt)) { new Float:takeDamage; pev(hitEnt, pev_takedamage, takeDamage); new Float:dmg = get_pcvar_float(cvar_dmg_dinfinity); new hitGroup = get_tr2(hTrace, TR_iHitgroup); switch (hitGroup) { case HIT_HEAD: { dmg *= 3.0; } case HIT_LEFTARM: { dmg *= 0.9; } case HIT_RIGHTARM: { dmg *= 0.9; } case HIT_LEFTLEG: { dmg *= 0.9; } case HIT_RIGHTLEG: { dmg *= 0.9; } } if (is_user_connected(hitEnt) && zp_get_user_zombie(hitEnt)) { ExecuteHamB(Ham_TakeDamage, hitEnt, id, id, dmg, DMG_BULLET | DMG_NEVERGIB); ExecuteHamB(Ham_TraceBleed, hitEnt, dmg, VecDir, hTrace, DMG_BULLET | DMG_NEVERGIB); make_blood(VecEnd, dmg, hitEnt); } } } else if(!is_user_connected(target)) { if(target) { message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_DECAL) write_coord(aimOrigin[0]) write_coord(aimOrigin[1]) write_coord(aimOrigin[2]) write_byte(GUNSHOT_DECALS[random_num ( 0, sizeof GUNSHOT_DECALS -1 ) ] ) write_short(target) message_end() } else { message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_WORLDDECAL) write_coord(aimOrigin[0]) write_coord(aimOrigin[1]) write_coord(aimOrigin[2]) write_byte(GUNSHOT_DECALS[random_num ( 0, sizeof GUNSHOT_DECALS -1 ) ] ) message_end() } message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(TE_GUNSHOTDECAL) write_coord(aimOrigin[0]) write_coord(aimOrigin[1]) write_coord(aimOrigin[2]) write_short(id) write_byte(GUNSHOT_DECALS[random_num ( 0, sizeof GUNSHOT_DECALS -1 ) ] ) message_end() } } public DInfinity_ItemPostFrame(weapon_entity) { new id = pev(weapon_entity, pev_owner) if (!is_user_connected(id)) return HAM_IGNORED; if (!g_has_dinfinity[id]) return HAM_IGNORED; new Float:flNextAttack = get_pdata_float(id, m_flNextAttack, PLAYER_LINUX_XTRA_OFF) new iBpAmmo = cs_get_user_bpammo(id, CSW_ELITE); new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF) new fInReload = get_pdata_int(weapon_entity, m_fInReload, WEAP_LINUX_XTRA_OFF) if( fInReload && flNextAttack <= 0.0 ) { new j = min(get_pcvar_num(cvar_clip_dinfinity) - iClip, iBpAmmo) set_pdata_int(weapon_entity, m_iClip, iClip + j, WEAP_LINUX_XTRA_OFF) cs_set_user_bpammo(id, CSW_ELITE, iBpAmmo-j); set_pdata_int(weapon_entity, m_fInReload, 0, WEAP_LINUX_XTRA_OFF) fInReload = 0 } return HAM_IGNORED; } public DInfinity_Reload(weapon_entity) { new id = pev(weapon_entity, pev_owner) if (!is_user_connected(id)) return HAM_IGNORED; if (!g_has_dinfinity[id]) return HAM_IGNORED; g_DINFINITY_TmpClip[id] = -1; new iBpAmmo = cs_get_user_bpammo(id, CSW_ELITE); new iClip = get_pdata_int(weapon_entity, m_iClip, WEAP_LINUX_XTRA_OFF) if (iBpAmmo <= 0) return HAM_SUPERCEDE; if (iClip >= get_pcvar_num(cvar_clip_dinfinity)) return HAM_SUPERCEDE; g_DINFINITY_TmpClip[id] = iClip; return HAM_IGNORED; } public DInfinity_Reload_Post(weapon_entity) { new id = pev(weapon_entity, pev_owner) if (!is_user_connected(id)) return HAM_IGNORED; if (!g_has_dinfinity[id]) return HAM_IGNORED; if (g_DINFINITY_TmpClip[id] == -1) return HAM_IGNORED; new iBpAmmo = cs_get_user_bpammo(id, CSW_ELITE); if (iBpAmmo <= 0) return HAM_IGNORED; set_pdata_int(weapon_entity, m_iClip, g_DINFINITY_TmpClip[id], WEAP_LINUX_XTRA_OFF) set_pdata_float(weapon_entity, m_flTimeWeaponIdle, DINFINITY_RELOAD_TIME, WEAP_LINUX_XTRA_OFF) set_pdata_float(id, m_flNextAttack, DINFINITY_RELOAD_TIME, PLAYER_LINUX_XTRA_OFF) set_pdata_int(weapon_entity, m_fInReload, 1, WEAP_LINUX_XTRA_OFF) // relaod animation UTIL_PlayWeaponAnimation(id, 14) remove_task(id) g_mode[id] = 0 return HAM_IGNORED; } public get_origin_int(index, origin[3]) { new Float:FVec[3] pev(index,pev_origin,FVec) origin[0] = floatround(FVec[0]) origin[1] = floatround(FVec[1]) origin[2] = floatround(FVec[2]) return 1 } public zero_values(id) { g_attack2[id] = 0 g_has_dinfinity[id] = false } stock make_blood(const Float:vTraceEnd[3], Float:Damage, hitEnt) { new bloodColor = ExecuteHam(Ham_BloodColor, hitEnt); if (bloodColor == -1) return; new amount = floatround(Damage); amount *= 2; //according to HLSDK message_begin(MSG_BROADCAST, SVC_TEMPENTITY); write_byte(TE_BLOODSPRITE); write_coord(floatround(vTraceEnd[0])); write_coord(floatround(vTraceEnd[1])); write_coord(floatround(vTraceEnd[2])); write_short(m_iBlood[1]); write_short(m_iBlood[0]); write_byte(bloodColor); write_byte(min(max(3, amount/10), 16)); message_end(); } stock drop_weapons(id, dropwhat) { static weapons[32], num, i, weaponid num = 0 get_user_weapons(id, weapons, num) for (i = 0; i < num; i++) { weaponid = weapons[i] if (dropwhat == 1 && ((1<<weaponid) & PRIMARY_WEAPONS_BIT_SUM)) { static wname[32] get_weaponname(weaponid, wname, sizeof wname - 1) engclient_cmd(id, "drop", wname) } } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1049\\ f0\\ fs16 \n\\ par } */ Nume: [ZP] Dual Infinity Instalare: 1. Fisierul zp_extra_dualinfinity_2.sma il puneti in addons/amxmodx/scripting 2. Fisierul zp_extra_dualinfinity_2.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma: zp_extra_dualinfinity_2.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg zp_dinfinity_dmg 150 (cat dmg da arma) zp_dinfinity_clip 100 (cate gloante are arma) zp_dinfinity_ammo 120 (cate incarcatoare are arma) zp_dinfinity_verticalrecoilat2 3 zp_dinfinity_horizontalrecoilat2 300 zp_dinfinity_verticalrecoilat1 200 zp_dinfinity_horizontalrecoilat1 50
  8. rAsEaL

    Simple Parachute (PARA.SMA)

    Descriere: acest plugin va oferă o parașută fără model, fără complicații, nimic mai simplu Descarcare: Link! Nume: PARA.SMA Versiune: 1.x Instalare: 1. Fisierul para.sma il puneti in addons/amxmodx/scripting 2. Fisierul para.amxx il puneti in addons/amxmodx/plugins 3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma: para.amxx 4. Alti pasi necesari.... Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):nu are Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):nu are Comenzi publice (se tasteaza in joc prin apasarea tastei Y):nu are Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini): - CStrike - Fun - alte module necesare..
  9. rAsEaL

    [Map] css_snow2

    Autor: Tatu Eugen Jucatori: 32 Download: SourceForge -- GameBanana Poze:
  10. rAsEaL

    [CS] _Cerere Admin EnVyUs

    Respins. Ai un limbaj colorat la varsta ta, cand o sa ai vorbele la tine sa sti sa vorbesti, poti sa revi cu o cerere, asta fiind peste minim 2 saptamani. Closed !
  11. rAsEaL

    [ACL] Cerere unban [A]

    vezi acum, poti intra?
  12. rAsEaL

    [ACL] Cerere unban [A]

    eu ti-am zis sa iti verifici Sa vezi daca nu ai luat ban pe steam.
  13. rAsEaL

    [ACL] Cerere unban [A]

    Unbanned! Closed !
  14. rAsEaL

    [ACL] Cerere unban londly [A]

    Done. You have unbanned !
×
×
  • Create New...