How i can catch the Change Team Event?
i store the Teams in a Variable
And how to catch the Teamchange and not just hook jointeam
i need cs_set_user_team too
Greetings
:My Code:
PHP Code:
public catch_team(id)
{
if ( cs_get_user_team ( id ) == CS_TEAM_T )
{
PlayerInfo[id][p_team] = 1
}
else if( cs_get_user_team ( id ) == CS_TEAM_CT )
{
PlayerInfo[id][p_team] = 2
}
else if( cs_get_user_team ( id ) == CS_TEAM_SPECTATOR )
{
PlayerInfo[id][p_team] = 3
}
else if( cs_get_user_team ( id ) == CS_TEAM_UNASSIGNED )
{
PlayerInfo[id][p_team] = 4
}
}
__________________