ItsMods

Full Version: How We Make A Toggle?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
(07-26-2011, 12:29)Lost4468 Wrote: [ -> ]
(07-25-2011, 22:03)koil Wrote: [ -> ]its very wrong..

add to init -

This is dumb, in init self is the level, you do know self isn't the player most of the time?


Edit: Here's mine

Code:
toggle3p()
{
    while(isalive(self))
    {
        if(self ActionSlotThreeButtonPressed())
            self setclientdvar("cg_thirdperson",!getdvarint("cg_thirdperson"));
        wait 0.05;
    }
}

Mine works.
Pages: 1 2 3