Hi so I'm trying to apply a transparent color for the jctf respawn but I can't apply it at all, I wanted the same transparent white regame if it's not possible I just wanted to change the color of the protection to white could someone help me?
PHP Code:
player_updateRender(id, Float:fDamage = 0.0)
{
// Vars
new bool:bGlows = (get_pcvar_num(pCvar_ctf_glows) == 1)
new iTeam = get_user_team(id)
new iMode = kRenderNormal
new iEffect = kRenderFxNone
new iColor[3] = {0,0,0}
// Protected
if(g_bProtected[id])
{
iEffect = kRenderFxHologram;
// Collor
iColor[0] = (iTeam == TEAM_RED ? 155 : 0)
iColor[1] = (fDamage > 0.0 ? 100 - clamp(floatround(fDamage), 0, 100) : 0)
iColor[2] = (iTeam == TEAM_BLUE ? 155 : 0)
}
// FEATURE_ADRENALINE == true
#if FEATURE_ADRENALINE == true
switch(g_iAdrenalineUse[id])
{
case ADRENALINE_BERSERK:
{
// Glows
if(bGlows) iEffect = kRenderFxGlowShell
// Collor
iColor = {55, 0, 55}
}
case ADRENALINE_INVISIBILITY:
{
iMode = kRenderTransAlpha
// Glows
if(bGlows) iEffect = kRenderFxGlowShell
// Collor
iColor = {15, 15, 15}
}
}
#endif
/if(player_hasFlag(id))
{
// Type
if(iMode != kRenderTransAlpha) iMode = kRenderNormal;
if(bGlows) iEffect = kRenderFxGlowShell
// Color
iColor[0] = (iTeam == TEAM_RED ? (iColor[0] > 0 ? 200 : 155) : 0)
iColor[1] = (iAmount == 160 ? 55 : 0)
iColor[2] = (iTeam == TEAM_BLUE ? (iColor[2] > 0 ? 200 : 155) : 0)
}*/
// Render
fm_set_rendering(id, iEffect, 0, iColor[1], 0, iMode, 10)
}