hi coders.
i am using this plugin which allows to glow a color on vip.
i want to make a golden color for both teams to glow.
can anybody help me out?
i got the code of golden color but i was having problem to compile so i used a HUD_COLOR
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "VIP Glow"
#define VERSION "1.0"
#define AUTHOR "Author"
new const VIP_ACCESS = ADMIN_LEVEL_H
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1);
}
public PlayerPostSpawn(id)
{
if(is_user_alive (id) && get_user_flags(id) & VIP_ACCESS)
set_user_rendering(id, kRenderFxGlowShell, cs_get_user_team(id) == CS_TEAM_CT ? 0 : 255, 0, cs_get_user_team(id) == CS_TEAM_CT ? 255 : 0, kRenderNormal, 16)
}
New Which I Edited For Color
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <hamsandwich>
#define PLUGIN "VIP Glow"
#define VERSION "1.0"
#define AUTHOR "Author"
new const VIP_ACCESS = ADMIN_LEVEL_H
// Color For VIP Glow
new const HUD_COLOR[3] = {255, 255, 85}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "PlayerPostSpawn", 1);
}
public PlayerPostSpawn(id)
{
if(is_user_alive (id) && get_user_flags(id) & VIP_ACCESS)
set_user_rendering(id, kRenderFxGlowShell, cs_get_user_team(id) == CS_TEAM_CT ? 0 : HUD_COLOR[1], cs_get_user_team(id) == CS_TEAM_CT ? HUD_COLOR[1] : 0, kRenderNormal, 16)
}
thanks in advance
__________________