Dont know if this code will work, but give it a try.
Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>
/*
*********************************************************
* Find the admins and make them glow *
*********************************************************
*/
Glowadmins() {
if (get_user_flags(id) & ADMIN_KICK) {
}
return PLUGIN_CONTINUE
}
/* Make the admins glow on each team */
if (get_user_flags(id) & ADMIN_KICK) set_user_rendering(get_user_flags(id) & ADMIN_KICK, kRenderFxGlowShell, 0, 0, 255, kRenderNormal, 15)
if (get_user_flags(id) & ADMIN_KICK) set_user_rendering(get_user_flags(id) & ADMIN_KICK, kRenderFxGlowShell, 255, 0, 0, kRenderNormal, 15)
}
/*
*********************************************************
* Turn off glowing for the admins on each team *
*********************************************************
*/
UnGlowadmins() {
if (get_user_flags(id) & ADMIN_KICK) set_user_rendering(get_user_flags(id) & ADMIN_KICK, kRenderFxNone, 0, 0, 0, kRenderNormal, 0)
if (get_user_flags(id) & ADMIN_KICK) set_user_rendering(get_user_flags(id) & ADMIN_KICK, kRenderFxNone, 0, 0, 0, kRenderNormal, 0)
}
/*
*********************************************************
* Stop Glowing at RoundStart *
*********************************************************
*/
public roundStart()
{
UnGlowadmins()
}
/*
*********************************************************
* Start Glowing at RoundEnd *
*********************************************************
*/
public roundEnd()
{
Glowadmins()
}
/*
*********************************************************
* Report Glowing
*********************************************************
*/
public reportGlow(id)
{
new s_message[] = "Admins Glow at RoundEnd to RoundStart"
set_hudmessage(0,255,0, 0.05, 0.50, 2, 0.1, 3.0, 0.02, 0.02, 10)
show_hudmessage(id, s_message)
client_print(id, print_chat, s_message)
return PLUGIN_HANDLED
}
/*
*********************************************************
* Initialise the Plugin *
*********************************************************
*/
public plugin_init()
{
register_plugin("Admin Glow","v0.1","scriptyboy");
register_logevent("roundStart", 2, "1=Round_Start")
register_logevent("roundEnd", 2, "1=Round_End")
register_clcmd("say admins", "reportGlow")
register_clcmd("say_team admins", "reportGlow")
return PLUGIN_CONTINUE;
}