I found this code to prevent this problem.
PHP Code:
set_pdata_int(id, 125, (get_pdata_int(id, 125, 5) & ~(1<<8)), 5)
if you would search it, you can find it too. Anyway, here you go
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>
new CurrentTeam[33] = 'U';
public plugin_init() {
register_plugin("Plugin", "1.0", "akcaliberg")
register_event("TeamInfo", "eTeamChange", "a")
}
public eTeamChange() {
static id, szTeam[2];
id = read_data(1);
read_data(2,szTeam,1)
if(CurrentTeam[id] != szTeam[0]) {
CurrentTeam[id] = szTeam[0];
if(szTeam[0] == 'S') set_pdata_int(id, 125, (get_pdata_int(id, 125, 5) & ~(1<<8)), 5)
}
}