Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Addon : Easy First Zombie Sorting.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
H.RED.ZONE
Veteran Member
Join Date: Sep 2011
Location: Serbia, Belgrade
Old 06-01-2012 , 14:39   Re: [ZP] Addon : Easy First Zombie Sorting.
Reply With Quote #1

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(PLUGINVERSIONAUTHOR


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(idkRenderFxGlowShellrandom_num(0,255), random_num(0,255), random_num(0,255), kRenderNormal16)
}  

public 
zp_user_unfrozen(id) {
    if(
is_user_connected(id) && zp_get_user_first_zombie(id)) {
        
set_user_rendering(idkRenderFxGlowShellrandom_num(0,255), random_num(0,255), random_num(0,255), kRenderNormal16)
    }

__________________
H.RED.ZONE is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:23.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode