PHP Code:
// In plugin_init ( ), add this line.
RegisterHam ( Ham_Killed, "player", "ham_player_killed", 1 )
// Now, create the function.
public ham_player_killed ( index )
{
if ( cs_get_user_team ( index ) == CS_TEAM_T )
{
set_pev ( index, pev_deadflag, DEAD_RESPAWNABLE )
// Or you can use other method, like this.
// ExecuteHamB ( Ham_CS_RoundRespawn, index )
}
}