|
Author
|
Message
|
|
Veteran Member
Join Date: Jan 2009
Location: Indonesia
|

04-09-2009
, 21:10
Re: Problem with a class of zombie
|
#1
|
Quote:
Originally Posted by alan_el_more
i have this:
PHP Code:
#include <amxmodx> #include <fakemeta> #include <zombieplague>
#define PLUGIN "[ZP] Clase : Zombie Incandescente" #define VERSION "1.0" #define AUTHOR "alan_el_more"
new g_zclase, aura[33], g_maxplayers
// Zombie Attributes new const zclass_name[] = { "Zombie Incandescente" } // nombre new const zclass_info[] = { "Aura" } // descripcion new const zclass_model[] = { "zombie_source" } // model new const zclass_clawmodel[] = { "v_knife_zombie.mdl" } // model de las manos const zclass_health = 5000 // vida const zclass_speed = 1 // velocidad const Float:zclass_gravity = 1.0 // gravedad const Float:zclass_knockback = 1.0 // knockback const zclass_infecthp = 500 // vida extra por infeccion
public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_forward(FM_PlayerPreThink, "FwdPrethink") register_event("DeathMsg", "player_die", "a") g_maxplayers = get_maxplayers() } public plugin_precache() { g_zclase = 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_zclase) aura[player] = true }
public zp_user_humanized_post(id) { if(aura[id]) aura[id] = false } public player_die() { for(new id; id <= g_maxplayers; id++) if(aura[id]) aura[id] = false }
public FwdPrethink(id) { if(!aura[id] || !is_user_alive(id)) return if (zp_get_user_zombie_class(id) == g_zclase) { static Float:originF[3] pev(id, pev_origin, originF) engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0) write_byte(TE_DLIGHT) engfunc(EngFunc_WriteCoord, originF[0]) engfunc(EngFunc_WriteCoord, originF[1]) engfunc(EngFunc_WriteCoord, originF[2]) write_byte(10) // radio write_byte(255) // rojo write_byte(0) // verde write_byte(0) // azul write_byte(2) write_byte(0) message_end() } }
The problem is that the zombie does not move.
Does anyone i could solve?
Thanks in advance 
|
because, you set speed is 1.
|
|
|
|