Is it possible in future official releases to alter next code in csdm_protection.sma:
Code:
SetProtection
(id
)
{
if (g_Protected
[id
])
remove_task(g_Protected
[id
])
if (!
is_user_connected(id
))
return
new team =
get_user_team(id
)
if (!IsValidTeam
(team
))
{
return
}
if(!pev(id, pev_takedamage))
{
//log_amx("can't set protection on player[%d]", id)
g_Protected[id] = 0
return
}
set_task(g_ProtTime,
"ProtectionOver", id
)
g_Protected
[id
] = id
set_rendering
(id, kRenderFxGlowShell, g_ProtColors
[team
][0], g_ProtColors
[team
][1], g_ProtColors
[team
][2], kRenderNormal, g_GlowAlpha
[team
])
set_pev
(id, pev_takedamage,
0.0)
}
This can avoid troubles when custom plugins set their own protection on selected players.
I can give more detailed info on request.
__________________