Rogueboi82
Insane-Known Member
- Messages
- 2
- Reaction score
- 0
- Points
- 351
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.
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.
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");
}
}