- public glow()
- {
- for(new id = 1; id <= g_iMaxPlayers; id++)
- {
- if (!is_user_alive(id))
- continue
- if (get_pcvar_num(g_pCvarVipGlow) != 0)
- {
- // Set Glow For VIP Players
- for (new i = 1; i <= g_iMaxPlayers; i++)
- {
- if (!is_user_alive(i))
- continue
- if (ze_get_vip_flags(id) & VIP_A) // if user is vip
- {
- if (get_pcvar_num(g_pCvarVipGlowRandom) == 0)
- {
- Set_Rendering(i, kRenderFxGlowShell, get_pcvar_num(g_pCvarVipGlowColors[Red]), get_pcvar_num(g_pCvarVipGlowColors[Green]), get_pcvar_num(g_pCvarVipGlowColors[Blue]), kRenderNormal, 40)
- }
- else
- {
- Set_Rendering(i, kRenderFxGlowShell, random(256), random(256), random(256), kRenderNormal, 40)
- }
- }
- else
- {
- Set_Rendering(i)
- }
- }
- }
- }
- }
vip glow
-
- Member
- Posts: 27
- Joined: 5 years ago
- Contact:
vip glow
I copied the code for the leader glow into the vip system plugin and modified the names of the cvars etc. The glow works when im alone in the server but after another player joins my glow is removed after a round restart. Does anyone know what I need to do to keep the glow? below is the code minus the cvars.
- Night Fury
- Mod Developer
- Posts: 677
- Joined: 7 years ago
- Contact:
Code: Select all
public glow()
{
if (get_pcvar_num(g_pCvarVipGlow) != 0)
{
for (new id = 1; id <= g_iMaxPlayers; id++)
{
if (!is_user_alive(id))
continue
if (ze_get_vip_flags(id) & VIP_A) // if user is vip
{
if (get_pcvar_num(g_pCvarVipGlowRandom) == 0)
{
Set_Rendering(i, kRenderFxGlowShell, get_pcvar_num(g_pCvarVipGlowColors[Red]), get_pcvar_num(g_pCvarVipGlowColors[Green]), get_pcvar_num(g_pCvarVipGlowColors[Blue]), kRenderNormal, 40)
}
else
{
Set_Rendering(i, kRenderFxGlowShell, random(256), random(256), random(256), kRenderNormal, 40)
}
}
else
{
Set_Rendering(i)
}
}
}
}
-
- Member
- Posts: 27
- Joined: 5 years ago
- Contact:
I will try it when I get home thanks
-
- Member
- Posts: 27
- Joined: 5 years ago
- Contact:
thanks it worked
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute
Sign in
Who is online
Users browsing this forum: No registered users and 0 guests