Existing user? Sign in
Sign up
Games
Servers
Useful
User
Pass
2FA
ZmXp lvl 14
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
Author
Message
1074
valy00
[Mentally Stable]
Status: Offline
(since 10-04-2018 13:03)
Joined: 08 Jan 2013
Posts: 119
,
Topics: 28
Location:
Romania
Reputation:
-58.9
Votes
: 16
Posted: 06-02-2013, 05:37:32
| Translate post to:
... (
Click for more languages
)
Quote:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#include <zombieplague>
#include <zombiexp>
const Weapons = (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)
// Bullet Proof Zombie
new const zclass_name[] = { "Zombie Bullet Proof" }
new const zclass_info[] = { "Only hurts with secondary weapons" }
new const zclass_model[] = { "Bullet_Proof" }
new const zclass_clawmodel[] = { "v_bulletproof_claws.mdl" }
const zclass_health = 10000
const zclass_speed = 650
const Float:zclass_gravity = 0.80
const Float:zclass_knockback = 1.0
const zclass_level = 14
new gBulletProof
public plugin_init()
{
register_plugin("[ZP] ZP Class: Bullet Proof", "0.2", "DJHD!")
RegisterHam(Ham_TraceAttack, "player", "fw_Player_TraceAttack")
}
public plugin_precache()
gBulletProof = zpxp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_kb, zclass_level)
public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == gBulletProof)
{
if(zp_get_user_nemesis(id))
return
print_chatColor(id, "\g[ZP]\n Remember only you will hurt the secondary weapons.")
}
}
public fw_Player_TraceAttack(iVictim, iAttacker, Float:flDamage, Float:vecDirection[3], iTr, iDamageType)
{
if(!is_user_alive(iVictim) || !is_user_alive(iAttacker))
return HAM_IGNORED;
if(zp_get_user_nemesis(iVictim))
return HAM_IGNORED;
if(zp_get_user_survivor(iAttacker))
return HAM_IGNORED;
if(zp_get_user_zombie_class(iVictim) == gBulletProof)
{
if(entity_get_int(iAttacker, EV_INT_weapons) & Weapons)
{
new Float:vecEndPos[3]
get_tr2(iTr, TR_vecEndPos, vecEndPos)
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, vecEndPos, 0)
write_byte(TE_SPARKS) // TE iId
engfunc(EngFunc_WriteCoord, vecEndPos[0]) // x
engfunc(EngFunc_WriteCoord, vecEndPos[1]) // y
engfunc(EngFunc_WriteCoord, vecEndPos[2]) // z
message_end()
return HAM_SUPERCEDE;
}
}
return HAM_HANDLED;
}
stock print_chatColor(const id, const input[], any:...)
{
new msg[191], players[32], count = 1;
vformat(msg,190,input,3);
replace_all(msg,190,"\g","^4");// green
replace_all(msg,190,"\n","^1");// normal
replace_all(msg,190,"\t","^3");// team
if (id) players[0] = id; else get_players(players,count,"ch");
for (new i=0;i<count;i++)
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("SayText"),_,players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
Care ma ajuta si pe mine ... Nu imi merge imi da error .
0
0
Back to top
valy00
[Mentally Stable]
Status: Offline
(since 10-04-2018 13:03)
Joined: 08 Jan 2013
Posts: 119
,
Topics: 28
Location:
Romania
Reputation:
-58.9
Votes
: 16
Posted: 06-02-2013, 16:34:07
| Translate post to:
... (
Click for more languages
)
?
0
0
Back to top
Ciurii[:x]
[Bulã]
Status: Offline
(since 07-07-2013 08:20)
Joined: 10 Feb 2010
Posts: 3312
,
Topics: 130
Location:
Baia Mare
Reputation:
98.2
Votes
: 22
Posted: 06-02-2013, 20:24:14
| Translate post to:
... (
Click for more languages
)
Code:
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#include <zombieplague>
#include <zombiexp>
const Weapons = (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)
// Bullet Proof Zombie
new const zclass_name[] = { "Zombie Bullet Proof" }
new const zclass_info[] = { "Only hurts with secondary weapons" }
new const zclass_model[] = { "Bullet_Proof" }
new const zclass_clawmodel[] = { "v_bulletproof_claws.mdl" }
const zclass_health = 10000
const zclass_speed = 650
const Float:zclass_gravity = 0.80
const Float:zclass_knockback = 1.0
const zclass_level = 14
new gBulletProof
public plugin_init()
{
register_plugin("[ZP] ZP Class: Bullet Proof", "0.2", "DJHD!")
RegisterHam(Ham_TraceAttack, "player", "fw_Player_TraceAttack")
}
public plugin_precache()
gBulletProof = zpxp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback, zclass_level)
public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == gBulletProof)
{
if(zp_get_user_nemesis(id))
return
print_chatColor(id, "\g[ZP]\n Remember only you will hurt the secondary weapons.")
}
}
public fw_Player_TraceAttack(iVictim, iAttacker, Float:flDamage, Float:vecDirection[3], iTr, iDamageType)
{
if(!is_user_alive(iVictim) || !is_user_alive(iAttacker))
return HAM_IGNORED;
if(zp_get_user_nemesis(iVictim))
return HAM_IGNORED;
if(zp_get_user_survivor(iAttacker))
return HAM_IGNORED;
if(zp_get_user_zombie_class(iVictim) == gBulletProof)
{
if(entity_get_int(iAttacker, EV_INT_weapons) & Weapons)
{
new Float:vecEndPos[3]
get_tr2(iTr, TR_vecEndPos, vecEndPos)
engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, vecEndPos, 0)
write_byte(TE_SPARKS) // TE iId
engfunc(EngFunc_WriteCoord, vecEndPos[0]) // x
engfunc(EngFunc_WriteCoord, vecEndPos[1]) // y
engfunc(EngFunc_WriteCoord, vecEndPos[2]) // z
message_end()
return HAM_SUPERCEDE;
}
}
return HAM_HANDLED;
}
stock print_chatColor(const id, const input[], any:...)
{
new msg[191], players[32], count = 1;
vformat(msg,190,input,3);
replace_all(msg,190,"\g","^4");// green
replace_all(msg,190,"\n","^1");// normal
replace_all(msg,190,"\t","^3");// team
if (id) players[0] = id; else get_players(players,count,"ch");
for (new i=0;i<count;i++)
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("SayText"),_,players[i]);
write_byte(players[i]);
write_string(msg);
message_end();
}
}
Done.
0
0
Back to top
Freakz Forum Index
->
Trash Bin
->
CS 2006-2019 (Archived)
->
Resources
The time now is 30-07-2025, 13:49:02
Copyright info
Based on phpBB
ro
/
com
B
Login
I forgot my password
World of Warcraft
Login for more...
Download WoW 7.3.5
Misc
eSports
Achievements
Buy reputation with votes
Reputation trades
Forum rules
Ban list
Members list
User guide (FAQ)
World of Warcraft
View details