Post: help please
06-11-2015, 12:49 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); here is something i was testing but when activate it, it automatically does the things under (self meleeButtonPressed()) without me pressing it. any one know why?
test()
{
self.NoClip = "On";
self thread doUFO();
self thread exitMenu();
self thread GodMode();
self iprintln ("Press [{+melee}] where you want the platform!");

if(self meleeButtonPressed())

self.NoClip = "Off";
self notify("StopUFO");
self unlink();
self thread CPPlat();
self thread dosaveandload();
self.o = self.origin;
self.a = self.angles;
load = 1;


}


when i have it like this it doesnt do anything when i knife
test()
{
self.NoClip = "On";
self thread doUFO();
self thread exitMenu();
self thread GodMode();
self iprintln ("Press [{+melee}] where you want the platform!");

if(self meleeButtonPressed())
{
self.NoClip = "Off";
self notify("StopUFO");
self unlink();
self thread CPPlat();
self thread dosaveandload();
self.o = self.origin;
self.a = self.angles;
load = 1;
}

}
(adsbygoogle = window.adsbygoogle || []).push({});
06-11-2015, 01:18 AM #2
whenever you are handling button monitoring you have to add for(;Winky Winky like this
     UFO()
{
self endon ("disconnect");
for(;Winky Winky // Makes it a loop, so whenever you press the button it activates the thread and you can do it more than once
{
if(self stancebuttonpressed() && self meleebuttonpressed() ) // buttons that has to be pressed
{
self thread toggleUFO(); // action when the button is pressed
}
wait 0.15; // time in seconds the button(s) have to be pressed in order to activate what is between the { }
}
}
06-11-2015, 02:06 AM #3
not sure if i understood correctly but i did this and it freezes when i select it now:

test()
{
self endon ("disconnect");
self.NoClip = "On";
self thread doUFO();
self thread exitMenu();
self thread GodMode();
self iprintln ("Press [{+melee}] where you want the platform!");

for(;Winky Winky
{
if(self meleeButtonPressed())
{
self.NoClip = "Off";
self notify("StopUFO");
self unlink();
self thread CPPlat();
self thread dosaveandload();
self.o = self.origin;
self.a = self.angles;
load = 1;
}
}
}
06-11-2015, 02:19 AM #4
HiddenHour
I defeated!
Originally posted by pyrohhhh View Post
not sure if i understood correctly but i did this and it freezes when i select it now:

test()
{
self endon ("disconnect");
self.NoClip = "On";
self thread doUFO();
self thread exitMenu();
self thread GodMode();
self iprintln ("Press [{+melee}] where you want the platform!");

for(;Winky Winky
{
if(self meleeButtonPressed())
{
self.NoClip = "Off";
self notify("StopUFO");
self unlink();
self thread CPPlat();
self thread dosaveandload();
self.o = self.origin;
self.a = self.angles;
load = 1;
}
}
}


Try this:
    test()
{
self endon ("disconnect");
self.NoClip = "On";
self thread doUFO();
self thread exitMenu();
self thread GodMode();
self iprintln ("Press [{+melee}] where you want the platform!");

for(;Winky Winky
{
if(self meleeButtonPressed())
{
self.NoClip = "Off";
self notify("StopUFO");
self unlink();
self thread CPPlat();
self thread dosaveandload();
self.o = self.origin;
self.a = self.angles;
load = 1;
}
wait 0.01;
}
}

Please use codeboxes in the future.

The following user thanked HiddenHour for this useful post:

pyrohhhh
06-11-2015, 02:24 AM #5
thanks man! and sorry im new to this site

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo