
if(self.team == "axis")
{
//Do stuff if you are on Spetsnaz or OpFor
}
if(self.team == "allies")
{
//Do stuff if you are on TF141 or Rangers
}
onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
if(self.team == "axis")
{
//Do stuff if you are on Spetsnaz or OpFor
}
if(self.team == "allies")
{
//Do stuff if you are on TF141 or Rangers
}
}
}