If you don't know how to do, you can freeze the player who changed team with this stocks :
Code:
Freeze( id )
{
if( is_user_alive(id) )
{
new iFlags = pev(id, pev_flags)
if( ~iFlags & FL_FROZEN )
{
set_pev(id, pev_flags, iFlags | FL_FROZEN)
}
}
}
UnFreeze( id )
{
if( is_user_alive(id) )
{
new iFlags = pev(id, pev_flags)
if( iFlags & FL_FROZEN )
{
set_pev(id, pev_flags, iFlags & ~FL_FROZEN)
}
}
}