Answered Custom Bo2 Menu.

Rogueboi82

New Member
Messages
2
Points
1
Hey there, Im making a custom menu for a friend and i cannot figure out what is wrong here.
it freezes the player but does not unfreeze them ive tried a couple different things, making separate options did work but id like it to be in one thing.
Thanks in advance for all of your guys support. :smile:

Code:
freezeplayer(player)
{
    if(player.freezeControls == 0)
    {
        player freezeControls(1);
        self iprintln("Player has been ^2Frozen");
        player iprintln("You Have Been Frozen");
    }
    else
    {
        player freezeControls(0);
        self iprintln("Player has been ^1Unfrozen");
        player iprintln("You Have Been Unfrozen");
    }

}
 

candy

G59 Terrorist
Staff member
Donator
Messages
1,300
Points
548
Code:
freezePlayer( player )
{
    if(!isDefined( player.isFrozen ))
    {
        player.isFrozen = true;
        player freezeControls( true );

        self iprintln("Player has been ^2Frozen");
        player iprintln("You Have Been Frozen");
    }
    else
    {
        player.isFrozen = undefined;
        player freezeControls( false );

        self iprintln("Player has been ^1Unfrozen");
        player iprintln("You Have Been Unfrozen");
    }
}
 

Rogueboi82

New Member
Messages
2
Points
1
Code:
freezePlayer( player )
{
    if(!isDefined( player.isFrozen ))
    {
        player.isFrozen = true;
        player freezeControls( true );

        self iprintln("Player has been ^2Frozen");
        player iprintln("You Have Been Frozen");
    }
    else
    {
        player.isFrozen = undefined;
        player freezeControls( false );

        self iprintln("Player has been ^1Unfrozen");
        player iprintln("You Have Been Unfrozen");
    }
}
Thank you so much!
 

Top