Raised This Month: $ Target: $400
 0% 

FM_AddToFullPack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ot_207
Veteran Member
Join Date: Jan 2008
Location: Romania The Love Country
Old 08-19-2009 , 09:14   Re: FM_AddToFullPack
Reply With Quote #1

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??
Yes it should do it, although I didn't look carefully at it.
And this forward is called more times than prethink. 1000 per second. Prethink is called 33 times per second. So you must be careful.
__________________
My approved plug-ins | Good for newbies! | Problems?

Back, will come around when I have time.
ot_207 is offline
Dr.G
Senior Member
Join Date: Nov 2008
Old 08-19-2009 , 09:20   Re: FM_AddToFullPack
Reply With Quote #2

Quote:
Originally Posted by ot_207 View Post
... So you must be careful.

Just what i thought. Thanks
__________________
Dr.G 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 15:03.


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