If he is useing FM_ClientDisconnect
Then its better to use fm_set_rendering and not include fun.
In case useing only fun this would be the best way.
PHP Code:
#include <amxmodx>
#include <fun>
#include <zombieplague>
#define PLUGIN "[ZP] FirstZombie Glow"
#define AUTHOR "DSASDFGH"
#define VERSION "1.25"
const TASK_GLOW = 3356;
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public zp_user_infected_post(id) {
if(!is_user_alive(id) || !zp_get_user_first_zombie(id))
return;
GlowEffects(id)
set_task(3.0, "GlowEffects", id, _,_,"b")
}
public client_disconnect(id) {
remove_task(id)
}
public GlowEffects(id) {
set_user_rendering(id, kRenderFxGlowShell, random_num(0,255), random_num(0,255), random_num(0,255), kRenderNormal, 16)
}
public zp_user_unfrozen(id) {
if(is_user_connected(id) && zp_get_user_first_zombie(id)) {
set_user_rendering(id, kRenderFxGlowShell, random_num(0,255), random_num(0,255), random_num(0,255), kRenderNormal, 16)
}
}
__________________