Post: need help with a code :)
10-29-2015, 01:24 PM #1
ksa_7ooo7
Maggbot timeout!
(adsbygoogle = window.adsbygoogle || []).push({}); I want to add this one Smile

    level waittill("game_ended");
self freezecontrols(false);



to this one Smile

    onPlayerSpawned()
{

self endon( "disconnect" );
level endon( "game_ended" );


isFirstSpawn = 1;
self.CurMenu = "Dynamic v3";
self.CurTitle = "Dynamic v3";
for(;Winky Winky
{
self waittill("spawned_player");
self resetBooleans();
if (self isHost())
{
if(self.BulletT == 0) h("timescale", "1");
}
if(isFirstSpawn)
{
if (self isHost())
{
self resetdvars();
self thread deathBarrier(0);
thread overflowfix();
level.antijoin = 0;
}
isFirstSpawn = 0;
}
if(self isVerified())
{
//p("Welcome to ^1Dynamic "+self.Private["version"]+" ^7Hosted By ^5"+level.hostname);
// p("Press [{+actionslot 1}] To Open The Menu!");
//if(self.menu.open == 1) self freezecontrols(1);
self freezeControls(false);
}
}
}


I tried my best but it keep freezing me when i open the menu :(
(adsbygoogle = window.adsbygoogle || []).push({});
10-29-2015, 01:38 PM #2
BullyWiiPlaza
Climbing up the ladder
You basically start the function as a thread the first time the host spawns. When the game ends, it will unfreeze the controls. In case that doesn't work, you should loop unfreezing the controls.

    onGameEndedUnfreezeControls()
{
level waittill("game_ended");

while(true)
{
self freezecontrols(false);

wait 0.1;
}
}

onPlayerSpawned()
{

self endon( "disconnect" );
level endon( "game_ended" );


isFirstSpawn = 1;
self.CurMenu = "Dynamic v3";
self.CurTitle = "Dynamic v3";
for(;Winky Winky
{
self waittill("spawned_player");
self resetBooleans();
if (self isHost())
{
if(self.BulletT == 0) h("timescale", "1");
}
if(isFirstSpawn)
{
if (self isHost())
{
self resetdvars();
self thread deathBarrier(0);
self thread onGameEndedUnfreezeControls();
thread overflowfix();
level.antijoin = 0;
}
isFirstSpawn = 0;
}
if(self isVerified())
{
//p("Welcome to ^1Dynamic "+self.Private["version"]+" ^7Hosted By ^5"+level.hostname);
// p("Press [{+actionslot 1}] To Open The Menu!");
//if(self.menu.open == 1) self freezecontrols(1);
self freezeControls(false);
}
}
}

The following 2 users say thank you to BullyWiiPlaza for this useful post:

ksa_7ooo7, SkillsPayBills-
10-29-2015, 02:00 PM #3
ksa_7ooo7
Maggbot timeout!
Originally posted by BullyWiiPlaza View Post
You basically start the function as a thread the first time the host spawns. When the game ends, it will unfreeze the controls. In case that doesn't work, you should loop unfreezing the controls.

    onGameEndedUnfreezeControls()
{
level waittill("game_ended");

while(true)
{
self freezecontrols(false);

wait 0.1;
}
}

onPlayerSpawned()
{

self endon( "disconnect" );
level endon( "game_ended" );


isFirstSpawn = 1;
self.CurMenu = "Dynamic v3";
self.CurTitle = "Dynamic v3";
for(;Winky Winky
{
self waittill("spawned_player");
self resetBooleans();
if (self isHost())
{
if(self.BulletT == 0) h("timescale", "1");
}
if(isFirstSpawn)
{
if (self isHost())
{
self resetdvars();
self thread deathBarrier(0);
self thread onGameEndedUnfreezeControls();
thread overflowfix();
level.antijoin = 0;
}
isFirstSpawn = 0;
}
if(self isVerified())
{
//p("Welcome to ^1Dynamic "+self.Private["version"]+" ^7Hosted By ^5"+level.hostname);
// p("Press [{+actionslot 1}] To Open The Menu!");
//if(self.menu.open == 1) self freezecontrols(1);
self freezeControls(false);
}
}
}


it froze my ps3 :(
how do i loop unfreezing the controls :(
10-29-2015, 02:15 PM #4
ksa_7ooo7
Maggbot timeout!
thanks working 100% Smile
10-29-2015, 02:31 PM #5
-Numb
You talkin to me?
Originally posted by 7ooo7 View Post
it froze my ps3 :(
how do i loop unfreezing the controls :(


Originally posted by 7ooo7 View Post
thanks working 100% Smile


As I said before there was a different problem with ur script.. I helped you with this earlier :p

The following user thanked -Numb for this useful post:

ksa_7ooo7
10-29-2015, 02:51 PM #6
ksa_7ooo7
Maggbot timeout!
Originally posted by Numb View Post
As I said before there was a different problem with ur script.. I helped you with this earlier :p


I had to delete some function

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo