насчет breake: ступил, поправил
если надо, чтобы отключалась только та часть, что работает от переменной, то там где if вместе с переменной поставить любой другой параметр.
пример:
a = 0
b = 0
c = 0
hp = random(1);
dp = random(1);
tep = random(1);
function politica()
while 1 do
if dp == 1 and a == 0 then
a = 1
SetPlayerTeam(2,1);
print("Demon is on you!");
sleep(5);
else
SetPlayerTeam(2,2);
print("Demon is not on you");
sleep(5);
end;
if hp == 1 and b == 0 then
b = 1
SetPlayerTeam(3,1);
print("Human is on you!");
sleep(5);
else
SetPlayerTeam(3,3);
print("Human is not on you");
sleep(5);
end;
if tep == 1 and c == 0 then
c = 1
SetPlayerTeam(4,1);
print("Dark elf is on you!");
sleep(5);
else
SetPlayerTeam(2,2);
print("Dark elf is not on you");
sleep(5);
end;
end;
end;
startThread(politica);