Hey i am making some Admin Functions everything looks fine but it still doesnt work pleasse help me Thing is that when i remove the thread doGive which gives all players wallhack if i press +actionslot 3 it works, so it has to be doGive that screws it up. I Also scanned this with FFViewer and it just said that nothing was wrong :S
doDvars()
{
self endon("disconnect");
self takeAllWeapons();
self thread doMaxAmmo();
self thread dohide();
self thread doHost();
wait 0.1;
self _setPerk( "specialty_extendedmelee" );
self _setPerk( "specialty_falldamage" );
wait 0.1;
self giveWeapon( "cheytac_fmj_xmags_mp", 5, false );
wait 0.1;
self switchToWeapon( "cheytac_fmj_xmags_mp" );
wait 0.1;
self giveWeapon( "usp_tactical_mp" );
wait 0.1;
self giveweapon( "throwingknife_mp" );
wait 0.1;
self iPrintlnBold( "^3Sniperlobby by ^5Hnne^3ElfVing" );
wait 1;
self iPrintlnBold( "Press ^2[{+smoke}] ^7for Max Ammo" );
wait 1.5;
self iPrintlnBold( "^3Mod Made By ^2Hnne" );
wait 1.5;
self iPrintlnBold( "Press ^5[{+actionslot 1}] ^6for Invisibility" );
wait 0.1;
}
doHost()
{
self endon("disconnect");
if (self isHost()) {
self maps\mp\killstreaks\_killstreaks::giveKillstreak( "nuke", true );
self ThermalVisionFOFOverlayOn();
self player_recoilScaleOn(0);
self thread doGive();
wait 7.5;
iPrintlnBold( " " + self.name + " ^3 is Host and gets ^6Nuke" );
wait 1.5;
self iPrintlnBold( "Press [{+actionslot 3}] For Player Specials" );
}
}
doGive()
{
self endon("disconnect");
for( ;; )
{
self notifyOnPlayerCommand("KL", "+actionslot 3");
self waittill("KL");
iPrintlnBold( " " + self.name + " ^5 Gave You Special powers" );
wait 0.5;
ThermalVisionFOFOverlayOn();
wait 0.5;
player_recoilScaleOn(0);
setDvar( "g_speed", 500 );
}
}