|
Author
|
Message
|
|
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
|

06-01-2012
, 15:27
Re: [ZP] Addon : Easy First Zombie Sorting.
|
#1
|
I think you miss judged this, in plugins that are huge, if you are use fakemeta and fun you would not need it, just to call rendering or maybe some other small functions? In this case its better to use fun because fun > fakemeta
In case that i was talking about --> http://forums.alliedmods.net/showthread.php?p=571256
So again
-->
Quote:
Originally Posted by H.RED.ZONE
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) } }
|
__________________
|
|
|
|