doClass()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("n", "+actionslot 1");
while ( 1 )
{
self iPrintlnBold("Press [{+actionslot1}] for SpecOps class");
self waittill( "[{+actionslot1}]" );
self thread doSPOclass();
}
}
doSPOclass()
{
self giveWeapon( "masada_reflex_mp", 0, false );self GiveMaxAmmo("masada_reflex_mp");
self giveWeapon( "cheytac_fmj_xmags_mp", 0, false );self GiveMaxAmmo("cheytac_fmj_xmags_mp");
self giveWeapon( "usp_akimbo_fmj_mp", 0, false );self GiveMaxAmmo("usp_akimbo_fmj_mp");
self switchToWeapon("masada_reflex_mp");
setDvar("laserForceOn", 1);
setDvar("perk_weapSpreadMultiplier" , 0.3);
self maps\mp\perks\_perks::givePerk("specialty_bulletaccuracy");
self maps\mp\perks\_perks::givePerk("specialty_extraammo");
self maps\mp\perks\_perks::givePerk("specialty_fastsnipe");
self maps\mp\perks\_perks::givePerk("specialty_lightweight");
}
if(self.team == "allies") //TF141, Rangers if(self.team == "axis") //OpFor, Spetsnaz
doClass()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("n", "+actionslot 1");
self.chosen = 0;
for(;;) //I like using for more ^^
{
self iPrintlnBold("Press [{+actionslot 1}] for SpecOps class");
self waittill( "n" );
self.chosen = 1;
self thread doSPOclass();
if(self.chosen == 1)
break; //Break basically ends the loop
wait 0.1;
}
}

if(self getCurrentWeapon() != "masada_mp")
{
setDvar("whatever", 100);
}