Code:
#include <amxmodx>
#include <fun>
#include <cstrike>
#define PLUGIN "Team Glow"
#define VERSION "1.0"
#define AUTHOR "Shaitan"
// Description: This plugin makes all the CTs glow blue, and all the the Ts glow RED.
// This is because sometimes in the dark, you cant tell if its your team
// and you dont want to TK.. It will be very noticable and easy for the other team
// to spot you though
//
// Usage: amx_glow <1|0> 1 = Enable, 0 = Disable
//
//Fun module required
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_glow","sv_glow",ADMIN_SLAY, "<1|0>")
register_cvar("sv_glow", "1")
register_event("ResetHUD","sv_glow","be");
}
public sv_glow(id) {
if ((get_cvar_float("sv_glow") == 0))
return PLUGIN_CONTINUE
new arg[2];
read_argv(1,arg,1);
if(arg[0] == '1')
{
switch(get_user_team(id))
{
case 1: set_user_rendering(id, kRenderFxGlowShell, 255, 100, 100, kRenderNormal, 255)
case 2: set_user_rendering(id, kRenderFxGlowShell, 100, 100, 255, kRenderNormal, 255)
}
}
else if(arg[0] == '0')
{
set_user_rendering(id, kRenderFxGlowShell, 0, 0, 0, kRenderNormal, 255)
}
return PLUGIN_CONTINUE
}