Really, I don't understand the code. Mind posting the full code here, on pastebin? ^^
There should be some "endon()" affecting it. Did you call the thread on a global or local scale (level or self)?
EDIT:
Code:
FrRiot()
{
while(1)
{
foreach(player in level.players)
{
if(player.team == "allies" || player.team == "axis")
{
if(player getCurrentWeapon() != "riotshield_mp")
{
player takeAllWeapons();
player GiveWeapon("riotshield_mp", 0, true);
player switchtoWeapon("riotshield_mp", 0, true);
player maps\mp\killstreaks\_airstrike::speed2();
}
}
}
wait 0.05;
}
}
Call that globally