ItsMods

Full Version: Wallhack doesn't work :(
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
my wallhack doesn't work and I can't make it right.

first i tried this (doesn't work)
Code:
wh()
{
self iPrintlnBold("Wallhack On");
self ThermalVisionFOFOverlayOn();
wait 60;
self iPrintlnBold("Wallhack Off");
self ThermalVisionFOFOverlayOff();
}
after that iAegle made this for me:
Code:
giveWallhack()
{
    self ThermalVisionFOFOverlayOn();
    infowh = self createFontString("objective", 1.5);
    infowh setPoint("TOP", "TOP", -5, 0);
    infowh setText("");
    for(i=60;i>0;i--)
    {
        infowh setText("Wallhack for: ^3" + i + " ^7sec");
        wait 1;
    }
    self iPrintlnBold("Wallhack Off");
    self ThermalVisionFOFOverlayOff();
    infowh Destroy();
}

it doesn't work either.....

is there a other way to make a wallhack(or fix this) without using
self ThermalVisionFOFOverlayOn();
self ThermalVisionFOFOverlayOff();

but a whole new code?
Code:
wallhack()
{
    self endon( "disconnect" );
        self notifyOnPlayerCommand("5","5");
    for(;;)
    {
        self waittill("5");
        self ThermalVisionFOFOverlayOn();
        self iPrintlnBold("WH On");
        self waittill("5");
        self ThermalVisionFOFOverlayOn();
        self iPrintlnBold("WH Off");         
        }
}
(04-07-2011, 19:34)d0h! Wrote: [ -> ]
Code:
wallhack()
{
    self endon( "disconnect" );
        self notifyOnPlayerCommand("5","5");
    for(;;)
    {
        self waittill("5");
        self ThermalVisionFOFOverlayOn();
        self iPrintlnBold("WH On");
        self waittill("5");
        self ThermalVisionFOFOverlayOn();
        self iPrintlnBold("WH Off");         
        }
}

5 is +actionslot 2

So:
self notifyOnPlayerCommand("5","+actionslot 2");
i was just too lazy to search through the old scripts
it normally works but lags, thank you guys for the new codes.

I keep it like that but in my next mod i put this thx Wink
why dont you use the function i posted if yours is lagging?
it works without problems
(04-08-2011, 14:59)d0h! Wrote: [ -> ]why dont you use the function i posted if yours is lagging?
it works without problems

I found out/solved the problem the wallhack stays for only the first spawn, but I like it Wink

btw thx