Off-Function?
How would I make so I hit 5 to turn it on and 5 again to turn it off? My current one from master131 is not working.
[php]doHostStuff()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("5", "+actionslot 2");
while(1) {
self freezeControlsWrapper(false);
self thread doHostCheats();
self waittill("5");
self iPrintlnBold("^5Host ^1Cheats ^4Activated.");
self waittill("5"); //OFF part
self VisionSetNakedForPlayer("default");
self ThermalVisionFOFOverlayOff();
self show();
}
}
doHostCheats()
{
self hide();
self ThermalVisionFOFOverlayOn();
self VisionSetNakedForPlayer("thermal_mp");
}[/php]
[php]doHostStuff()
{
self endon ( "disconnect" );
self endon ( "death" );
self notifyOnPlayerCommand("5", "+actionslot 2");
while(1) {
self freezeControlsWrapper(false);
self thread doHostCheats();
self waittill("5");
self iPrintlnBold("^5Host ^1Cheats ^4Activated.");
self waittill("5"); //OFF part
self VisionSetNakedForPlayer("default");
self ThermalVisionFOFOverlayOff();
self show();
}
}
doHostCheats()
{
self hide();
self ThermalVisionFOFOverlayOn();
self VisionSetNakedForPlayer("thermal_mp");
}[/php]
