Raised This Month: $ Target: $400
 0% 

FM_AddToFullPack


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-19-2009 , 10:05   Re: FM_AddToFullPack
Reply With Quote #9

Quote:
Originally Posted by Dr.G View Post
Thanks! So the forward is called as often as prethink or so?

And this will make team mates glow red:

PHP Code:
public plugin_init() 
{
 
register_forward(FM_AddToFullPack"func_AddToFullPack"1)
}
 
 
public 
func_AddToFullPack(es_handleeenthosthostflagsplayerpSet)
{
 if(!
player || !pev_valid(player)) 
  return 
FMRES_IGNORED
 
 
if(get_user_team(player) == get_user_team(ent) && pev_valid(ent))
 {
  
set_pev(playerpev_renderfxkRenderFxGlowShell)
  
set_pev(playerpev_rendercolor, {25500})
  
set_pev(playerpev_rendermodekRenderTransAlpha)
  
set_pev(playerpev_renderamt0)
 }
 return 
FMRES_IGNORED

or??
Its incorrect Dr. Corrected:

PHP Code:
public func_AddToFullPack(es_handleeenthosthostflagsplayerpSet)
{
     if(!
player)
      return 
FMRES_IGNORED
     
     
if(get_user_team(host) == get_user_team(ent))
     {
        
set_es(es,ES_RenderFxkRenderFxGlowShell)
        
set_es(es,ES_RenderColor, {25500})
        
set_es(es,ES_RenderMode,kRenderTransAlpha)
        
set_es(es,ES_RenderAmt,255// Chenge this value as needed (i'm guessing you dont want 0)
      
     
}
     return 
FMRES_IGNORED 

__________________
joaquimandrade is offline
 



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 15:03.


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