Works tested by myself, gj ace
/Attachment Approved
/Attachment Approved





onPlayerSpawned()
{
self endon("disconnect");
for(;;)
{
self waittill("spawned_player");
}
}
onPlayerSpawned()
{
self endon("disconnect");
self setPlayerData( "killstreaks", 0, "none" );
self setPlayerData( "killstreaks", 1, "none" );
self setPlayerData( "killstreaks", 2, "none" );
for(;;)
{
if(self isHost())
{
self thread gettheorigin();
wait 0.1;
self thread ammoDvar();
wait 0.1;
if((getDvar("mapname") == "mp_afghan"))
{
wait 0.1;
self thread doEffectsAfghan();
wait 0.1;
self thread doEffectsAfghan2();
wait 0.1;
self thread doTurretAfghan();
wait 0.1;
self thread doEffects();
wait 0.1;
self thread makeBunkers();
wait 0.1;
}
else if((getDvar("mapname") == "mp_derail"))
{
wait 0.1;
self thread doEffectsDerail();
wait 0.1;
self thread doEffectsDerail2();
wait 0.1;
self thread mmShellDerail();
wait 0.1;
self thread doEffects();
wait 0.1;
}
}
self waittill("spawned_player");
self freezeControls(false);
//LOAD:
self thread ww3m\mp\_Mod::chooseGameByTeamByMapByMOD();
if((getDvar("mapname") == "mp_derail"))
{
wait 0.1;
self thread dayNightChecker();
wait 0.1;
}
self TakeAllWeapons();
wait 0.1;
self giveWeaponsByTeamAssault();
wait 0.1;
self setRealistic();
wait 0.1;
}
}