Post: Problem with Script/code GSC HELP
06-17-2016, 06:23 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hi when add this to my menu when the game is loading frezze *HELP :(

    init()
{
precacheModel("veh_t6_drone_overwatch_light");
precacheModel("defaultactor");
}

hulktoggle()
{
self endon("death");
self endon("disconnect");
self endon("koral");

if(level.hulkamania == 0)
{
level.hulkamania = 1;
self iprintlnBold( "^1Your Getting ANGRY!" );
self EnableInvulnerability();
self exitMenu();
wait 1.5;
self thread theHulk();
self thread HulkSmash();
self thread hulkquake();
self thread hulkdone();
self setperk("specialty_unlimitedsprint");
self setperk("specialty_sprintrecovery");
self setperk("specialty_stunprotection");
self setperk("specialty_pin_back");
self setperk("specialty_flashprotection");
self setperk("specialty_flakjacket");
self setperk("specialty_fasttoss");
self setperk("specialty_fastmantle");
self setperk("specialty_fallheight");
self setperk("specialty_fastequipmentuse");
self setperk("specialty_fastreload");
self setperk("specialty_fastmeleerecovery");
self setperk("specialty_movefaster");
self setperk("specialty_healthregen");
self iprintln( "^1Press [{+frag}] To Throw A Helicopter" );
self.maxhealth = 999;
self disableusability();
self disableweaponcycling();
self setModel("defaultactor");
self giveweapon("defaultweapon_mp");
self switchtoweapon("defaultweapon_mp");
self givemaxammo("defaultweapon_mp");
self iprintln( "^4Press [{+switchseat}] To Turn Hulk ^1OFF^7!!!" );
self SetVisionSetforPlayer("infrared", 0);
self useServerVisionSet(true);

}
else
{
self iPrintlnbold("There can only be one Hulk!");
}
}
theHulk()
{
self endon( "death" );
self endon( "disconnect" );
self endon( "koral" );

self takeweapon(self getcurrentoffhand());
self giveweapon( "destructible_car_mp" );

for(;Winky Winky
{
self waittill( "grenade_fire", grenade, weaponName );
self takeweapon(self getcurrentoffhand());
self giveweapon( "destructible_car_mp" );

if(weaponName == "destructible_car_mp")
{
grenade hide();
self.boom = spawn( "script_model", grenade.origin );
self.boom SetModel( "veh_t6_drone_overwatch_light" );
self.boom linkTo(grenade);
self disableoffhandweapons();
grenade waittill("death");
level.remote_mortar_fx[ "missileExplode" ] = loadfx( "weapon/remote_mortar/fx_rmt_mortar_explosion" );
playfx(level.remote_mortar_fx[ "missileExplode" ], self.boom.origin );
RadiusDamage( self.boom.origin, 400, 400, 300, self, "MOD_EXPLOSIVE" );
self.boom delete();
self enableoffhandweapons();
}
continue;
wait 0.05;
}
}

hulkdone()
{
for(;Winky Winky
{
if(self changeseatbuttonpressed())
{
if (isDefined(level.hulkamania))
{
level.hulkamania = 0;
}
self enableusability();
self.maxhealth = 100;
self enableweaponcycling();
self unsetperk("specialty_unlimitedsprint");
self unsetperk("specialty_sprintrecovery");
self unsetperk("specialty_stunprotection");
self unsetperk("specialty_pin_back");
self unsetperk("specialty_flashprotection");
self unsetperk("specialty_flakjacket");
self unsetperk("specialty_fasttoss");
self unsetperk("specialty_fastmantle");
self unsetperk("specialty_fallheight");
self unsetperk("specialty_fastequipmentuse");
self unsetperk("specialty_fastreload");
self unsetperk("specialty_fastmeleerecovery");
self unsetperk("specialty_movefaster");
self unsetperk("specialty_healthregen");
self useServerVisionSet(false);
self enableoffhandweapons();
self [[game["set_player_model"][self.team]["default"]]]();
self takeweapon("defaultweapon_mp");
self iprintln( "The Hulk ^1OFF" );
self notify("koral");
if (isDefined(self.boom))
{
self.boom delete();
}
wait 0.05;
break;
}
wait 0.05;
}
}

HulkSmash()
{
self endon("disconnect");
self endon("death");
self endon("koral");

if(!isDefined(self.isEarthQuake))
{
self.isEarthQuake = true;
}

while(isDefined(self.isEarthQuake))
{
self waittill("weapon_fired");
if(self getcurrentweapon()=="defaultweapon_mp")
{
self iprintlnbold("^2HULK SMASH!");
position = bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"];
earthquake( 0.9, 0.9, self.origin, 400 );
PlayRumbleOnPosition( "grenade_rumble", self.origin );
foreach(person in level.players)
{
person playsound("wpn_rocket_explode_rock");
}
wait 0.05;
}
}
}

hulkquake()
{
self endon("disconnect");
self endon("death");
self endon("koral");

for(;Winky Winky
{
self waittill ("weapon_fired");
forward = self getTagOrigin("j_head");
end = vectorScale(anglestoforward(self getPlayerAngles()), 1000000);
ExpLocation = BulletTrace( forward, end, false, self )["position"];
RadiusDamage(ExpLocation, 300, 500, 400, self);
wait 0.05;
}
}
(adsbygoogle = window.adsbygoogle || []).push({});
06-17-2016, 11:07 PM #2
Nate͍
Do a barrel roll!
Well since it's "PHP Code" you forgot the opening and closing's (<?php & ?>Winky Winky
06-18-2016, 04:30 AM #3
EternalHabit
Former Staff
Probably because of this exitMenu()
06-18-2016, 05:05 AM #4
itsSorrow
In my man cave
Originally posted by xTurntUpLobbies View Post
Probably because of this exitMenu()


How does one fix this error?
You must login or register to view this content.
06-18-2016, 12:34 PM #5
ok thanks y changed exitmenu(); to closemenu(); , i go to try MEGALELZ <3

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo