how do i add green glow on this zombie ????
here my scripting
PHP Code:
/*
[ZP] Ultimate Big Zombie
(special ability for Big Zombie)
by Fry!
Description :
You all know original Big Zombie but this time Big Zombie have special ability (pain shock free).
Credits :
Simon Logic - for his Pain shock free plugin
Mercylezz - I borrowed some pain shock free code from his zombie plague mod.
Exolent - for fixing lil mistake
Changelog :
16/10/2008 - v1.0 - First Test
16/10/2008 - v1.1 - fixed pain shock not working
19/10/2008 - v1.2 - forgat to add if player was zombie. ^^
07/02/2009 - v1.2.2 - Rewrited plugin, completely fixed pain shock free.
*/
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
/* -------------------------------------------------------------- */
/* */
/* -------------------------------------------------------------- */
#define PLUGIN "[ZP] Class : Ultimate Big Zombie"
#define VERSION "1.2.2"
#define AUTHOR "Fry!"
new g_zclass_painfree
new bool:g_restorevel[33]
new Float:g_velocity[33][3]
new const zclass_name[] = "Ultimate Tank Zombie"
new const zclass_info[] = "H:5000 S:200 G:1.0 K:0.0"
new const zclass_model[] = "zombie_source"
new const zclass_clawmodel[] = "v_knife_zombie_drowned.mdl"
const zclass_health = 5000
const zclass_speed = 200
const Float:zclass_gravity = 1.0
const Float:zclass_knockback = 0.0
public plugin_precache()
{
register_cvar("zp_zclass_pain_free",VERSION,FCVAR_SERVER|FCVAR_EXTDLL|FCVAR_UNLOGGED|FCVAR_SPONLY)
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
register_forward(FM_PlayerPreThink, "fw_PlayerPreThink_Post", 1)
g_zclass_painfree = zp_register_zombie_class(zclass_name, zclass_info, zclass_model, zclass_clawmodel, zclass_health, zclass_speed, zclass_gravity, zclass_knockback)
}
public zp_user_infected_post(player, infector)
{
if (zp_get_user_zombie_class(player) == g_zclass_painfree)
{
pev(player, pev_velocity, g_velocity[player])
}
}
public fw_PlayerPreThink(id)
{
if ( !is_user_alive(id) || !is_user_bot(id) || !zp_get_user_zombie(id) )
return FMRES_IGNORED
if (zp_get_user_zombie_class(id) != g_zclass_painfree)
return FMRES_IGNORED
if (pev(id, pev_flags) & FL_ONGROUND)
{
pev(id, pev_velocity, g_velocity[id])
g_restorevel[id] = true
}
return FMRES_IGNORED
}
public fw_PlayerPreThink_Post(id)
{
if (zp_get_user_zombie_class(id) != g_zclass_painfree)
return FMRES_IGNORED
if (g_restorevel[id])
{
g_restorevel[id] = false
if (!(pev(id, pev_flags) & FL_ONTRAIN))
{
new groundent = pev(id, pev_groundentity)
if (pev_valid(groundent) && (pev(groundent, pev_flags) & FL_CONVEYOR))
{
static Float:vecTemp[3]
pev(id, pev_basevelocity, vecTemp)
g_velocity[id][0] += vecTemp[0]
g_velocity[id][1] += vecTemp[1]
g_velocity[id][2] += vecTemp[2]
}
set_pev(id, pev_velocity, g_velocity[id])
return FMRES_HANDLED
}
}
return FMRES_IGNORED
}
PLease HELP