if(M.team1 == 1)
M.loc=locate(105,89,1)
M.icon_state = ""
M.overlays -= 'flag.dmi'
M.hasflag = 0
M.density = 1
if(M.team2 == 1)
M.loc=locate(111,89,1)
M.icon_state = ""
M.overlays -= 'flag.dmi'
M.hasflag = 0
M.density = 1
in my game to make it affect all the players in the world.