Why would this happen?
Why would this happen?
Look in pic trying to figure it out
If i add limits this happens if i have no lmits it displays normal
If i add limits this happens if i have no lmits it displays normal
What the problem, the missing bracket or the double of 30 % OFF?
He who fails to plan is planning to fail
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Most of his problems are because of de_dust map.
, NO bro map not the issue.
I reviewed the photo again, seems there is line break missing ^n. Post the code that cuases this i'll test it.
He who fails to plan is planning to fail
What code you want me to post lol the item_limit?
- #include <zombie_escape>
- // Variables
- new g_iLimitCounter[MAX_PLAYERS+1][MAX_EXTRA_ITEMS],
- g_iMaxClients
- public plugin_init()
- {
- register_plugin("[ZE] Items Manager: Limit", ZE_VERSION, AUTHORS)
- // Static Values
- g_iMaxClients = get_member_game(m_nMaxPlayers)
- }
- public ze_select_item_pre(id, itemid, ignorecost)
- {
- new iLimit = ze_get_item_limit(itemid)
- if (iLimit > 0)
- {
- // Format extra text to be added beside our item
- new szText[32]
- formatex(szText, charsmax(szText), " %L", id, "ITEM_LIMIT", g_iLimitCounter[id][itemid], iLimit)
- // Add the text
- ze_add_text_to_item(szText)
- // Check if reached max or not?
- if (g_iLimitCounter[id][itemid] >= iLimit)
- {
- return ZE_ITEM_UNAVAILABLE
- }
- }
- return ZE_ITEM_AVAILABLE
- }
- public ze_select_item_post(id, itemid, ignorecost)
- {
- if (ignorecost)
- return
- // Increase Counter by 1
- g_iLimitCounter[id][itemid]++
- }
- public ze_game_started()
- {
- // Rest our counter to zero
- for (new j = 1; j <= g_iMaxClients; j++)
- {
- for (new i = 0; i < MAX_EXTRA_ITEMS; i++)
- {
- g_iLimitCounter[j][i] = 0
- }
- }
- }
I'm telling you to post an item which caused this for you. I need to know how can i reproduce this bug so if it's bug in Mod to be fixed.
He who fails to plan is planning to fail
oh
- #include < zombie_escape >
- #include < fakemeta >
- #define PLUGIN "[ZP] Extra Item: Jump Bomb"
- #define VERSION "1.0"
- #define AUTHOR "Opo4uMapy"
- native cs_get_user_bpammo(index, weapon)
- native cs_set_user_bpammo(index, weapon, amount)
- #define JUMPBOMB_ID 55556
- /////////////////////////////////////Cvars/////////////////////////////////////
- #define RADIUS 300.0 // Radius of explosion
- #define JUMP_DAMAGE 200 // Damage
- #define JUMP_EXP 1000.0 // Grenade recoil force
- #define GRENADE_ICON //Иконка с лева. Что бы отключить поставьте //
- #define BUY_GRENADE_MSG "[ZP] You bought a jumping grenade"
- #define MAX_GRENADE_MSG "[ZP] You are at the max!"
- #define TRAIL //Трайл за гранатой. Что бы отключить закоментируем ( //#define TRAIL )
- /////////////////////////////////////WeaponList/////////////////////////////////////
- #define WEAPONLIST // WeaponList. Что бы отключить закоментируем ( //#define WEAPONLIST )
- #define WEAPON_DEFAULT "weapon_smokegrenade" //Weapon под которую сделана граната
- #define DEFAULT_CSW CSW_SMOKEGRENADE //CSW под которую сделана граната
- #define WEAPON_NEW "weapon_zombj1_sisa" //Название WeaponList'a новой гранаты
- new const WeaponList_Sprite[][] =
- {
- "sprites/weapon_zombj1_sisa.txt",
- "sprites/640hud61.spr",
- "sprites/640hud7x.spr"
- }
- enum
- {
- prim_ammoid = 13,
- prim_ammomaxamount = 1,
- sec_ammoid = -1,
- sec_ammomaxamount = -1,
- slotid = 3,
- number_in_slot = 3,
- weaponid = 9,
- flags = 24
- }
- ////////////////////////////////////////////////////////////////////////////////////
- // Модели гранаты
- new const BOMB_MODEL[][] =
- {
- "models/v_zombibomb.mdl",
- "models/p_zombibomb.mdl",
- "models/w_zombibomb.mdl"
- }
- //Звуки покупки
- #define g_SoundGrenadeBuy "items/gunpickup2.wav"
- #define g_SoundAmmoPurchase "items/9mmclip1.wav"
- //Звук взрыва
- #define g_SoundBombExplode "nst_zombie/zombi_bomb_exp.wav"
- //Не изменять! Звуки прописаны в модели.
- new const frogbomb_sound[][] =
- {
- "nst_zombie/zombi_bomb_pull_1.wav",
- "nst_zombie/zombi_bomb_deploy.wav",
- "nst_zombie/zombi_bomb_throw.wav"
- }
- new const frogbomb_sound_idle[][] =
- {
- "nst_zombie/zombi_bomb_idle_1.wav",
- "nst_zombie/zombi_bomb_idle_2.wav",
- "nst_zombie/zombi_bomb_idle_3.wav",
- "nst_zombie/zombi_bomb_idle_4.wav"
- }
- new g_itemid
- new g_JumpGrenadeCount[33], g_iExplo
- new g_trailSpr
- new grenade_icons[33][32]
- public plugin_precache()
- {
- static i
- for(i = 0; i < sizeof BOMB_MODEL; i++)
- precache_model(BOMB_MODEL[i])
- for(i = 0; i < sizeof frogbomb_sound; i++)
- precache_sound(frogbomb_sound[i])
- for(i = 0; i < sizeof frogbomb_sound_idle; i++)
- precache_sound(frogbomb_sound_idle[i])
- precache_sound(g_SoundGrenadeBuy)
- precache_sound(g_SoundAmmoPurchase)
- precache_sound(g_SoundBombExplode)
- register_clcmd(WEAPON_NEW, "hook")
- for(i = 0; i < sizeof WeaponList_Sprite; i++)
- precache_generic(WeaponList_Sprite[i])
- g_iExplo = precache_model("sprites/zombiebomb_exp.spr")
- g_trailSpr = precache_model("sprites/laserbeam.spr")
- }
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR)
- //Ham
- RegisterHam(Ham_Think, "grenade", "fw_ThinkGrenade")
- RegisterHam(Ham_Item_Deploy, WEAPON_DEFAULT, "DeployPost", 1)
- //Forward
- register_forward(FM_SetModel, "fw_SetModel")
- //Event
- register_event("DeathMsg", "DeathMsg", "a")
- register_event("CurWeapon", "grenade_icon", "be", "1=1")
- //Extra Item
- g_itemid = ze_register_item("Jump Grenade", 100, 0)
- }
- public hook(id)
- {
- if(!is_user_connected(id))
- return PLUGIN_CONTINUE
- engclient_cmd(id, WEAPON_DEFAULT)
- return PLUGIN_HANDLED
- }
- public ze_select_item_pre(id, itemid)
- {
- // Return Available and we will block it in Post, So it dosen't affect other plugins
- if (itemid != g_itemid)
- return ZE_ITEM_AVAILABLE
- // Available for Zombies only, So don't show it for Humans
- if (!ze_is_user_zombie(id))
- return ZE_ITEM_DONT_SHOW
- return ZE_ITEM_AVAILABLE
- }
- public ze_select_item_post(id, itemid)
- {
- if(itemid == g_itemid)
- {
- new Ammo = cs_get_user_bpammo(id, DEFAULT_CSW)
- if(g_JumpGrenadeCount[id] >= 1)
- {
- cs_set_user_bpammo(id, DEFAULT_CSW, Ammo + 1)
- emit_sound(id, CHAN_ITEM, g_SoundAmmoPurchase, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
- g_JumpGrenadeCount[id]++
- }
- else
- {
- fm_give_item(id, WEAPON_DEFAULT)
- client_print(id, print_chat, "%s", BUY_GRENADE_MSG)
- emit_sound(id, CHAN_ITEM, g_SoundGrenadeBuy, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
- g_JumpGrenadeCount[id] = 1
- }
- AmmoPickup(id)
- WeaponList(id, 1)
- }
- return PLUGIN_HANDLED
- }
- public ze_user_humanized(id)
- {
- g_JumpGrenadeCount[id] = 0
- WeaponList(id, 0)
- }
- public DeployPost(entity)
- {
- static id
- id = get_pdata_cbase(entity, 41, 4)
- if(!is_user_alive(id) || !ze_is_user_zombie(id))
- return PLUGIN_CONTINUE
- set_pev(id, pev_viewmodel2, BOMB_MODEL[0])
- set_pev(id, pev_weaponmodel2, BOMB_MODEL[1])
- return PLUGIN_CONTINUE
- }
- public fw_SetModel(Entity, const Model[])
- {
- if (Entity < 0)
- return FMRES_IGNORED
- if (pev(Entity, pev_dmgtime) == 0.0)
- return FMRES_IGNORED
- new iOwner = pev(Entity, pev_owner)
- if(!ze_is_user_zombie(iOwner))
- return FMRES_IGNORED
- if(g_JumpGrenadeCount[iOwner] >= 1 && equal(Model[7], "w_sm", 4))
- {
- g_JumpGrenadeCount[iOwner]--
- set_pev(Entity, pev_flTimeStepSound, JUMPBOMB_ID)
- set_pev(Entity, pev_body, 23)
- fm_set_rendering(Entity, kRenderFxGlowShell, 0, 255, 0, kRenderNormal, 16)
- message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
- write_byte(TE_BEAMFOLLOW)
- write_short(Entity) // entity
- write_short(g_trailSpr) // sprite
- write_byte(2) // life
- write_byte(5) // width
- write_byte(0) // r
- write_byte(200) // g
- write_byte(0) // b
- write_byte(200) // brightness
- message_end()
- engfunc(EngFunc_SetModel, Entity, BOMB_MODEL[2])
- return FMRES_SUPERCEDE
- }
- return FMRES_IGNORED
- }
- public fw_ThinkGrenade(Entity)
- {
- if(!pev_valid(Entity))
- return HAM_IGNORED
- static Float:dmg_time
- pev(Entity, pev_dmgtime, dmg_time)
- if(dmg_time > get_gametime())
- return HAM_IGNORED
- if(pev(Entity, pev_flTimeStepSound) == JUMPBOMB_ID)
- {
- JumpBombExplode(Entity)
- return HAM_SUPERCEDE
- }
- return HAM_IGNORED
- }
- public JumpBombExplode(Entity)
- {
- if(Entity < 0)
- return
- static Float:Origin[3]
- pev(Entity, pev_origin, Origin)
- engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, Origin, 0)
- write_byte(TE_SPRITE)
- engfunc(EngFunc_WriteCoord, Origin[0])
- engfunc(EngFunc_WriteCoord, Origin[1])
- engfunc(EngFunc_WriteCoord, Origin[2] + 45.0)
- write_short(g_iExplo)
- write_byte(35)
- write_byte(186)
- message_end()
- emit_sound(Entity, CHAN_WEAPON, g_SoundBombExplode, VOL_NORM, ATTN_NORM, 0, PITCH_NORM)
- for(new victim = 1; victim <= get_maxplayers(); victim++)
- {
- if (!is_user_alive(victim))
- continue
- new Float:VictimOrigin[3]
- pev(victim, pev_origin, VictimOrigin)
- new Float:Distance = get_distance_f(Origin, VictimOrigin)
- if(Distance <= RADIUS)
- {
- static Float:NewSpeed
- NewSpeed = JUMP_EXP * (1.0 - (Distance / RADIUS))
- static Float:Velocity[3]
- get_speed_vector(Origin, VictimOrigin, NewSpeed, Velocity)
- set_pev(victim, pev_velocity, Velocity)
- message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("ScreenShake"), _, victim)
- write_short(1<<12 * 10)
- write_short(1<<12 * 10)
- write_short(1<<12 * 10)
- message_end()
- if(ze_is_user_zombie(victim))
- set_user_takedamage(victim, JUMP_DAMAGE)
- }
- }
- engfunc(EngFunc_RemoveEntity, Entity)
- }
- public grenade_icon(id)
- {
- remove_grenade_icon(id)
- if(is_user_bot(id))
- return
- static igrenade, grenade_sprite[16], grenade_color[3]
- igrenade = get_user_weapon(id)
- switch(igrenade)
- {
- case DEFAULT_CSW:
- {
- if(!is_user_alive(id) || ze_is_user_zombie(id))
- {
- grenade_sprite = "dmg_gas"
- grenade_color = {255, 165, 0}
- }
- else
- {
- grenade_sprite = ""
- grenade_color = {0, 0, 0}
- }
- }
- default: return
- }
- grenade_icons[id] = grenade_sprite
- message_begin(MSG_ONE, get_user_msgid("StatusIcon"),{0, 0, 0}, id)
- write_byte(1)
- write_string(grenade_icons[id])
- write_byte(grenade_color[0])
- write_byte(grenade_color[1])
- write_byte(grenade_color[2])
- message_end()
- return
- }
- public ze_roundend()
- {
- for (new id = 1; id <= get_member_game(m_nMaxPlayers); id++)
- {
- if(!is_user_alive(id) || !ze_is_user_zombie(id))
- continue
- ham_strip_weapon(id, WEAPON_DEFAULT)
- g_JumpGrenadeCount[id] = 0
- }
- }
- public DeathMsg()
- {
- new attacker = read_data(1)
- new victim = read_data(2)
- if(!is_user_connected(attacker))
- return HAM_IGNORED
- if(victim == attacker || !victim)
- return HAM_IGNORED
- if(!ze_is_user_zombie(victim))
- return HAM_IGNORED
- remove_grenade_icon(victim)
- WeaponList(victim, 0)
- g_JumpGrenadeCount[victim] = 0
- return HAM_HANDLED
- }
- public client_connect(id) g_JumpGrenadeCount[id] = 0
- WeaponList(index, mode = 0)
- {
- if (!is_user_connected(index))
- return
- message_begin(MSG_ONE, get_user_msgid("WeaponList"), {0, 0, 0}, index)
- write_string(mode ? WEAPON_NEW : WEAPON_DEFAULT)
- write_byte(prim_ammoid)
- write_byte(prim_ammomaxamount)
- write_byte(sec_ammoid)
- write_byte(sec_ammomaxamount)
- write_byte(slotid)
- write_byte(number_in_slot)
- write_byte(weaponid)
- write_byte(flags)
- message_end()
- }
- static remove_grenade_icon(index)
- {
- message_begin(MSG_ONE, get_user_msgid("StatusIcon"), {0, 0, 0}, index)
- write_byte(0)
- write_string(grenade_icons[index])
- message_end()
- }
- stock set_user_takedamage(index, damage)
- {
- if(!is_user_alive(index))
- return
- new vec[3]
- FVecIVec(get_target_origin_f(index), vec)
- message_begin(MSG_ONE, get_user_msgid("Damage"), _, index)
- write_byte(0)
- write_byte(damage)
- write_long(DMG_CRUSH)
- write_coord(vec[0])
- write_coord(vec[1])
- write_coord(vec[2])
- message_end()
- if(pev(index, pev_health) - 20.0 <= 0)
- ExecuteHamB(Ham_Killed, index, index, 1)
- else ExecuteHamB(Ham_TakeDamage, index, 0, index, float(damage), DMG_BLAST)
- }
- stock AmmoPickup(index)
- {
- message_begin(MSG_ONE, get_user_msgid("AmmoPickup"), _, index)
- write_byte(13)
- write_byte(1)
- message_end()
- }
- stock Float:get_target_origin_f(index)
- {
- new Float:orig[3]
- pev(index, pev_origin, orig)
- if(index > get_maxplayers())
- {
- new Float:mins[3], Float:maxs[3]
- pev(index, pev_mins, mins)
- pev(index, pev_maxs, maxs)
- if(!mins[2]) orig[2] += maxs[2] / 2
- }
- return orig
- }
- stock get_speed_vector(const Float:origin1[3],const Float:origin2[3],Float:speed, Float:new_velocity[3])
- {
- new_velocity[0] = origin2[0] - origin1[0]
- new_velocity[1] = origin2[1] - origin1[1]
- new_velocity[2] = origin2[2] - origin1[2]
- new Float:num = floatsqroot(speed*speed / (new_velocity[0]*new_velocity[0] + new_velocity[1]*new_velocity[1] + new_velocity[2]*new_velocity[2]))
- new_velocity[0] *= num
- new_velocity[1] *= num
- new_velocity[2] *= num
- return 1
- }
- stock fm_set_rendering(entity, fx = kRenderFxNone, r = 255, g = 255, b = 255, render = kRenderNormal, amount = 16)
- {
- new Float:RenderColor[3]
- RenderColor[0] = float(r)
- RenderColor[1] = float(g)
- RenderColor[2] = float(b)
- set_pev(entity, pev_renderfx, fx)
- set_pev(entity, pev_rendercolor, RenderColor)
- set_pev(entity, pev_rendermode, render)
- set_pev(entity, pev_renderamt, float(amount))
- return 1
- }
- stock fm_give_item(index, const item[])
- {
- if (!equal(item, "weapon_", 7) && !equal(item, "ammo_", 5))
- return 0
- new ent = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, item))
- if (!pev_valid(ent))
- return 0
- new Float:origin[3]
- pev(index, pev_origin, origin)
- set_pev(ent, pev_origin, origin)
- set_pev(ent, pev_spawnflags, pev(ent, pev_spawnflags) | SF_NORESPAWN)
- dllfunc(DLLFunc_Spawn, ent)
- new save = pev(ent, pev_solid)
- dllfunc(DLLFunc_Touch, ent, index)
- if (pev(ent, pev_solid) != save)
- return ent
- engfunc(EngFunc_RemoveEntity, ent)
- return -1
- }
- stock ham_strip_weapon(index, weapon[])
- {
- if(!equal(weapon, "weapon_", 7))
- return 0
- new wId = get_weaponid(weapon)
- if(!wId) return 0
- new wEnt
- while((wEnt = engfunc(EngFunc_FindEntityByString, wEnt, "classname", weapon)) && pev(wEnt,pev_owner) != index) {}
- if(!wEnt)
- return 0
- if(get_user_weapon(index) == wId)
- ExecuteHamB(Ham_Weapon_RetireWeapon,wEnt)
- if(!ExecuteHamB(Ham_RemovePlayerItem, index, wEnt))
- return 0
- ExecuteHamB(Ham_Item_Kill, wEnt)
- set_pev(index, pev_weapons, pev(index, pev_weapons) & ~(1<<wId))
- return 1
- }
- #include <zombie_escape>
- #include <cstrike>
- #include <engine>
- #include <fun>
- #define Plugin "[ZE] Knockback Bomb"
- #define Version "1.0"
- #define Author "0"
- // === Customization starts below! ===
- new const g_PlayerModel [ ] = "models/zombie_escape/p_grenade_knock.mdl"
- new const g_ViewModel [ ] = "models/zombie_escape/v_grenade_knockback.mdl"
- new const g_WorldModel [ ] = "models/zombie_escape/w_grenade_knock.mdl"
- // You can add more than 1 sound!
- new const g_SoundGrenadeBuy [ ] [ ] = { "items/gunpickup2.wav" }
- new const g_SoundAmmoPurchase [ ] [ ] = { "items/9mmclip1.wav" }
- new const g_SoundBombExplode [ ] [ ] = { "zombie_escape/grenade_infect.wav" }
- #define MAXCARRY 4 // How many grenades 1 player can hold at the same time
- #define RADIUS 500.0 // Affect radius
- // === Customization ends above! ===
- #define MAXPLAYERS 32
- #define pev_nade_type pev_flTimeStepSound
- #define NADE_TYPE_JUMPING 26517
- #define AMMOID_SM 13
- new g_iExplo
- new g_iNadeID
- new g_iKnockbackNadeCount [ MAXPLAYERS+1 ]
- new g_iCurrentWeapon [ MAXPLAYERS+1 ]
- new cvar_speed
- new g_MaxPlayers
- new g_msgAmmoPickup
- public plugin_precache ( )
- {
- precache_model ( g_PlayerModel )
- precache_model ( g_ViewModel )
- precache_model ( g_WorldModel )
- new i
- for ( i = 0; i < sizeof g_SoundGrenadeBuy; i++ )
- precache_sound ( g_SoundGrenadeBuy [ i ] )
- for ( i = 0; i < sizeof g_SoundAmmoPurchase; i++ )
- precache_sound ( g_SoundAmmoPurchase [ i ] )
- for ( i = 0; i < sizeof g_SoundBombExplode; i++ )
- precache_sound ( g_SoundBombExplode [ i ] )
- g_iExplo = precache_model ( "sprites/xfire.spr" )
- }
- public plugin_init ( )
- {
- register_plugin ( Plugin, Version, Author )
- g_iNadeID = ze_register_item("Knockback Bomb", 30, 0)
- register_event ( "CurWeapon", "EV_CurWeapon", "be", "1=1" )
- register_event ( "HLTV", "EV_NewRound", "a", "1=0", "2=0" )
- register_event ( "DeathMsg", "EV_DeathMsg", "a" )
- register_forward ( FM_SetModel, "fw_SetModel" )
- RegisterHam ( Ham_Think, "grenade", "fw_ThinkGrenade" )
- cvar_speed = register_cvar ( "ze_zombiebomb_knockback", "800" )
- g_msgAmmoPickup = get_user_msgid ( "AmmoPickup" )
- g_MaxPlayers = get_maxplayers ( )
- }
- public client_connect ( Player )
- {
- g_iKnockbackNadeCount [ Player ] = 0
- }
- public ze_select_item_pre(id, itemid)
- {
- // Return Available and we will block it in Post, So it dosen't affect other plugins
- if (itemid != g_iNadeID)
- return ZE_ITEM_AVAILABLE
- // Available for Zombies only, So don't show it for Humans
- if (!ze_is_user_zombie(id))
- return ZE_ITEM_DONT_SHOW
- return ZE_ITEM_AVAILABLE
- }
- public ze_select_item_post(id, itemid)
- {
- if (itemid != g_iNadeID)
- return
- if (g_iKnockbackNadeCount [ id ] >= MAXCARRY)
- {
- ze_colored_print(id, "!tCannot hold more grenades!y!")
- }
- else if (g_iKnockbackNadeCount [ id ] >= 1)
- {
- new iBpAmmo = cs_get_user_bpammo ( id, CSW_SMOKEGRENADE )
- cs_set_user_bpammo ( id, CSW_SMOKEGRENADE, iBpAmmo+1 )
- emit_sound ( id, CHAN_ITEM, g_SoundAmmoPurchase[random_num(0, sizeof g_SoundAmmoPurchase-1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM )
- AmmoPickup ( id, AMMOID_SM, 1 )
- g_iKnockbackNadeCount [ id ]++
- }
- else if (g_iKnockbackNadeCount [ id ] == 0)
- {
- give_item ( id, "weapon_smokegrenade" )
- emit_sound ( id, CHAN_ITEM, g_SoundGrenadeBuy[random_num(0, sizeof g_SoundGrenadeBuy-1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM )
- AmmoPickup ( id, AMMOID_SM, 1 )
- g_iKnockbackNadeCount [ id ] = 1
- }
- }
- public ze_user_infected (Player, Infector)
- {
- g_iKnockbackNadeCount [ Player ] = 0
- }
- public EV_CurWeapon ( Player )
- {
- if ( !is_user_alive ( Player ) || !ze_is_user_zombie ( Player ) )
- return PLUGIN_CONTINUE
- g_iCurrentWeapon [ Player ] = read_data ( 2 )
- if ( g_iKnockbackNadeCount [ Player ] > 0 && g_iCurrentWeapon [ Player ] == CSW_SMOKEGRENADE )
- {
- set_pev ( Player, pev_viewmodel2, g_ViewModel )
- set_pev ( Player, pev_weaponmodel2, g_WorldModel )
- }
- return PLUGIN_CONTINUE
- }
- public EV_NewRound ( )
- {
- arrayset ( g_iKnockbackNadeCount, 0, 33 )
- }
- public EV_DeathMsg ( )
- {
- new iVictim = read_data ( 2 )
- if ( !is_user_connected ( iVictim ) )
- return
- g_iKnockbackNadeCount [ iVictim ] = 0
- }
- public fw_SetModel ( Entity, const Model [ ] )
- {
- if ( Entity < 0 )
- return FMRES_IGNORED
- if ( pev ( Entity, pev_dmgtime ) == 0.0 )
- return FMRES_IGNORED
- new iOwner = entity_get_edict ( Entity, EV_ENT_owner )
- if ( g_iKnockbackNadeCount [ iOwner ] >= 1 && equal ( Model [ 7 ], "w_sm", 4 ) )
- {
- // Reset any other nade
- set_pev ( Entity, pev_nade_type, 0 )
- set_pev ( Entity, pev_nade_type, NADE_TYPE_JUMPING )
- g_iKnockbackNadeCount [ iOwner ]--
- entity_set_model ( Entity, g_WorldModel )
- return FMRES_SUPERCEDE
- }
- return FMRES_IGNORED
- }
- public fw_ThinkGrenade ( Entity )
- {
- if ( !pev_valid ( Entity ) )
- return HAM_IGNORED
- static Float:dmg_time
- pev ( Entity, pev_dmgtime, dmg_time )
- if ( dmg_time > get_gametime ( ) )
- return HAM_IGNORED
- if ( pev ( Entity, pev_nade_type ) == NADE_TYPE_JUMPING )
- {
- jumping_explode ( Entity )
- return HAM_SUPERCEDE
- }
- return HAM_IGNORED
- }
- public jumping_explode ( Entity )
- {
- if ( Entity < 0 )
- return
- static Float:flOrigin [ 3 ]
- pev ( Entity, pev_origin, flOrigin )
- engfunc ( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, flOrigin, 0 )
- write_byte ( TE_SPRITE )
- engfunc ( EngFunc_WriteCoord, flOrigin [ 0 ] )
- engfunc ( EngFunc_WriteCoord, flOrigin [ 1 ] )
- engfunc ( EngFunc_WriteCoord, flOrigin [ 2 ] + 45.0 )
- write_short ( g_iExplo )
- write_byte ( 35 )
- write_byte ( 186 )
- message_end ( )
- emit_sound ( Entity, CHAN_WEAPON, g_SoundBombExplode[random_num(0, sizeof g_SoundBombExplode-1)], VOL_NORM, ATTN_NORM, 0, PITCH_NORM )
- for ( new i = 1; i < g_MaxPlayers; i++ )
- {
- if ( !is_user_alive ( i ) )
- continue
- // Debug!
- //client_print ( iOwner, print_chat, "Owner of Smoke Grenade!" )
- new Float:flVictimOrigin [ 3 ]
- pev ( i, pev_origin, flVictimOrigin )
- new Float:flDistance = get_distance_f ( flOrigin, flVictimOrigin )
- if ( flDistance <= RADIUS )
- {
- static Float:flSpeed
- flSpeed = get_pcvar_float ( cvar_speed )
- static Float:flNewSpeed
- flNewSpeed = flSpeed * ( 1.5 - ( flDistance / RADIUS ) )
- static Float:flVelocity [ 3 ]
- get_speed_vector ( flOrigin, flVictimOrigin, flNewSpeed, flVelocity )
- set_pev ( i, pev_velocity,flVelocity )
- }
- }
- engfunc ( EngFunc_RemoveEntity, Entity )
- }
- public AmmoPickup ( Player, AmmoID, AmmoAmount )
- {
- message_begin ( MSG_ONE, g_msgAmmoPickup, _, Player )
- write_byte ( AmmoID )
- write_byte ( AmmoAmount )
- message_end ( )
- }
- stock get_speed_vector(const Float:origin1[3],const Float:origin2[3],Float:speed, Float:new_velocity[3])
- {
- new_velocity[0] = origin2[0] - origin1[0]
- new_velocity[1] = origin2[1] - origin1[1]
- new_velocity[2] = origin2[2] - origin1[2]
- new Float:num = floatsqroot(speed*speed / (new_velocity[0]*new_velocity[0] + new_velocity[1]*new_velocity[1] + new_velocity[2]*new_velocity[2]))
- new_velocity[0] *= num
- new_velocity[1] *= num
- new_velocity[2] *= num
- return 1;
- }
Explain how can i get what in photo? What you did so you got it? I'll try test with my items.
He who fails to plan is planning to fail
Right this will happen if the extra-text exceed it's limit in ze_items_manager.sma --> g_szAdditionalMenuText[32].
So you can fix this simply by increasing this array size like --> g_szAdditionalMenuText[128].
Maybe i'll increase this limit on github to higher value i'll make it --> g_szAdditionalMenuText[64], just doubled.
Check: https://github.com/raheem-cs/Zombie-Esc ... cde16e7085
So you can fix this simply by increasing this array size like --> g_szAdditionalMenuText[128].
Maybe i'll increase this limit on github to higher value i'll make it --> g_szAdditionalMenuText[64], just doubled.
Check: https://github.com/raheem-cs/Zombie-Esc ... cde16e7085
He who fails to plan is planning to fail
Yep fixed thanks!Raheem wrote: ↑5 years ago Right this will happen if the extra-text exceed it's limit in ze_items_manager.sma --> g_szAdditionalMenuText[32].
So you can fix this simply by increasing this array size like --> g_szAdditionalMenuText[128].
Maybe i'll increase this limit on github to higher value i'll make it --> g_szAdditionalMenuText[64], just doubled.
Check: https://github.com/raheem-cs/Zombie-Esc ... cde16e7085
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Can someone tell me what the problem is because I only see 4 huds with an opened menu
what lolJack GamePlay wrote: ↑5 years ago Can someone tell me what the problem is because I only see 4 huds with an opened menu
[mention]Jack GamePlay[/mention], see this photo:
He who fails to plan is planning to fail
What's the (30 % OFF) where is this plugin
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 0 guests