Raised This Month: $7 Target: $400
 1% 

Suggestion / Subplugin Request [Sub-plugin Request]Antidote bomb - Extra item


Post New Thread Reply   
 
Thread Tools Display Modes
Fry!
Veteran Member
Join Date: Apr 2008
Location: Latvia
Old 11-18-2008 , 17:53   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #51

lol, looks cool.
__________________
Quote:
Originally Posted by wisam187
why all the great scriptors..... always.... leave and let their works go into oblivion ???
i miss your way in making outstanding plugins...
this forum needs lots of the likes of you..... and less of the idiots that spread right now.
Fry! is offline
yoonghoe
Junior Member
Join Date: Dec 2008
Old 12-10-2008 , 05:57   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #52

there is no sma file i cant use it
yoonghoe is offline
kazuki
Senior Member
Join Date: Dec 2008
Old 03-19-2009 , 05:16   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #53

Quote:
Originally Posted by Sn!ff3r View Post
^^
can u fix something ? when last zombie , if u threw antidone bomb on the last zombie it died, just like the infection bomb
kazuki is offline
superang
Senior Member
Join Date: Apr 2009
Location: Portugal
Old 04-08-2009 , 17:34   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #54

Nice im playing a server where there is the antidote bomb look at attachments.
Attached Thumbnails
Click image for larger version

Name:	Zombie.jpg
Views:	495
Size:	89.7 KB
ID:	40260  
__________________
superang is offline
Send a message via MSN to superang
beckham9224
Senior Member
Join Date: Feb 2009
Location: Asia, Mongolia
Old 05-01-2009 , 00:40   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #55

Quote:
can u fix something ? when last zombie , if u threw antidone bomb on the last zombie it died, just like the infection bomb
bcz it must do that >.<
beckham9224 is offline
zombiiiizzz
BANNED
Join Date: Apr 2010
Old 05-16-2010 , 07:03   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #56

PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
#include <zombieplague>
#include <hamsandwich>
#include <fakemeta_util>
#define PLUGIN "Nowy Plugin"
#define VERSION "1.1"
#define AUTHOR "Sn!ff3r"
new const NADE_TYPE_ANTIDOTEBOMB 6969
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 25
new const item_name[] = "Antidote Bomb"
new const model_grenade_infect[] = "models/zombie_plague/v_tvirusblue.mdl"
&#12288;
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_antidote_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_antidote_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)
 
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] = 
fm_strip_user_gun
(player,9)
fm_give_item(player,"weapon_smokegrenade")
}
 
}
public 
fw_PlayerKilled(victimattackershouldgib)
{
has_bomb[victim] = 
}
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_ANTIDOTEBOMB)
antidote_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(entitykRenderFxGlowShell00255kRenderNormal16)
 
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(0// r
write_byte(0// g
write_byte(255// b
write_byte(200// brightness
message_end()
 
set_pev(entitypev_flTimeStepSoundNADE_TYPE_ANTIDOTEBOMB)
}
}
 
}
&
#12288;
public antidote_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) || zp_get_user_first_zombie(victim) || zp_get_user_last_zombie(victim))
continue
 
SendDeathMsg(attackervictim)
FixDeadAttrib(victim)
UpdateFrags(attackervictimget_pcvar_num(cvar_fragsinfect), 11)
zp_disinfect_user(victim)
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(0// red
write_byte(0// green
write_byte(255// 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(0// red
write_byte(0// green
write_byte(255// 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(0// red
write_byte(0// green
write_byte(255// 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)
}
&
#12288;
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)
}
}
public 
message_cur_weapon(msg_idmsg_destmsg_entity)
{
replace_models(msg_entity)
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1031\\ f0\\ fs16 \n\\ par }
*/
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang2057{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 
so when i buy it's ok.. but then every round overrides the flare nade and i got a free antibomb on avery new round in place of the flare nade :/ .. how to fix this ???
zombiiiizzz is offline
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-16-2010 , 07:52   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #57

Quote:
Originally Posted by ifx View Post

- added logo of extra-item on my servers
hahahahahaha funny!
__________________
jc980 is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 05-16-2010 , 11:19   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #58

can someone fix this code, because it clash with HE nade, i use HE nade instead of napalm nade, when i throw the HE nade it doesn't explode and just stay on ground until the next map change. hope someone can fix this.
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 05-16-2010 , 13:46   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #59

Quote:
Originally Posted by superang View Post
Nice im playing a server where there is the antidote bomb look at attachments.
server ip pls? pm me if you don't want to post it here

Quote:
Originally Posted by ifx View Post

- added logo of extra-item on my servers
hhaaahhahaha lol commercials
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
jc980
Veteran Member
Join Date: Jan 2010
Location: God is with us...
Old 05-17-2010 , 00:26   Re: [Sub-plugin Request]Antidote bomb - Extra item
Reply With Quote #60

Quote:
Originally Posted by yokomo View Post
can someone fix this code, because it clash with HE nade, i use HE nade instead of napalm nade, when i throw the HE nade it doesn't explode and just stay on ground until the next map change. hope someone can fix this.
why do you use HE nade than napalm nade?
__________________
jc980 is offline
Reply


Thread Tools
Display Modes

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 06:43.


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