I'm attempting make snipers a bit less transparent to make them blend in better, I cant seem to get it right though, this is what I'm working with, can I get any assistance? This block is from player_spawn event. Im simply trying to run a check to see if the players class is sniper and if it is change their render color.
Code:
new IsSniper = TF_GetClass("sniper")
if IsSniper = true
SetEntityRenderColor(client, 100, 100, 100, 100)
__________________