Raised This Month: $ Target: $400
 0% 

Subplugin Submission Zombie Plague Advance !! Updated to v1.6.1 on 11th September 2010 !!


Post New Thread Reply   
 
Thread Tools Display Modes
jantore
Junior Member
Join Date: Oct 2009
Old 05-30-2010 , 11:29   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #501

PHP Code:
#include <amxmodx> 
#include <fakemeta> 
#include <zombieplague> 
#include <hamsandwich> 
#include <fakemeta_util> 
 
// put here the p model
new const model_grenade_infect_p[] = "models/p_hegrenade.mdl" 
 
// put here the w model
new const model_grenade_infect_w[] = "models/w_hegrenade.mdl" 
 
// health of the zombie which is substracted
new const g_victimhealth 5000
#define PLUGIN "Nowy Plugin" 
#define VERSION "1.0" 
#define AUTHOR "Sn!ff3r" 
new const NADE_TYPE_KILLBOMB 7452 
new const Float:RADIUS 240.0 
new const sprite_grenade_trail[] = "sprites/laserbeam.spr" 
new const sprite_grenade_ring[] = "sprites/shockwave.spr" 
new const item_cost 20 
new const item_name[] = "Kill Bomb" 
new const model_grenade_infect[] = "models/zombie_plague/v_grenade_infect.mdl" 
new item_id 
new has_bomb[33
new 
cvar_enabledcvar_fragsinfectcvar_ammoinfectcvar_humanbonushpcvar_flaregrenades 
new g_trailSprg_exploSprg_msgScoreInfog_msgDeathMsgg_msgScoreAttrib 
public plugin_init()  

 
register_plugin(PLUGINVERSIONAUTHOR
 
 
RegisterHam(Ham_Think"grenade""fw_ThinkGrenade"
 
RegisterHam(Ham_Killed"player""fw_PlayerKilled"
 
 
register_forward(FM_SetModel"fw_SetModel")     
 
 
register_message(get_user_msgid("CurWeapon"), "message_cur_weapon"
 
 
cvar_enabled register_cvar("zp_kill_bomb","1"
 
cvar_fragsinfect get_cvar_pointer("zp_zombie_frags_for_infect"
 
cvar_ammoinfect get_cvar_pointer("zp_zombie_infect_reward"
 
cvar_humanbonushp register_cvar("zp_kill_bomb_extra_hp","10")     
 
cvar_flaregrenades get_cvar_pointer("zp_flare_grenades"
 
 
g_msgScoreInfo get_user_msgid("ScoreInfo"
 
g_msgDeathMsg get_user_msgid("DeathMsg"
 
g_msgScoreAttrib get_user_msgid("ScoreAttrib"

public 
plugin_precache() 

 
g_trailSpr engfunc(EngFunc_PrecacheModelsprite_grenade_trail
 
g_exploSpr engfunc(EngFunc_PrecacheModelsprite_grenade_ring
 
 
engfunc(EngFunc_PrecacheModelmodel_grenade_infect)
 
engfunc(EngFunc_PrecacheModelmodel_grenade_infect_p)
 
engfunc(EngFunc_PrecacheModelmodel_grenade_infect_w)
 
item_id zp_register_extra_item(item_name,item_cost,ZP_TEAM_HUMAN

public 
client_disconnect(id

 
has_bomb[id] = 

public 
zp_extra_item_selected(playeritemid

 if(
itemid == item_id
 { 
  
has_bomb[player] = 1     
  fm_strip_user_gun
(player,9
  
fm_give_item(player,"weapon_smokegrenade"
 } 
 

public 
fw_PlayerKilled(victimattackershouldgib

 
has_bomb[victim] = 0     

public 
fw_ThinkGrenade(entity
{     
 if(!
pev_valid(entity)) 
  return 
HAM_IGNORED 
 
 
static Float:dmgtime     
 pev
(entitypev_dmgtimedmgtime
 
 if (
dmgtime get_gametime()) 
  return 
HAM_IGNORED     
 
 
if(pev(entitypev_flTimeStepSound) == NADE_TYPE_KILLBOMB
  
kill_explode(entity
 
 return 
HAM_SUPERCEDE 

public 
fw_SetModel(entity, const model[]) 

 if(!
get_pcvar_num(cvar_enabled)) 
  return     
 
 static 
Float:dmgtime 
 pev
(entitypev_dmgtimedmgtime
 
 if (
dmgtime == 0.0
  return 
 
 if (
equal(model[7], "w_sm"4)) 
 {         
  new 
owner pev(entitypev_owner)         
 
  if(!
zp_get_user_zombie(owner) && has_bomb[owner])  
  { 
   
set_pcvar_num(cvar_flaregrenades,0)             
 
   
fm_set_rendering(entitykRenderFxGlowShell2551280kRenderNormal16
 
   
message_begin(MSG_BROADCASTSVC_TEMPENTITY
   
write_byte(TE_BEAMFOLLOW// TE id 
   
write_short(entity// entity 
   
write_short(g_trailSpr// sprite 
   
write_byte(10// life 
   
write_byte(10// width 
   
write_byte(255// r 
   
write_byte(128// g 
   
write_byte(0// b 
   
write_byte(200// brightness 
   
message_end() 
 
   
engfunc(EngFunc_SetModelentitymodel_grenade_infect_w )
   
set_pev(entitypev_flTimeStepSoundNADE_TYPE_KILLBOMB
  } 
 } 
 

 
public 
kill_explode(ent

 if (!
zp_has_round_started()) return 
 
 
set_pcvar_num(cvar_flaregrenades,1
 
 static 
Float:originF[3
 
pev(entpev_originoriginF
 
 
create_blast(originF)     
 
 
//engfunc(EngFunc_EmitSound, ent, CHAN_WEAPON, grenade_infect[random_num(0, sizeof grenade_infect - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM) 
 
 
static attacker 
 attacker 
pev(entpev_owner
 
 
has_bomb[attacker] = 
 
 
static victim 
 victim 
= -
 
while ((victim engfunc(EngFunc_FindEntityInSpherevictimoriginFRADIUS)) != 0
 { 
  if (!
is_user_alive(victim) || !zp_get_user_zombie(victim) || zp_get_user_nemesis(victim)) 
   continue 
 
  
SendDeathMsg(attackervictim
  
FixDeadAttrib(victim
  
UpdateFrags(attackervictimget_pcvar_num(cvar_fragsinfect), 11)
  if ( 
get_user_healthvictim ) <= g_victimhealth )
   
user_kill(victim0)
  else
   
fm_set_user_healthvictim pev(victimpev_health) - g_victimhealth)
 
  
zp_set_user_ammo_packs(attacker,zp_get_user_ammo_packs(attacker) + get_pcvar_num(cvar_ammoinfect)) 
  
fm_set_user_health(attackerpev(attackerpev_health)+get_pcvar_num(cvar_humanbonushp)) 
 
 } 
 
 
engfunc(EngFunc_RemoveEntityent

public 
create_blast(const Float:originF[3]) 

 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0
 
write_byte(TE_BEAMCYLINDER// TE id 
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x 
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y 
 
engfunc(EngFunc_WriteCoordoriginF[2]) // z 
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
 
engfunc(EngFunc_WriteCoordoriginF[2]+385.0// z axis 
 
write_short(g_exploSpr// sprite 
 
write_byte(0// startframe 
 
write_byte(0// framerate 
 
write_byte(4// life 
 
write_byte(60// width 
 
write_byte(0// noise 
 
write_byte(255// red 
 
write_byte(128// green 
 
write_byte(0// blue 
 
write_byte(200// brightness 
 
write_byte(0// speed 
 
message_end() 
 
 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0
 
write_byte(TE_BEAMCYLINDER// TE id 
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x 
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y 
 
engfunc(EngFunc_WriteCoordoriginF[2]) // z 
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
 
engfunc(EngFunc_WriteCoordoriginF[2]+470.0// z axis 
 
write_short(g_exploSpr// sprite 
 
write_byte(0// startframe 
 
write_byte(0// framerate 
 
write_byte(4// life 
 
write_byte(60// width 
 
write_byte(0// noise 
 
write_byte(255// red 
 
write_byte(164// green 
 
write_byte(0// blue 
 
write_byte(200// brightness 
 
write_byte(0// speed 
 
message_end() 
 
 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0
 
write_byte(TE_BEAMCYLINDER// TE id 
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x 
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y 
 
engfunc(EngFunc_WriteCoordoriginF[2]) // z 
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis 
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis 
 
engfunc(EngFunc_WriteCoordoriginF[2]+555.0// z axis 
 
write_short(g_exploSpr// sprite 
 
write_byte(0// startframe 
 
write_byte(0// framerate 
 
write_byte(4// life 
 
write_byte(60// width 
 
write_byte(0// noise 
 
write_byte(255// red 
 
write_byte(200// green 
 
write_byte(0// blue 
 
write_byte(200// brightness 
 
write_byte(0// speed 
 
message_end() 

public 
UpdateFrags(attackervictimfragsdeathsscoreboard

 
set_pev(attackerpev_fragsfloat(pev(attackerpev_frags) + frags)) 
 
 
fm_set_user_deaths(victimfm_get_user_deaths(victim) + deaths
 
 if (
scoreboard
 {     
  
message_begin(MSG_BROADCASTg_msgScoreInfo
  
write_byte(attacker// id 
  
write_short(pev(attackerpev_frags)) // frags 
  
write_short(fm_get_user_deaths(attacker)) // deaths 
  
write_short(0// class? 
  
write_short(fm_get_user_team(attacker)) // team 
  
message_end() 
 
  
message_begin(MSG_BROADCASTg_msgScoreInfo
  
write_byte(victim// id 
  
write_short(pev(victimpev_frags)) // frags 
  
write_short(fm_get_user_deaths(victim)) // deaths 
  
write_short(0// class? 
  
write_short(fm_get_user_team(victim)) // team 
  
message_end() 
 } 

stock fm_set_user_deaths(idvalue

 
set_pdata_int(id444value5

stock fm_get_user_deaths(id

 return 
get_pdata_int(id4445

 
stock fm_get_user_team(id

 return 
get_pdata_int(id1145

public 
SendDeathMsg(attackervictim

 
message_begin(MSG_BROADCASTg_msgDeathMsg
 
write_byte(attacker// killer 
 
write_byte(victim// victim 
 
write_byte(1// headshot flag 
 
write_string("grenade"// killer's weapon 
 
message_end() 

public 
FixDeadAttrib(id

 
message_begin(MSG_BROADCASTg_msgScoreAttrib
 
write_byte(id// id 
 
write_byte(0// attrib 
 
message_end() 

public 
replace_models(id

 if (!
is_user_alive(id)) 
  return 
 
 if(
get_user_weapon(id) == CSW_SMOKEGRENADE && has_bomb[id]) 
 { 
  
set_pev(idpev_viewmodel2model_grenade_infect
  
set_pev(idpev_weaponmodel2model_grenade_infect_p)
 } 

public 
message_cur_weapon(msg_idmsg_destmsg_entity

 
replace_models(msg_entity



This edited source isn't working, but server includes this p_model w_model, that is, this models, which for Kill bomb. And you have forgot switch on support SOUND for bomb explosition.

Five minutes ago I tested you edited, I wanted inform to you, this w_model and p_model default(p_smokegrenade and w_smokegrenade), and I was in time to checked w_model, I bought 3d person view and bought Kill BOmb, I saw, that in my arms default model of SMOKE grenade(w_smokegrenade) ---> Abdul, please, fix this models, as p_model and w_model + switch on support for Explosition sound and if it's possible, in first, test your Carried out Source. Way to sound it's here: http://www.sendspace.com/file/tk5f2q
Type in source sound of explosition name heartbomb_explosion.wav
jantore is offline
[ZC]ACA
BANNED
Join Date: May 2010
Old 05-30-2010 , 14:47   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #502

WORST REMAKE EVER!! EPIC FAIL.
[ZC]ACA is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-30-2010 , 14:49   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #503

Quote:
Originally Posted by [ZC]ACA View Post
WORST REMAKE EVER!! EPIC FAIL.
i presume you can do a better one?
and i think i presume wrong
so stfu and stop spamming about somebody else's work
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
jantore
Junior Member
Join Date: Oct 2009
Old 05-30-2010 , 14:56   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #504

georgik57 hey, can you help me please with remake? If you can, type me in ICQ or Skype; ICQ: 606701426
SKYPE: tukhatore
jantore is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-30-2010 , 15:36   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #505

Quote:
Originally Posted by jantore View Post
georgik57 hey, can you help me please with remake? If you can, type me in ICQ or Skype; ICQ: 606701426
SKYPE: tukhatore
lots of work for that...sorry but i'm not in the right mood right now for it
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
jantore
Junior Member
Join Date: Oct 2009
Old 05-30-2010 , 17:01   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #506

You're scriptor? ) It's usuall question
jantore is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-30-2010 , 17:50   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #507

Quote:
Originally Posted by jantore View Post
You're scriptor? ) It's usuall question
yea but not such a good one...
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
jantore
Junior Member
Join Date: Oct 2009
Old 05-30-2010 , 19:58   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #508

PHP Code:
#include <amxmodx>  
#include <fakemeta>  
#include <zombieplague>  
#include <hamsandwich>  
#include <fakemeta_util>  
  
// put here the p model 
new const model_grenade_infect_p[] = "models/p_hegrenade.mdl"  
  
// put here the w model 
new const model_grenade_infect_w[] = "models/w_hegrenade.mdl"  
  
// health of the zombie which is substracted 
new const g_victimhealth 5000 
#define PLUGIN "Nowy Plugin"  
#define VERSION "1.0"  
#define AUTHOR "Sn!ff3r"  
new const NADE_TYPE_KILLBOMB 7452  
new const Float:RADIUS 240.0  
new const sprite_grenade_trail[] = "sprites/laserbeam.spr"  
new const sprite_grenade_ring[] = "sprites/shockwave.spr"  
new const item_cost 20  
new const item_name[] = "Kill Bomb"  
new const model_grenade_infect[] = "models/zombie_plague/v_grenade_infect.mdl"  
new item_id  
new has_bomb[33]  
new 
cvar_enabledcvar_fragsinfectcvar_ammoinfectcvar_humanbonushpcvar_flaregrenades  
new g_trailSprg_exploSprg_msgScoreInfog_msgDeathMsgg_msgScoreAttrib  
public plugin_init()   
{  
 
register_plugin(PLUGINVERSIONAUTHOR)  
  
 
RegisterHam(Ham_Think"grenade""fw_ThinkGrenade")  
 
RegisterHam(Ham_Killed"player""fw_PlayerKilled")  
  
 
register_forward(FM_SetModel"fw_SetModel")      
  
 
register_message(get_user_msgid("CurWeapon"), "message_cur_weapon")  
  
 
cvar_enabled register_cvar("zp_kill_bomb","1")  
 
cvar_fragsinfect get_cvar_pointer("zp_zombie_frags_for_infect")  
 
cvar_ammoinfect get_cvar_pointer("zp_zombie_infect_reward")  
 
cvar_humanbonushp register_cvar("zp_kill_bomb_extra_hp","10")      
 
cvar_flaregrenades get_cvar_pointer("zp_flare_grenades")  
  
 
g_msgScoreInfo get_user_msgid("ScoreInfo")  
 
g_msgDeathMsg get_user_msgid("DeathMsg")  
 
g_msgScoreAttrib get_user_msgid("ScoreAttrib")  
}  
public 
plugin_precache()  
{  
 
g_trailSpr engfunc(EngFunc_PrecacheModelsprite_grenade_trail)  
 
g_exploSpr engfunc(EngFunc_PrecacheModelsprite_grenade_ring)  
  
 
engfunc(EngFunc_PrecacheModelmodel_grenade_infect
 
engfunc(EngFunc_PrecacheModelmodel_grenade_infect_p
 
engfunc(EngFunc_PrecacheModelmodel_grenade_infect_w
 
item_id zp_register_extra_item(item_name,item_cost,ZP_TEAM_HUMAN)  
}  
public 
client_disconnect(id)  
{  
 
has_bomb[id] = 0  
}  
public 
zp_extra_item_selected(playeritemid)  
{  
 if(
itemid == item_id)  
 {  
  
has_bomb[player] = 1      
  fm_strip_user_gun
(player,9)  
  
fm_give_item(player,"weapon_smokegrenade")  
 }  
  
}  
public 
fw_PlayerKilled(victimattackershouldgib)  
{  
 
has_bomb[victim] = 0      
}  
public 
fw_ThinkGrenade(entity)  
{      
 if(!
pev_valid(entity))  
  return 
HAM_IGNORED  
  
 
static Float:dmgtime      
 pev
(entitypev_dmgtimedmgtime)  
  
 if (
dmgtime get_gametime())  
  return 
HAM_IGNORED      
  
 
if(pev(entitypev_flTimeStepSound) == NADE_TYPE_KILLBOMB)  
  
kill_explode(entity)  
  
 return 
HAM_SUPERCEDE  
}  
public 
fw_SetModel(entity, const model[])  
{  
 if(!
get_pcvar_num(cvar_enabled))  
  return      
  
 static 
Float:dmgtime  
 pev
(entitypev_dmgtimedmgtime)  
  
 if (
dmgtime == 0.0)  
  return  
  
 if (
equal(model[7], "w_sm"4))  
 {          
  new 
owner pev(entitypev_owner)          
  
  if(!
zp_get_user_zombie(owner) && has_bomb[owner])   
  {  
   
set_pcvar_num(cvar_flaregrenades,0)              
  
   
fm_set_rendering(entitykRenderFxGlowShell2551280kRenderNormal16)  
  
   
message_begin(MSG_BROADCASTSVC_TEMPENTITY)  
   
write_byte(TE_BEAMFOLLOW// TE id  
   
write_short(entity// entity  
   
write_short(g_trailSpr// sprite  
   
write_byte(10// life  
   
write_byte(10// width  
   
write_byte(255// r  
   
write_byte(128// g  
   
write_byte(0// b  
   
write_byte(200// brightness  
   
message_end()  
  
   
engfunc(EngFunc_SetModelentitymodel_grenade_infect_w 
   
set_pev(entitypev_flTimeStepSoundNADE_TYPE_KILLBOMB)  
  }  
 }  
  
}  
  
public 
kill_explode(ent)  
{  
 if (!
zp_has_round_started()) return  
  
 
set_pcvar_num(cvar_flaregrenades,1)  
  
 static 
Float:originF[3]  
 
pev(entpev_originoriginF)  
  
 
create_blast(originF)      
  
 
//engfunc(EngFunc_EmitSound, ent, CHAN_WEAPON, grenade_infect[random_num(0, sizeof grenade_infect - 1)], 1.0, ATTN_NORM, 0, PITCH_NORM)  
  
 
static attacker  
 attacker 
pev(entpev_owner)  
  
 
has_bomb[attacker] = 0  
  
 
static victim  
 victim 
= -1  
 
while ((victim engfunc(EngFunc_FindEntityInSpherevictimoriginFRADIUS)) != 0)  
 {  
  if (!
is_user_alive(victim) || !zp_get_user_zombie(victim) || zp_get_user_nemesis(victim))  
   continue  
  
  
SendDeathMsg(attackervictim)  
  
FixDeadAttrib(victim)  
  
UpdateFrags(attackervictimget_pcvar_num(cvar_fragsinfect), 11
  if ( 
get_user_healthvictim ) <= g_victimhealth 
   
user_kill(victim0
  else 
   
fm_set_user_healthvictim pev(victimpev_health) - g_victimhealth
  
  
zp_set_user_ammo_packs(attacker,zp_get_user_ammo_packs(attacker) + get_pcvar_num(cvar_ammoinfect))  
  
fm_set_user_health(attackerpev(attackerpev_health)+get_pcvar_num(cvar_humanbonushp))  
  
 }  
  
 
engfunc(EngFunc_RemoveEntityent)  
}  
public 
create_blast(const Float:originF[3])  
{  
 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)  
 
write_byte(TE_BEAMCYLINDER// TE id  
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x  
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y  
 
engfunc(EngFunc_WriteCoordoriginF[2]) // z  
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis  
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis  
 
engfunc(EngFunc_WriteCoordoriginF[2]+385.0// z axis  
 
write_short(g_exploSpr// sprite  
 
write_byte(0// startframe  
 
write_byte(0// framerate  
 
write_byte(4// life  
 
write_byte(60// width  
 
write_byte(0// noise  
 
write_byte(255// red  
 
write_byte(128// green  
 
write_byte(0// blue  
 
write_byte(200// brightness  
 
write_byte(0// speed  
 
message_end()  
  
 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)  
 
write_byte(TE_BEAMCYLINDER// TE id  
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x  
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y  
 
engfunc(EngFunc_WriteCoordoriginF[2]) // z  
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis  
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis  
 
engfunc(EngFunc_WriteCoordoriginF[2]+470.0// z axis  
 
write_short(g_exploSpr// sprite  
 
write_byte(0// startframe  
 
write_byte(0// framerate  
 
write_byte(4// life  
 
write_byte(60// width  
 
write_byte(0// noise  
 
write_byte(255// red  
 
write_byte(164// green  
 
write_byte(0// blue  
 
write_byte(200// brightness  
 
write_byte(0// speed  
 
message_end()  
  
 
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYoriginF0)  
 
write_byte(TE_BEAMCYLINDER// TE id  
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x  
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y  
 
engfunc(EngFunc_WriteCoordoriginF[2]) // z  
 
engfunc(EngFunc_WriteCoordoriginF[0]) // x axis  
 
engfunc(EngFunc_WriteCoordoriginF[1]) // y axis  
 
engfunc(EngFunc_WriteCoordoriginF[2]+555.0// z axis  
 
write_short(g_exploSpr// sprite  
 
write_byte(0// startframe  
 
write_byte(0// framerate  
 
write_byte(4// life  
 
write_byte(60// width  
 
write_byte(0// noise  
 
write_byte(255// red  
 
write_byte(200// green  
 
write_byte(0// blue  
 
write_byte(200// brightness  
 
write_byte(0// speed  
 
message_end()  
}  
public 
UpdateFrags(attackervictimfragsdeathsscoreboard)  
{  
 
set_pev(attackerpev_fragsfloat(pev(attackerpev_frags) + frags))  
  
 
fm_set_user_deaths(victimfm_get_user_deaths(victim) + deaths)  
  
 if (
scoreboard)  
 {      
  
message_begin(MSG_BROADCASTg_msgScoreInfo)  
  
write_byte(attacker// id  
  
write_short(pev(attackerpev_frags)) // frags  
  
write_short(fm_get_user_deaths(attacker)) // deaths  
  
write_short(0// class?  
  
write_short(fm_get_user_team(attacker)) // team  
  
message_end()  
  
  
message_begin(MSG_BROADCASTg_msgScoreInfo)  
  
write_byte(victim// id  
  
write_short(pev(victimpev_frags)) // frags  
  
write_short(fm_get_user_deaths(victim)) // deaths  
  
write_short(0// class?  
  
write_short(fm_get_user_team(victim)) // team  
  
message_end()  
 }  
}  
stock fm_set_user_deaths(idvalue)  
{  
 
set_pdata_int(id444value5)  
}  
stock fm_get_user_deaths(id)  
{  
 return 
get_pdata_int(id4445)  
}  
  
stock fm_get_user_team(id)  
{  
 return 
get_pdata_int(id1145)  
}  
public 
SendDeathMsg(attackervictim)  
{  
 
message_begin(MSG_BROADCASTg_msgDeathMsg)  
 
write_byte(attacker// killer  
 
write_byte(victim// victim  
 
write_byte(1// headshot flag  
 
write_string("grenade"// killer's weapon  
 
message_end()  
}  
public 
FixDeadAttrib(id)  
{  
 
message_begin(MSG_BROADCASTg_msgScoreAttrib)  
 
write_byte(id// id  
 
write_byte(0// attrib  
 
message_end()  
}  
public 
replace_models(id)  
{  
 if (!
is_user_alive(id))  
  return  
  
 if(
get_user_weapon(id) == CSW_SMOKEGRENADE && has_bomb[id])  
 {  
  
set_pev(idpev_viewmodel2model_grenade_infect)  
  
set_pev(idpev_weaponmodel2model_grenade_infect_p
 }  
}  
public 
message_cur_weapon(msg_idmsg_destmsg_entity)  
{  
 
replace_models(msg_entity)  


This edited source isn't working, but server includes this p_model w_model,
that is, this models, which for Kill bomb. And you have forgot switch on support SOUND for bomb explosition.

Five minutes ago I tested you edited, I wanted inform to you, this w_model and p_model default(p_smokegrenade and w_smokegrenade), and I was in time to checked w_model, I bought 3d person view and bought Kill BOmb, I saw, that in my arms default model of SMOKE grenade(w_smokegrenade) ---> Abdul, please, fix this models, as p_model and w_model + switch on support for Explosition sound and if it's possible, in first, test your Carried out Source. Way to sound it's here: http://www.sendspace.com/file/tk5f2q
Type in source sound of explosition name heartbomb_explosion.wav
jantore is offline
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 05-31-2010 , 11:12   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #509

Quote:
Originally Posted by NiHiLaNTh
abdul, I think you should add native
Code:
     zp_force_roundend ( WinTeam )
which allow to force round end.Although it would be very hard work(
__________________

NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
lLo4h
Member
Join Date: May 2010
Location: Switzerland
Old 05-31-2010 , 11:37   Re: Zombie Plague 4.3 + New Modes [Fixed Server Crashing issues] !! UPDATED v1.5 !!
Reply With Quote #510

can you fix this plugin?
lLo4h is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:37.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode