Post: How can I add freeze and teleport player to "SIMPLE MENU BASE"
08-27-2015, 05:07 AM #1
Blair.
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); Somebody tell me how to add freeze and teleport player to "simple menu base" in players menu ( for bots mainly )
(adsbygoogle = window.adsbygoogle || []).push({});
08-27-2015, 05:18 AM #2
itsSorrow
In my man cave
Originally posted by oFierce View Post
Somebody tell me how to add freeze and teleport player to "simple menu base" in players menu ( for bots mainly )


how do you add a normal players function?
08-27-2015, 05:51 AM #3
Blair.
Bounty hunter
Originally posted by GentleSlugger View Post
how do you add a normal players function?


It teleport the bot but doesn't freeze
08-27-2015, 05:53 AM #4
itsSorrow
In my man cave
Originally posted by oFierce View Post
It teleport the bot but doesn't freeze


oh lord gimme a second..

    
freezeandtele(player)
{
player setOrigin(self.origin);
if(player.Frozen == "On") {
player.Frozen = "Off";
player freezeControls(false);
} else {
player.Frozen = "On";
player freezeControls(true);
}
self iPrintln(player.name + "Has Been ^1Frozen ^7& ^1Teleported!");
player iPrintln("You Have Been ^1Frozen ^7& ^1Teleported!");
}
08-27-2015, 05:58 AM #5
Blair.
Bounty hunter
Originally posted by GentleSlugger View Post
oh lord gimme a second..

    
freezeandtele(player)
{
player setOrigin(self.origin);
if(player.Frozen == "On") {
player.Frozen = "Off";
player freezeControls(false);
} else {
player.Frozen = "On";
player freezeControls(true);
}
self iPrintln(player.name + "Has Been ^1Frozen ^7& ^1Teleported!");
player iPrintln("You Have Been ^1Frozen ^7& ^1Teleported!");
}

That's the code i used it doesn't work with simple menu base
08-27-2015, 05:59 AM #6
itsSorrow
In my man cave
Originally posted by oFierce View Post
That's the code i used it doesn't work with simple menu base


it works.. idk wat to tell u
08-27-2015, 07:37 AM #7
-Numb
You talkin to me?
Originally posted by oFierce View Post
That's the code i used it doesn't work with simple menu base


The menu base should have nothing to do with it.. That code freeze the player and unfreeze the player every second time.. try this instead
    freezeandtele(player)
{
player setOrigin(self.origin);
player freezeControls(true);

self iPrintln(player.name + " Has Been ^1Frozen ^7& ^1Teleported!");
player iPrintln("You Have Been ^1Frozen ^7& ^1Teleported!");
}
08-27-2015, 07:39 AM #8
itsSorrow
In my man cave
Originally posted by Numb View Post
The menu base should have nothing to do with it.. That code freeze the player and unfreeze the player every second time.. try this instead
    freezeandtele(player)
{
player setOrigin(self.origin);
player freezeControls(true);

self iPrintln(player.name + " Has Been ^1Frozen ^7& ^1Teleported!");
player iPrintln("You Have Been ^1Frozen ^7& ^1Teleported!");
}


that wouldn't disable it though.. you literally just deleted some from my code..
08-27-2015, 07:47 AM #9
-Numb
You talkin to me?
Originally posted by GentleSlugger View Post
that wouldn't disable it though.. you literally just deleted some from my code..


You could have another function for unfreeze the player? The first time he would use your code it will just teleport him and not freeze him,
that is probably why he thinks it does not work.. and yes I just edited the code you posted?
08-27-2015, 07:49 AM #10
itsSorrow
In my man cave
Originally posted by Numb View Post
You could have another function for unfreeze the player? The first time he would use your code it will just teleport him and not freeze him,
that is probably why he thinks it does not work.. and yes I just edited the code you posted?


It works.. I use that all the time for my priv menu & its also in devours superman menu

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo