Post: Help On This Code
10-09-2012, 01:45 AM #1
primetime43
Knowledge is power Tiphat
(adsbygoogle = window.adsbygoogle || []).push({}); How would I make it so that when I click this code in the menu, it closes the menu. Cause when I click it, then menu freezes over it and doesn't close.

    
LightningGun()
{
self iPrintln("^2Lightning Gun ^4Ready^7!");
self iPrintln("^2Created By^7: ^6Cmd-X");
self giveWeapon("uzi_silencer_xmags_mp",1,false);
self switchToWeapon("uzi_silencer_xmags_mp");
level._effect["mine_explosion"]=loadfx("explosions/sentry_gun_explosion");
level._effect["tv_explosion"]=loadfx( "explosions/tv_flatscreen_explosion" );
for(;Winky Winky
{
self waittill("weapon_fired");
if(self getCurrentWeapon() == "uzi_silencer_xmags_mp")
{
vec2=anglestoforward(self getPlayerAngles());
e1nd =(vec2[0] * 200000,vec2[1] * 200000,vec2[2] * 200000);
SPLOSIONlocation1=BulletTrace(self gettagorigin("tag_eye"),self gettagorigin("tag_eye")+ e1nd,0,self)["position"];
playfx(level._effect["mine_explosion"],SPLOSIONlocation1);
playfx(level._effect["mine_explosion"],SPLOSIONlocation1+(0,0,25));
playfx(level._effect["mine_explosion"],SPLOSIONlocation1+(0,0,35));
playfx(level._effect["mine_explosion"],SPLOSIONlocation1+(0,-5,15));
playfx(level._effect["mine_explosion"],SPLOSIONlocation1+(0,5,15));
playfx(level._effect["mine_explosion"],SPLOSIONlocation1+(-5,0,15));
playfx(level._effect["mine_explosion"],SPLOSIONlocation1+(5,0,15));
playfx(level._effect["tv_explosion"],SPLOSIONlocation1+(0,0,Cool Man (aka Tustin));
playfx(level._effect["tv_explosion"],SPLOSIONlocation1+(0,2,12));
playfx(level._effect["tv_explosion"],SPLOSIONlocation1+(0,-2,4));
RadiusDamage(SPLOSIONlocation1,130,130,130,self);
earthquake(0.3,1,SPLOSIONlocation1,1000);
}
wait 0.001;
}
}


This actually is happening for all of the codes, why doesn't the menu disappear. Please help.
(adsbygoogle = window.adsbygoogle || []).push({});
10-09-2012, 02:04 AM #2
Vanz
Z32 Love <3
What menu base do you have?
10-09-2012, 07:22 PM #3
primetime43
Knowledge is power Tiphat
Originally posted by .Vanz View Post
What menu base do you have?


I got K Brizzle's Final Tree patch.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo