Descarcare: LINK RESURSE!
Code: Select all
#include <amxmodx>
#include <fakemeta>
#include <engine>
#include <hamsandwich>
#include <zombieplague>
/*================================================================================
[Constants, Offsets, Macros]
=================================================================================*/
// Plugin Version
new const PLUGIN_VERSION[] = "0.2"
// Clot Zombie
new const zclass_name[] = { "Clot Zombie" }
new const zclass_info[] = { ">> Stuns your eyes <<" }
new const zclass_model[] = { "Clot" }
new const zclass_clawmodel[] = { "v_clot_claws.mdl" }
const zclass_health = 6200
const zclass_speed = 250
const Float:zclass_gravity = 0.60
const Float:zclass_knockback = 1.0
/*================================================================================
[Global Variables]
=================================================================================*/
// Game vars
new g_clot // index from the class
public plugin_init()
{
register_plugin("[ZP] ZP Class: Clot", PLUGIN_VERSION, "DJHD!")
RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
}
public plugin_precache()
g_clot = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
/*================================================================================
[Main Forwards]
=================================================================================*/
public zp_user_infected_post(id, infector)
{
if (zp_get_user_zombie_class(id) == g_clot)
{
if(zp_get_user_nemesis(id))
return
print_chatColor(id, "\g[ZP]\n At the time of attack will leave them stunned.")
}
}
// Ham Take Damage Forward
public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type)
{
if(!is_user_alive(victim) || !is_user_alive(inflictor) || !is_user_alive(attacker))
return
if(zp_get_user_zombie_class(attacker) == g_clot && !zp_get_user_zombie(victim))
{
if(zp_get_user_nemesis(attacker))
return
message_begin(MSG_ONE, get_user_msgid("ScreenFade"), _, victim)
write_short((1<<12)) // duration
write_short(0) // hold time
write_short(0x0000) // fade type
write_byte(180) // red
write_byte(0) // green
write_byte(0) // blue
write_byte(200) // alpha
message_end()
new Float:fVec[3]
fVec[0] = random_float(50.0, 150.0)
fVec[1] = random_float(50.0, 150.0)
fVec[2] = random_float(50.0, 150.0)
set_pev(victim, pev_punchangle, fVec)
}
}
/*================================================================================
[Stocks]
=================================================================================*/
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();
}
}
Versiune: -
Link oficial: click
Instalare:
1. Fisierul zp_zclass_clot.sma il puneti in addons/amxmodx/scripting
2. Fisierul zp_zclass_clot.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins-zplague.ini si adaugati la urma:
Code: Select all
zp_zclass_clot.amxx
Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): -
Imagini: -