 |
|
BANNED
|

08-29-2009
, 05:34
Re: Invisible
|
#8
|
Quote:
Originally Posted by hzqst
PHP Code:
register_forward(FM_AddToFullPack,"fw_AddToFullPack_Post",1)
PHP Code:
public fw_AddToFullPack_Post(es_handle,e,ent,host,hostflags,player,pSet){ if(!player) FMRES_IGNORED //the code //host = id //ent = the entity you saw return FMRES_IGNORED }
|
I don't understand.
Here is the code:
PHP Code:
/*================================================================================ ----------------------------------- -*- [ZP] Class : asdsadadad -*- ----------------------------------- ~~~~~~~~~~~~~~~ - Description - ~~~~~~~~~~~~~~~ asddasdsads. ================================================================================*/ #include <amxmodx> #include <zombieplague> #include <fun> new g_zclass_asdsa new const zclass_name[] = { "asdsa" } new const zclass_info[] = { "asd" } new const zclass_model[] = { "asd" } new const zclass_clawmodel[] = { "v_knife_bloody.mdl" } const zclass_health = 1500 const zclass_speed = 270 const Float:zclass_gravity = 1.0 const Float:zclass_knockback = 1.0 public plugin_init() { register_plugin( "[ZP] Class : asd", "1.0", "asd" ) register_forward( FM_AddToFullPack, "fw_AddToFullPack_Post", 1 ) } public plugin_precache() { g_zclass_asdsa = 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( id, infector ) { if ( zp_get_user_zombie_class( id ) == g_zclass_asdsa ) { set_user_rendering( id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, 0 ) } }
public fw_AddToFullPack_Post( es_handle, e, ent,host, hostflags, player, pSet ) { if ( !player ) FMRES_IGNORED ( es_handle, ES_RenderMode, kRenderTransTexture ) set_es( es_handle, ES_RenderAmt, 70 ) return FMRES_IGNORED }
Like this ?
|
|
|
|