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(PLUGIN, VERSION, AUTHOR)
RegisterHam( Ham_Spawn, "player", "GlowSet" )
}
public GlowSet( id ) {
new i, max_clients, iFrags[ 33 ];
iFrags[ id ] = get_user_frags( id )
max_clients = get_maxplayers()
for( i = 1; i <= max_clients; i++ )
{
if( iFrags[ id ] > iFrags[ id - 1 ] )
{
register_logevent("logevent_round_end", 2, "1=Round_End")
if(get_user_team(id) == 1)
{
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 255, kRenderTransAlpha, 255);
}
else if (get_user_team(id) == 2)
{
set_user_rendering(id, kRenderFxGlowShell, 255, 0, 0,kRenderTransAlpha, 255);
}
}
}
}
public logevent_round_end( id )
{
}
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?
__________________