Raised This Month: $ Target: $400
 0% 

API Scripting Help Function to first zombie


Post New Thread Reply   
 
Thread Tools Display Modes
DSASDFGH
Senior Member
Join Date: Jul 2011
Location: Facebook
Old 07-26-2011 , 13:07   Re: Function to first zombie
Reply With Quote #11

thanks you ^^
i succesfully to make first zombie glow ^^

Fixed 1 - After unfrozen, glow disenabled
PHP Code:
#include <amxmodx> 
#include <fakemeta>
#include <zombieplague> 
#define PLUGIN    "[ZP] FirstZombie Glow" 
#define AUTHOR    "DSASDFGH" 
#define VERSION    "1.25" 
public plugin_init() 

 
register_plugin(PLUGINVERSIONAUTHOR

public 
zp_user_infected_post(id

 
// Check user connected and 1st zombie 
 
if(is_user_connected(id) && zp_get_user_first_zombie(id)) 
 { 
  
// GlowEffects
  
GlowEffects(id)
 } 

GlowEffects(id

 
fm_set_rendering(idkRenderFxGlowShell00255kRenderNormal25)
}  
public 
zp_user_unfrozen(id) {
 if(
is_user_connected(id) && zp_get_user_first_zombie(id)) {
 
fm_set_rendering(idkRenderFxGlowShell0255255kRenderNormal25)
 }
}
stock fm_set_rendering(entityfx kRenderFxNone255255255render kRenderNormalamount 16)
{
 static 
Float:color[3]
 
color[0] = float(r)
 
color[1] = float(g)
 
color[2] = float(b)
 
 
set_pev(entitypev_renderfxfx)
 
set_pev(entitypev_rendercolorcolor)
 
set_pev(entitypev_rendermoderender)
 
set_pev(entitypev_renderamtfloat(amount))


Last edited by DSASDFGH; 07-26-2011 at 14:17.
DSASDFGH is offline
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 07-26-2011 , 13:45   Re: Function to first zombie
Reply With Quote #12

Good work dude, you just learn some thing today
__________________
Team-MMG CS1.6 Servers:
✅ MultiMod -- 103.179.44.152:27016
✅ Zombie Plague -- 103.179.44.152:27015
✅ Zombie Escape -- 103.179.44.152:27017
✅ Klassik Kombat -- 103.179.44.152:27018
✅ Boss-Battle -- 103.179.44.152:27019
yokomo 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 09:11.


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