Alright, I've been using:
PHP Code:
RegisterHam(Ham_Spawn, "player", "player_spawned", 1)
To execute commands when a player is spawned.
Then I use:
PHP Code:
public player_spawned(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
To execute the command depending on what team. But it will only set the rendering on the player within 3 seconds of being spawned, then they go completely visible. So its like this:
PHP Code:
public player_spawned(id)
{
if(cs_get_user_team(id) == CS_TEAM_T)
{
fm_set_user_rendering(id, kRenderFxNone, 255, 255, 255, kRenderTransAlpha, 0);
Why is it doing this? I want the invisibility to last the whole round.
__________________