SOLVED

[s]i acually have another problem how can i trap a jointeam command exception? Like to prevent the engine from crashing when someone types a number greater then 2
(eg. jointeam 5 or jointeam 9 is handeled by an exception and engine will not crash)

current jointeam command....
[blue] if ( FStrEq( pcmd, "jointeam" ) )
{
	if ( CMD_ARGC( ) > 1 )
	{
		pPlayer->m_iNextTeam = atoi( CMD_ARGV( 1 ) );
		// team change is handled in PlayerSpawn, so respawn!
		respawn( pPlayer->pev, FALSE );
	}
	return TRUE;
}[/blue][/s]