Raised This Month: $ Target: $400
 0% 

LeaderGlow Need Help with roundendDetector?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Jaden
Member
Join Date: Jun 2009
Old 06-24-2009 , 23:16   LeaderGlow Need Help with roundendDetector?
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
#define PLUGIN "Team Leader Glow"
#define VERSION "1.0"
#define AUTHOR "`Jaden."
public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
RegisterHamHam_Spawn"player""GlowSet" )
}
public 
GlowSetid ) {
 new 
imax_clientsiFrags33 ];
 
iFragsid ] = get_user_fragsid )
 
 
max_clients get_maxplayers()
 for( 
1<= max_clientsi++ )
 {
 
  if( 
iFragsid ] > iFragsid ] )
{
   
register_logevent("logevent_round_end"2"1=Round_End")  
   if(
get_user_team(id) == 1)
   {
    
set_user_rendering(idkRenderFxGlowShell00255kRenderTransAlpha255);  
   }
   
   else if (
get_user_team(id) == 2)
   
   {
    
set_user_rendering(idkRenderFxGlowShell25500,kRenderTransAlpha255);  
    }
   }
  }
 }
public 
logevent_round_endid )
{
 

K so it works so far, and the other part i have, but if one person is leader and they glow, and then they lose being leader and someone else becomes leader then they both glow, i just want the leader of EACH team to glow.

+Karma and + For help?
__________________
`Jaden.
Jaden is offline
 


Thread Tools
Display Modes

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:43.


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