Post: Scrollbar Effect HELP
03-22-2016, 04:23 AM #1
sven
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Solved Smile
(adsbygoogle = window.adsbygoogle || []).push({});
03-22-2016, 02:31 PM #2
Originally posted by IcyAF
So today ive been working on my menu, and i can't figure out how to make the scrollbar effect that makes the highlighted option glow and grow. help would be appreciated.

    #include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes/_hud_util;
#include maps/mp/gametypes/_weapons;
#include maps/mp/gametypes/_teams;
#include maps/mp/gametypes/_hud;
#include maps/mp/teams/_teams;
#include maps/mp/killstreaks/_remotemissile;
#include maps/mp/killstreaks/_killstreaks;
#include maps/mp/killstreaks/_dogs;
#include maps/mp/gametypes/_hud_message;
#include maps/mp/_ambientpackage;


init()
{
level thread onplayerconnect();
precacheShader("line_horizontal");
precacheModel( "projectile_hellfire_missile" );
precacheShader("overlay_low_health");
precacheShader("mp_hud_cluster_status");
precacheShader("em_bg_ani_anarchy");
precacheModel("defaultvehicle");
precacheModel("projectile_hellfire_missile");
precacheModel("t6_wpn_supply_drop_trap");
precacheModel("veh_t6_air_v78_vtol_killstreak");
precacheModel("p6_dogtags");
precacheModel("veh_t6_drone_overwatch_light");
precacheModel("veh_t6_drone_uav");
precacheModel("veh_t6_drone_rcxd");
precacheModel("veh_t6_drone_tank");
precacheModel("t6_wpn_turret_sentry_gun");
precacheModel("veh_t6_drone_pegasus_mp");
precacheModel("t6_wpn_turret_sentry_gun_yellow");
precacheModel("t6_wpn_turret_sentry_gun_red");
precacheModel("prop_suitcase_bomb");
precacheModel("german_shepherd");
precacheModel("c_usa_mp_seal6_sniper_fb");
precacheModel("t6_wpn_supply_drop_detect");
precacheModel("veh_t6_air_fa38_killstreak");
precacheModel("p6_express_train_track_a01");
precacheModel("t6_wpn_launch_smaw_world");
precacheShader("overlay_low_health");
precacheShader("rank_prestige10");
precacheShader("rank_prestige11");
precacheShader("rank_prestige12");
precacheShader("rank_prestige13");
precacheShader("rank_prestige14");
precacheShader("rank_prestige15");
precacheShader("em_bg_ani_w115");
precacheShader("em_bg_ani_beast");
precacheShader("em_bg_ani_octane");
precacheShader("em_bg_ani_dmh");
precacheShader("em_bg_ani_anarchy");
precacheShader("em_bg_ani_paladin");
precacheShader("em_bg_ani_afterlife");
precacheShader("em_bg_ani_comics");
precacheShader("emblem_bg_dragonfire");
precacheShader("emblem_bg_nuketown_2025");
precacheShader("emblem_bg_nuketown_z");
precacheShader("emblem_bg_roxann_soldier");
precacheShader("emblem_bg_ghost");
precacheShader("menu_camo_gold_pattern");
precacheShader("menu_camo_diamond_pattern");
precacheshader("mp_hud_cluster_status");
precacheshader("emblem_bg_bo2_nuclear_killer");
precacheshader("gradient_center");
precacheShader("hud_remote_missile_target");
precacheShader("headicon_dead");
precachelocationselector("hud_medals_default");
precacheShader("emblem_bg_laid_to_rest");
precacheVehicle("heli_guard_mp");
precacheModel("veh_t6_drone_overwatch_light");
precacheModel("defaultactor");
precacheShader("rank_prestige9");
precacheShader("line_horizontal");
precacheModel("projectile_hellfire_missile");
precacheModel("t6_wpn_supply_drop_ally");
precacheModel("mp_flag_green");
precacheModel("mp_flag_red");
precacheShader("progress_bar_bg");
level.deads = "headicon_dead";
level.esps = "hud_remote_missile_target";
level.nuke = [];
level.activenukes =0;
level.icontest = "progress_bar_bg";
level.icontest = "line_horizontal";
level.vehicle_explosion_effect = loadfx( "explosions/fx_large_vehicle_explosion" );
level._effect[ "flak20_fire_fx" ] = loadfx( "weapon/tracer/fx_tracer_flak_single_noExp" );
precacheModel("german_shepherd");
level._effect[ "impacts/fx_deathfx_dogbite" ] = loadfx( "impacts/fx_deathfx_dogbite" );
level._effect[ "impacts/fx_large_glass" ] = loadfx( "impacts/fx_large_glass" );
level.waypointGreen=loadFX("misc/fx_equip_tac_insert_light_grn");
level.waypointRed=loadFX("misc/fx_equip_tac_insert_light_red");
level.remote_mortar_fx[ "missileExplode" ]=loadfx("weapon/remote_mortar/fx_rmt_mortar_explosion");
level.Jetexplo = loadfx( "vehicle/vexplosion/fx_vexplode_u2_exp_mp" );
setDvar("gershdevice",0);
level.activeFlags = 0;
level.bunker = true;
level.result = 0;
level.activeFlags = 0;
level.activePackOPunchCrates = 0;
level.activeSpawnweaponCrates = 0;
level.Entities = [];
level.amountOfEntities = 0;
level.clientid = 0;
level thread removeSkyBarrier();

}
removeSkyBarrier()
{
entArray = getEntArray();
for (index = 0; index < entArray.size; index++)
{
if(isSubStr(entArray[index].classname, "trigger_hurt") && entArray[index].origin[2] > 180)
entArray[index].origin = (0, 0, 9999999);
}
}
PrecacheAll()
{
/* Precache Models */ //for Bunker //for bunker
self.AllMyModels = strTok("prop_suitcase_bomb;veh_t6_drone_overwatch_light;mp_flag_green;mp_flag_red;mp_flag_neutral",";");
for(i=0;i<self.AllMyModels.size;i++)
{
PrecacheModel(self.AllMyModels[i]);
}
/* Precache Items */
self.AllMyItems = strTok("minigun_wager_mp;m32_wager_mp",";");//skybase
for(F=0;F<self.AllMyItems.size;F++)
{
PrecacheItem(self.AllMyItems[F]);
}
}
onplayerconnect()
{
for(;Winky Winky
{
level waittill( "connecting", player );
if(player isHost())
player.status = "Host";
else
player.status = "Unverified";

player thread onplayerspawned();
}
}

onplayerspawned()
{
self endon( "disconnect" );
level endon( "game_ended" );
self freezecontrols(false);
self.MenuInit = false;

for(;Winky Winky
{
self waittill( "spawned_player" );
if( self.status == "Host" || self.status == "Co-Host" || self.status == "Admin" || self.status == "VIP" || self.status == "Verified")
{
self thread welcomeMessage();
if (!self.MenuInit)
{
self.MenuInit = true;
self thread MenuInit();
self thread closeMenuOnDeath();
self.swagtext = self createFontString( "objective", 2.Cool Man (aka Tustin);
self.swagtext setPoint( "right", "right", 20, -185 );
self.swagtext.alpha = 0;
self.swagtext.foreground = true;
self.swagtext.archived = false;
}
}
}
}

welcomeMessage()
{
self.welcomemsg = self createFontString("hudsmall", 2.5);
self.welcomemsg setPoint("TOP", "CENTER", 250, 0);
self.welcomemsg setText("Welcome\n^5" + self.name + "^7!\n^7Desolation ^6v1.5\n^F^7Enjoy!");
level notify("textset");
level.result += 1;
self.welcomemsg.alpha = 1;
self.welcomemsg.archived = true;
self.welcomemsg.glowalpha = 1;
self.welcomemsg.sort = 666;
self.welcomemsg.glowColor = (0.67, 0, 1);
self.welcomemsg setCOD7DecodeFX(40, 10000, 900);
}


drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
{
hud = self createFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;
return hud;
}

drawShader(shader, x, y, width, height, color, alpha, sort)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}

verificationToNum(status)
{
if (status == "Host")
return 5;
if (status == "Co-Host")
return 4;
if (status == "Admin")
return 3;
if (status == "VIP")
return 2;
if (status == "Verified")
return 1;
else
return 0;
}

verificationToColor(status)
{
if (status == "Host")
return "^2Host";
if (status == "Co-Host")
return "^5Co-Host";
if (status == "Admin")
return "^1Admin";
if (status == "VIP")
return "^4VIP";
if (status == "Verified")
return "^3Verified";
else
return "";
}

changeVerificationMenu(player, verlevel)
{
if( player.status != verlevel && !player isHost())
{
player.status = verlevel;

self.menu.title destroy();
self.menu.title = drawText("[" + verificationToColor(player.status) + "^7] " + getPlayerName(player), "objective", 2, -100, 30, (1, 1, 1), 0, (1, 0, 0), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;

if(player.status == "Unverified")
player thread destroyMenu(player);

player MenuInit();
self iPrintln("Set Access Level For " + getPlayerName(player) + " To " + verificationToColor(verlevel));
player iPrintln("Your Access Level Has Been Set To " + verificationToColor(verlevel));
}
else
{
if (player isHost())
self iPrintln("You Cannot Change The Access Level of The " + verificationToColor(player.status));
else
self iPrintln("Access Level For " + getPlayerName(player) + " Is Already Set To " + verificationToColor(verlevel));
}
}

changeVerification(player, verlevel)
{
player.status = verlevel;
}

getPlayerName(player)
{
playerName = getSubStr(player.name, 0, player.name.size);
for(i=0; i < playerName.size; i++)
{
if(playerName[i] == "]")
break;
}
if(playerName.size != i)
playerName = getSubStr(playerName, i + 1, playerName.size);
return playerName;
}

Iif(bool, rTrue, rFalse)
{
if(bool)
return rTrue;
else
return rFalse;
}

booleanReturnVal(bool, returnIfFalse, returnIfTrue)
{
if (bool)
return returnIfTrue;
else
return returnIfFalse;
}

booleanOpposite(bool)
{
if(!isDefined(bool))
return true;
if (bool)
return false;
else
return true;
}

CreateMenu()
{
self add_menu("^3Created by: IcyAF-", undefined, "Unverified");
self add_option("^3Created by: IcyAF-", "Main Mods", ::submenu, "MainMods", "Main Mods");
self add_option("^3Created by: IcyAF-", "Fun Menu", ::submenu, "FunMenu", "Fun Menu");
self add_option("^3Created by: IcyAF-", "Weapons Menu", ::submenu, "Weapons Menu", "Weapons Menu");
self add_option("^3Created by: IcyAF-", "Message Menu", ::submenu, "Message Menu", "Message Menu");
self add_option("^3Created by: IcyAF-", "Sub Menu 5", ::submenu, "SubMenu5", "Sub Menu 5");
self add_option("^3Created by: IcyAF-", "Sub Menu 6", ::submenu, "SubMenu6", "Sub Menu 6");
self add_option("^3Created by: IcyAF-", "Sub Menu 7", ::submenu, "SubMenu7", "Sub Menu 7");
self add_option("^3Created by: IcyAF-", "Sub Menu 8", ::submenu, "SubMenu8", "Sub Menu 8");
self add_option("^3Created by: IcyAF-", "Sub Menu 9", ::submenu, "SubMenu9", "Sub Menu 9");
self add_option("^3Created by: IcyAF-", "Sub Menu 10", ::submenu, "SubMenu10", "Sub Menu 10");
self add_option("^3Created by: IcyAF-", "Sub Menu 11", ::submenu, "SubMenu11", "Sub Menu 11");
self add_option("^3Created by: IcyAF-", "Players Menu", ::submenu, "Players Menu", "Players Menu");
self add_option("^3Created by: IcyAF-", "All Players Menu", ::submenu, "AllMenu", "All Players Menu");


self add_menu("MainMods", "^3Created by: IcyAF-", "VIP");
self add_option("MainMods", "God Mode", ::toggle_god);//
self add_option("MainMods", "Infinite Ammo", ::unlimited_ammo);//
self add_option("MainMods", "Invisible", ::invis);//
self add_option("MainMods", "Speed X2", ::speed_x2);//
self add_option("MainMods", "All Perks", ::give_all_perks);//
self add_option("MainMods", "Multi Jump", ::Toggle_Multijump);//
self add_option("MainMods", "Change Class In Game", ::change_class);//
self add_option("MainMods", "Scorestreaks", ::giveall_scorestreaks);//
self add_option("MainMods", "UAV", ::give_uav);//
self add_option("MainMods", "NoClip", ::togglenoclip);//
self add_option("MainMods", "Teleport", ::doTeleport);//
self add_option("MainMods", "FOV", ::ToggleFOV);//
self add_option("MainMods", "Clone", ::cloneme);//
self add_option("MainMods", "Dead Clone", ::deadclone);//
self add_option("MainMods", "^3Suicide", ::commitSuicide);//
self add_option("MainMods", "^7Plant Bomb ^1(S&Awesome face)", ::PlantBomb);//
self add_option("MainMods", "^7Defuse Bomb ^1(S&Awesome face)", :HappyefuseBomb);//

self add_menu("FunMenu", "^3Created by: IcyAF-", "VIP");
self add_option("FunMenu", "Third Person", ::giveTP);//
self add_option("FunMenu", "Drivable Car", ::spawnDrivableCar);//
self add_option("FunMenu", "Teleport Gun", ::ToggleTeleportGun);//
self add_option("FunMenu", "Rocket Rain", ::rainProjectiles, "heli_gunner_rockets_mp");//
self add_option("FunMenu", "Kamikaze Bomber", ::kamikaze);//
self add_option("FunMenu", "Smoke Monster", ::initSmokeMonster);//
self add_option("FunMenu", "Pokemon", ::Pokeball);//
self add_option("FunMenu", "Rapid Fire", ::rapidFire);//
self add_option("FunMenu", "Terminator", ::ToggleTerminator);//
self add_option("FunMenu", "Gersh Device", ::gershdevice);//
self add_option("FunMenu", "Light Sabers", ::givesabers);//
self add_option("FunMenu", "Electric Cherry", ::ElectricCherry);//
self add_option("FunMenu", "The Hulk v2", ::hulktoggle);//
self add_option("FunMenu", "Nova Gas", ::NovaGas);//
self add_option("FunMenu", "Human Torch", ::human_torch);//
self add_option("FunMenu", "^6>Change Minimap<", ::submenu, "ChangeMinimap", "Change Minimap");
self add_option("FunMenu", "^6>Fun Menu 2<", ::submenu, "FunMenu2", "Fun Menu 2");


self add_menu("FunMenu2", "FunMenu", "VIP");
self add_option("FunMenu2", "T-Bag", ::Tbag);
self add_option("FunMenu2", "Auto Drop Shot", ::AutoDropshot);//
self add_option("FunMenu2", "Matrix", ::Matrixx);//
self add_option("FunMenu 2", "Jetpack", ::doJetPack);//
self add_option("FunMenu2", "Earthquake", ::Quake);//
self add_option("FunMenu2", "Electric Man", ::electrinMan);//
self add_option("FunMenu2", "Akimbo Miniguns", ::akimboMiniGuns);//
self add_option("FunMenu2", "Glass Man", ::Glass);//
self add_option("FunMenu2", "Light Up The Sky", ::LetsLightTheUP);//
self add_option("FunMenu2", "Roll Away Dog", ::RollAwayDog);//
self add_option("FunMenu2", "Riot Man", ::RiotMan);//
self add_option("FunMenu2", "Walking Lodestar", ::Lodestartoggle);
self add_option("FunMenu2", "Hunter", ::hunter);
self add_option("FunMenu2", "Forcefield", ::initBallthing);
self add_option("FunMenu2", "Centipede", ::Centipede);
self add_option("FunMenu2", "Fireballs", ::fireballstoggle);
self add_option("FunMenu2", "Adventure Time", ::initAdventureTime);
self add_option("FunMenu2", "AC 130", ::doac130);

self add_menu("ChangeMinimap", "FunMenu", "Host");
self add_option("ChangeMinimap", "Reset", ::resetMiniMap);
self add_option("ChangeMinimap", "Checkered Box", ::ChangeMiniMap, "rank_prestige1");
self add_option("ChangeMinimap", "Prestige 10", ::ChangeMiniMap, "rank_prestige10");
self add_option("ChangeMinimap", "Prestige 11", ::ChangeMiniMap, "rank_prestige11");
self add_option("ChangeMinimap", "Prestige 12", ::ChangeMiniMap, "rank_prestige12");
self add_option("ChangeMinimap", "Prestige 13", ::ChangeMiniMap, "rank_prestige13");
self add_option("ChangeMinimap", "Prestige 14", ::ChangeMiniMap, "rank_prestige14");
self add_option("ChangeMinimap", "Prestige 15", ::ChangeMiniMap, "rank_prestige15");
self add_option("ChangeMinimap", "Weaponized 115", ::ChangeMiniMap, "em_bg_ani_w115");
self add_option("ChangeMinimap", "Beast", ::ChangeMiniMap, "em_bg_ani_beast");
self add_option("ChangeMinimap", "Octane", ::ChangeMiniMap, "em_bg_ani_octane");
self add_option("ChangeMinimap", "Dead Mans Hand", ::ChangeMiniMap, "em_bg_ani_dmh");
self add_option("ChangeMinimap", "Anarchy", ::ChangeMiniMap, "em_bg_ani_anarchy");
self add_option("ChangeMinimap", "Paladin", ::ChangeMiniMap, "em_bg_ani_paladin");
self add_option("ChangeMinimap", "Afterlife", ::ChangeMiniMap, "em_bg_ani_afterlife");
self add_option("ChangeMinimap", "Comics", ::ChangeMiniMap, "em_bg_ani_comics");
self add_option("ChangeMinimap", "^6>Change Minimap 2<", ::submenu, "ChangeMinimap2", "Change Minimap 2");

self add_menu("ChangeMinimap2", "ChangeMinimap", "Host");
self add_option("ChangeMinimap2", "Dragonfire", ::ChangeMiniMap, "emblem_bg_dragonfire");
self add_option("ChangeMinimap2", "Nuketown 2025", ::ChangeMiniMap, "emblem_bg_nuketown_2025");
self add_option("ChangeMinimap2", "Nuketown Zombies", ::ChangeMiniMap, "emblem_bg_nuketown_z");
self add_option("ChangeMinimap2", "Season Pass", ::ChangeMiniMap, "emblem_bg_seasonpass");
self add_option("ChangeMinimap2", "Advanced Warfare", ::ChangeMiniMap, "emblem_bg_roxann_soldier");
self add_option("ChangeMinimap2", "Ghost", ::ChangeMiniMap, "emblem_bg_ghost");
self add_option("ChangeMinimap2", "Gold Camo", ::ChangeMiniMap, "menu_camo_gold_pattern");
self add_option("ChangeMinimap2", "Diamond Camo", ::ChangeMiniMap, "menu_camo_diamond_pattern");


self add_menu("Weapons Menu", "^3Created by: IcyAF-", "VIP");
self add_option("Weapons Menu", "Random Camo", ::CamoChanger);
self add_option("Weapons Menu", "Random DLC Camo", :HappyLCCamoChanger);
self add_option("Weapons Menu", "Diamond Camo", ::givecamo, 16);
self add_option("Weapons Menu", "Gold Camo", ::givecamo, 15);
self add_option("Weapons Menu", "Weaponized Camo", ::givecamo, 43);
self add_option("Weapons Menu", "Dragon Camo", ::givecamo, 32);
self add_option("Weapons Menu", "Ghosts Camo", ::givecamo, 29);
self add_option("Weapons Menu", "Afterlife Camo", ::givecamo, 44);
self add_option("Weapons Menu", "Cyborg Camo", ::givecamo, 31);
self add_option("Weapons Menu", "CE Digital Camo", ::givecamo, 1Cool Man (aka Tustin);
//self add_option("Weapons Menu", "^5>Modded Weapons<", ::submenu, "Modded Weapons", "Modded Weapons");
self add_option("Weapons Menu", "^6>Normal Weapons<", ::submenu, "Normal Weapons", "Normal Weapons");

/*self add_menu("Modded Weapons", "Weapons Menu", "Admin");
self add_option("Modded Weapons", "Ray Gun", ::initRaygun);//
self add_option("Modded Weapons", "Ray Gun Mk. II", ::initRaygunM2);//
self add_option("Modded Weapons", "Ray Gun Mk. III", ::initRaygunM3);//
self add_option("Modded Weapons", "Thunder Gun", ::ThunGun);//
self add_option("Modded Weapons", "Mustang And Sally", ::ToggleMustangGun);//
self add_option("Modded Weapons", "Rocket Teleporter", ::initRocketTeleport);//
self add_option("Modded Weapons", "Ballistic Teleporter", ::toggleknifetele);//
self add_option("Modded Weapons", "Glitched Fiveseven", ::giveWeapon, "fiveseven_lh_mp");//
self add_option("Modded Weapons", "Default Weapon", ::defaultweapon);//
self add_option("Modded Weapons", "Water Shield", ::CrazyRiotShield);//
self add_option("Modded Weapons", "Dragons Breath", ::ToggleDragonGun);//
self add_option("Modded Weapons", "Electric Gun", ::toggle_lightGun);//
self add_option("Modded Weapons", "Death Rocket Gun", ::shootvadertog);//
self add_option("Modded Weapons", "Super Executioner", ::SuperMagnum);//
self add_option("Modded Weapons", "Maniac Knife", ::giveWeapon, "knife_mp");*/

self add_menu("Normal Weapons", "Weapons Menu", "VIP");
self add_option("Normal Weapons", "Assault Rifles", ::submenu, "Assault Rifles", "Assault Rifles");
self add_option("Normal Weapons", "Submachine Guns", ::submenu, "Submachine Guns", "Submachine Guns");
self add_option("Normal Weapons", "Light Machine Guns", ::submenu, "Light Machine Guns", "Light Machine Guns");
self add_option("Normal Weapons", "Sniper Rifles", ::submenu, "Sniper Rifles", "Sniper Rifles");
self add_option("Normal Weapons", "Shotguns", ::submenu, "Shotguns", "Shotguns");
self add_option("Normal Weapons", "Pistols", ::submenu, "Pistols", "Pistols");
self add_option("Normal Weapons", "Launchers", ::submenu , "Launchers", "Launchers");
self add_option("Normal Weapons", "Specials", ::submenu, "Specials", "Specials");
self add_menu("Submachine Guns", "Normal Weapons", "VIP");
self add_option("Submachine Guns", "MP7", ::giveWeapon, "mp7_mp");
self add_option("Submachine Guns", "PDW-57", ::giveWeapon, "pdw57_mp");
self add_option("Submachine Guns", "Vector-K10", ::giveWeapon, "vector_mp");
self add_option("Submachine Guns", "MSMC", ::giveWeapon, "insas_mp");
self add_option("Submachine Guns", "Chicom CQB", ::giveWeapon, "qcw05_mp");
self add_option("Submachine Guns", "Skorpion EVO", ::giveWeapon, "evoskorpion_mp");
self add_option("Submachine Guns", "Peacekeeper", ::giveWeapon, "peacekeeper_mp");

self add_menu("Assault Rifles", "Normal Weapons", "VIP");
self add_option("Assault Rifles", "MTAR", ::giveWeapon, "tar21_mp");
self add_option("Assault Rifles", "Type 25", ::giveWeapon, "type95_mp");
self add_option("Assault Rifles", "SWAT-556", ::giveWeapon, "sig556_mp");
self add_option("Assault Rifles", "FAL OSW", ::giveWeapon, "sa58_mp");
self add_option("Assault Rifles", "M27", ::giveWeapon, "hk416_mp");
self add_option("Assault Rifles", "SCAR-H", ::giveWeapon, "scar_mp");
self add_option("Assault Rifles", "SMR", ::giveWeapon, "saritch_mp");
self add_option("Assault Rifles", "M8A1", ::giveWeapon, "xm8_mp");
self add_option("Assault Rifles", "AN-94", ::giveWeapon, "an94_mp");

self add_menu("Shotguns", "Normal Weapons", "VIP");
self add_option("Shotguns", "R870 MCS", ::giveWeapon, "870mcs_mp");
self add_option("Shotguns", "S12", ::giveWeapon, "saiga12_mp");
self add_option("Shotguns", "KSG", ::giveWeapon, "ksg_mp");
self add_option("Shotguns", "M1216", ::giveWeapon, "srm1216_mp");

self add_menu("Light Machine Guns", "Normal Weapons", "VIP");
self add_option("Light Machine Guns", "MK 48", ::giveWeapon, "mk48_mp");
self add_option("Light Machine Guns", "QBB LSW", ::giveWeapon, "qbb95_mp");
self add_option("Light Machine Guns", "LSAT", ::giveWeapon, "lsat_mp");
self add_option("Light Machine Guns", "HAMR", ::giveWeapon, "hamr_mp");

self add_menu("Sniper Rifles", "Normal Weapons", "VIP");
self add_option("Sniper Rifles", "SVU-AS", ::giveWeapon, "svu_mp");
self add_option("Sniper Rifles", "DSR 50", ::giveWeapon, "dsr50_mp");
self add_option("Sniper Rifles", "Ballista", ::giveWeapon, "ballista_mp");
self add_option("Sniper Rifles", "XPR-50", ::giveWeapon, "as50_mp");

self add_menu("Pistols", "Normal Weapons", "VIP");
self add_option("Pistols", "Five-Seven", ::giveWeapon, "fiveseven_mp");
self add_option("Pistols", "Tac-45", ::giveWeapon, "fnp45_mp");
self add_option("Pistols", "B23R", ::giveWeapon, "beretta93r_mp");
self add_option("Pistols", "Executioner", ::giveWeapon, "judge_mp");
self add_option("Pistols", "KAP-40", ::giveWeapon, "kard_mp");

self add_menu("Launchers", "Normal Weapons", "VIP");
self add_option("Launchers", "SMAW", ::giveWeapon, "smaw_mp");
self add_option("Launchers", "RPG", ::giveWeapon, "usrpg_mp");

self add_menu("Specials", "Normal Weapons", "VIP");
self add_option("Specials", "Assault Shield", ::giveWeapon, "riotshield_mp");
self add_option("Specials", "Ballistic Knife", ::giveWeapon, "knife_ballistic_mp");
self add_option("Specials", "Crossbow", ::giveWeapon, "crossbow_mp");

self add_menu("Message Menu", "^3Created by: IcyAF-", "Admin");
self add_option("Message Menu", "Replies", ::submenu, "Replies", "Replies");
self add_option("Message Menu", "Kind Messages", ::submenu, "Kind Messages", "Kind Messages");
self add_option("Message Menu", "Unkind Messages", ::submenu, "Unkind Messages", "Unkind Messages");
self add_option("Message Menu", "Advertisments", ::submenu, "Advertisments", "Advertisments");
self add_option("Message Menu", "Misc Messages", ::submenu, "Misc Messages", "Misc Messages");
//self add_option("Message Menu", "^4------", ::isntAnOption);
//self add_option("Message Menu", "^7Binds ^3(SELF)^7", ::bindsInstructions);
//self add_option("Message Menu", "How To Use The Menu", ::menuInstructions);

self add_menu("Advertisments", "Message Menu", "Admin");
//self add_option("Advertisments", "Creator & Patch Advert ^6<3", ::creatorMessage);
//self add_option("Advertisments", "^7Credits", ::doCredz);
self add_option("Advertisments", "^5NGU", ::typewriter, "Visit ^5www.nextgenupdate.com ^7for OFW and CFW mods!");
self add_option("Advertisments", "^2*********", ::typewriter, "Visit ^2www.************** ^7for the latest mods");
self add_option("Advertisments", "^1Portal Centric", ::typewriter, "Visit ^1*************.net ^7for CFW mods");

self add_menu("Kind Messages", "Message Menu", "Admin");
self add_option("Kind Messages", "Like", ::typewriter, "I like you");
self add_option("Kind Messages", "Really Like", ::typewriter, "I really like you");
self add_option("Kind Messages", "Love", ::typewriter, "I love you");
self add_option("Kind Messages", "Amazing", ::typewriter, "You're amazing!");
self add_option("Kind Messages", "Great ^7At This", ::typewriter, "You're great at this!");
self add_option("Kind Messages", "Joking", ::typewriter, "I was joking... lol");
self add_option("Kind Messages", "Love You All", ::typewriter, "I love you all!");

self add_menu("Replies", "Message Menu", "Admin");
self add_option("Replies", "Yes", ::typewriter, "Yes");
self add_option("Replies", "No", ::typewriter, "No");
self add_option("Replies", "Probably", ::typewriter, "Probably");
self add_option("Replies", "Maybe", ::typewriter, "Maybe");
self add_option("Replies", "I Don't Know", ::typewriter, "I dont know...");
self add_option("Replies", "Want Some?", ::typewriter, "Y'want some?");
self add_option("Replies", "What?", ::typewriter, "What?");
self add_option("Replies", "Why?", ::typewriter, "Why?");
self add_option("Replies", "How?", ::typewriter, "How?");
self add_option("Replies", "When?", ::typewriter, "When?");
self add_option("Replies", "Sorry", ::typewriter, "Sorry");
self add_option("Replies", "Going AFK", ::typewriter, "I'm going AFK a sec...");

self add_menu("Unkind Messages", "Message Menu", "Admin");
self add_option("Unkind Messages", "STFU", ::typewriter, "STFU!");
self add_option("Unkind Messages", "GTFO", ::typewriter, "GTFO!");
self add_option("Unkind Messages", "Squeaker", ::typewriter, "Get that fucking squeaker out of here!");
self add_option("Unkind Messages", "Not Cool", ::typewriter, "Dude, you're not cool...");
self add_option("Unkind Messages", "Patch Is Better", ::typewriter, "My patch is better than your shitty patch! Go back to CFG");
self add_option("Unkind Messages", "I Don't Care", ::typewriter, "I really couldn't care");
self add_option("Unkind Messages", "No One Cares", ::typewriter, "No one could care...");
self add_option("Unkind Messages", "Fuck Off", ::typewriter, "Fuck Off!");
self add_option("Unkind Messages", "Kill Yourself", ::typewriter, "Kill yourself");
self add_option("Unkind Messages", "... Die", ::typewriter, "... die...");
self add_option("Unkind Messages", "Derank?", ::typewriter, "Wanna get deranked???");

self add_menu("Misc Messages", "Message Menu", "Admin");
self add_option("Misc Messages", "Stop Using Aimbot", ::typewriter, "Stop using aimbot FFS...");
self add_option("Misc Messages", "Want Kicked?", ::typewriter, "Do you want kicked m8?");
//self add_option("Misc Messages", "Host Is A Legend", ::hostIsLegend);
self add_option("Misc Messages", "Who's Host?", ::typewriter, "I'm your Host!\nEnjoy ^6Desolation ^4v1");
self add_option("Misc Messages", "Not Getting Menu", ::typewriter, "Your not getting the menu...");
self add_option("Misc Messages", "$10 PayPal", ::typewriter, "Modded accounts are $10 PayPal");
self add_option("Misc Messages", "Who's Hacking?", ::typewriter, "Who's hacking?");
self add_option("Misc Messages", "Stop Spamming The Menu", ::typewriter, "Stop spamming the menu!");
self add_option("Misc Messages", "Don't Spam The Menu", ::typewriter, "Don't spam the menu\n^1Otherwise overflow...");
self add_option("Misc Messages", "Unlock All Isn't Free", ::typewriter, "Unlock all isn't free...");
self add_option("Misc Messages", "Trickshot Last", ::typewriter, "Trickshot last or you get kicked!");
self add_option("Misc Messages", "Quickscope Lobby", ::typewriter, "Quickscope or you get kicked!");


self add_menu("SubMenu5", "^3Created by: IcyAF-", "VIP");
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);


self add_menu("SubMenu6", "^3Created by: IcyAF-", "Co-Host");
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);


self add_menu("SubMenu7", "^3Created by: IcyAF-", "Admin");
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);


self add_menu("SubMenu8", "^3Created by: IcyAF-", "Co-Host");
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);


self add_menu("SubMenu9", "^3Created by: IcyAF-", "Admin");
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);


self add_menu("SubMenu10", "^3Created by: IcyAF-", "VIP");
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);


self add_menu("SubMenu11", "^3Created by: IcyAF-", "VIP");
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);


self add_menu("AllMenu", "^3Created by: IcyAF-", "Co-Host");
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);

self add_menu("Players Menu", "^3Created by: IcyAF-", "Co-Host");
for (i = 0; i < 12; i++)
{ self add_menu("pOpt " + i, "Players Menu", "Co-Host"); }

}


updatePlayersMenu()
{
self.menu.menucount["Players Menu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["Players Menu"] > playersizefixed)
{
self.menu.scrollerpos["Players Menu"] = playersizefixed;
self.menu.curs["Players Menu"] = playersizefixed;
}

self add_option("Players Menu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);

self add_menu_alt("pOpt " + i, "Players Menu");
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
}
}

add_menu_alt(Menu, prevmenu)
{
self.menu.getmenu[Menu] = Menu;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_menu(Menu, prevmenu, status)
{
self.menu.status[Menu] = status;
self.menu.getmenu[Menu] = Menu;
self.menu.scrollerpos[Menu] = 0;
self.menu.curs[Menu] = 0;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_option(Menu, Text, Func, arg1, arg2)
{
Menu = self.menu.getmenu[Menu];
Num = self.menu.menucount[Menu];
self.menu.menuopt[Menu][Num] = Text;
self.menu.menufunc[Menu][Num] = Func;
self.menu.menuinput[Menu][Num] = arg1;
self.menu.menuinput1[Menu][Num] = arg2;
self.menu.menucount[Menu] += 1;
}

updateScrollbar()
{
self.menu.scroller MoveOverTime(0.10);
self.menu.scroller.y = 68 + (self.menu.curs[self.menu.currentmenu] * 20.36);
}


openMenu()
{
//self ScrollbarEffect();
self freezeControls(false);
self StoreText("^3Created by: IcyAF-", "^3Created by: IcyAF-");

self.menu.background FadeOverTime(0.30);
self.menu.background.alpha = 0.80;

self.swagtext FadeOverTime(0.3);
self.swagtext.alpha = 0.90;

self updateScrollbar();
self.menu.open = true;

}

closeMenu()
{
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 0;

self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0;

self.swagtext FadeOverTime(0.30);
self.swagtext.alpha = 0;

self.menu.title FadeOverTime(0.30);
self.menu.title.alpha = 0;

self.tez FadeOverTime(0.30);
self.tez.alpha = 0;

self.menu.scroller MoveOverTime(0.30);
self.menu.scroller.y = -510;
self.menu.open = false;
}

destroyMenu(player)
{
player.MenuInit = false;
closeMenu();
wait 0.3;

player.menu.options destroy();
player.menu.background destroy();
player.menu.scroller destroy();
player.infos destroy();
player.menu.title destroy();
player notify("destroyMenu");
}

closeMenuOnDeath()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");
for (;Winky Winky
{
self waittill("death");
self.menu.closeondeath = true;
self submenu("^3Created by: IcyAF-", "^3Created by: IcyAF-");
closeMenu();
self.menu.closeondeath = false;
}
}

scaleLol()
{
self endon("stopScale");
for(;Winky Winky
{
self.tez.fontscale = 2.5;
wait .05;
self.tez.fontscale = 2.6;
wait .05;
self.tez.fontscale = 2.7;
wait .05;
self.tez.fontscale = 2.8;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 3;
wait .05;
self.tez.fontscale = 3.1;
wait .05;
self.tez.fontscale = 3;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.8;
wait .05;
self.tez.fontscale = 2.7;
wait .05;
self.tez.fontscale = 2.6;
wait .05;
}
}

StoreShaders()
{
self.menu.background = self drawShader("white", 0, -50, 900, 500, (0.070, 0.070, 0.070), 0, 0);
self.menu.scroller = self drawShader("rank_prestige9", -85, 30, 20, 20, (1, 1, 1), 255, 1);
}

StoreText(menu, title)
{
self.menu.currentmenu = menu;
self.menu.title destroy();
string = "";
self.menu.title = drawText(title, "objective", 1.3, 0, 40, (1, 1, 1), 0, (0.67, 0, 1), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;
self notify ("stopScale");
self thread scaleLol();
self.tez destroy();
self.tez = self createFontString( "default", 2.5);
self.tez setPoint( "CENTER", "TOP", 0, 23 );
self.tez setText("Desolation v1.5");
self.tez FadeOverTime(0.3);
self.tez.alpha = 1;
self.tez.foreground = true;
self.tez.archived = false;
self.tez.glowAlpha = 1;
self.tez.glowColor = (0.67, 0, 1);

for(i = 0; i < self.menu.menuopt[menu].size; i++)
{ string += self.menu.menuopt[menu][i]+ "\n"; }

self.menu.options destroy();
self.menu.options = drawText(string, "default", 1.7, 10, 68, (1, 1, 1), 0, (0.67, 0, 1), 0, 4);
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 1;
self.menu.options.glowColor = (0.67, 0, 1);
}

MenuInit()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");

self.menu = spawnstruct();
self.toggles = spawnstruct();

self.menu.open = false;

self StoreShaders();
self CreateMenu();


for(;Winky Winky
{


if(self meleeButtonPressed() && self adsButtonPressed() && !self.menu.open)
{
openMenu();
}
if(self.menu.open)
{
if(self useButtonPressed())
{
if(isDefined(self.menu.previousmenu[self.menu.currentmenu]))
{
self submenu(self.menu.previousmenu[self.menu.currentmenu]);
}
else
{
closeMenu();
}
wait 0.2;
}
if(self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self updateScrollbar();

}
if(self jumpButtonPressed())
{
self thread [[self.menu.menufunc[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
wait 0.2;
}
}
wait 0.05;
}
}

submenu(input, title)
{
if (verificationToNum(self.status) >= verificationToNum(self.menu.status[input]))
{
self.menu.options destroy();

if (input == "^3Created By: ^5IcyAF-")
self thread StoreText(input, "^3Created By: ^5IcyAF-");
else if (input == "Players Menu")
{
self updatePlayersMenu();
self thread StoreText(input, "Players");
}
else
self thread StoreText(input, title);

self.CurMenu = input;

self.menu.scrollerpos[self.CurMenu] = self.menu.curs[self.CurMenu];
self.menu.curs[input] = self.menu.scrollerpos[input];

if (!self.menu.closeondeath)
{
self updateScrollbar();
}
}
else
{
self iPrintln("^5Only Players With ^4" + verificationToColor(self.menu.status[input]) + " ^5Can Access This Menu!");
}
}

//

Test()
{
self iPrintln("^6Desolation v1.5 ^7By: ^5IcyAF-");
}





Have you tried anything?
03-22-2016, 03:37 PM #3
sven
Are you high?
Originally posted by John View Post
Have you tried anything?


i have, and it always freezes when i open the menu
03-22-2016, 09:25 PM #4
HiddenHour
I defeated!
Originally posted by IcyAF
So today ive been working on my menu, and i can't figure out how to make the scrollbar effect that makes the highlighted option glow and grow. help would be appreciated.

    #include maps/mp/_utility;
#include common_scripts/utility;
#include maps/mp/gametypes/_hud_util;
#include maps/mp/gametypes/_weapons;
#include maps/mp/gametypes/_teams;
#include maps/mp/gametypes/_hud;
#include maps/mp/teams/_teams;
#include maps/mp/killstreaks/_remotemissile;
#include maps/mp/killstreaks/_killstreaks;
#include maps/mp/killstreaks/_dogs;
#include maps/mp/gametypes/_hud_message;
#include maps/mp/_ambientpackage;


init()
{
level thread onplayerconnect();
precacheShader("line_horizontal");
precacheModel( "projectile_hellfire_missile" );
precacheShader("overlay_low_health");
precacheShader("mp_hud_cluster_status");
precacheShader("em_bg_ani_anarchy");
precacheModel("defaultvehicle");
precacheModel("projectile_hellfire_missile");
precacheModel("t6_wpn_supply_drop_trap");
precacheModel("veh_t6_air_v78_vtol_killstreak");
precacheModel("p6_dogtags");
precacheModel("veh_t6_drone_overwatch_light");
precacheModel("veh_t6_drone_uav");
precacheModel("veh_t6_drone_rcxd");
precacheModel("veh_t6_drone_tank");
precacheModel("t6_wpn_turret_sentry_gun");
precacheModel("veh_t6_drone_pegasus_mp");
precacheModel("t6_wpn_turret_sentry_gun_yellow");
precacheModel("t6_wpn_turret_sentry_gun_red");
precacheModel("prop_suitcase_bomb");
precacheModel("german_shepherd");
precacheModel("c_usa_mp_seal6_sniper_fb");
precacheModel("t6_wpn_supply_drop_detect");
precacheModel("veh_t6_air_fa38_killstreak");
precacheModel("p6_express_train_track_a01");
precacheModel("t6_wpn_launch_smaw_world");
precacheShader("overlay_low_health");
precacheShader("rank_prestige10");
precacheShader("rank_prestige11");
precacheShader("rank_prestige12");
precacheShader("rank_prestige13");
precacheShader("rank_prestige14");
precacheShader("rank_prestige15");
precacheShader("em_bg_ani_w115");
precacheShader("em_bg_ani_beast");
precacheShader("em_bg_ani_octane");
precacheShader("em_bg_ani_dmh");
precacheShader("em_bg_ani_anarchy");
precacheShader("em_bg_ani_paladin");
precacheShader("em_bg_ani_afterlife");
precacheShader("em_bg_ani_comics");
precacheShader("emblem_bg_dragonfire");
precacheShader("emblem_bg_nuketown_2025");
precacheShader("emblem_bg_nuketown_z");
precacheShader("emblem_bg_roxann_soldier");
precacheShader("emblem_bg_ghost");
precacheShader("menu_camo_gold_pattern");
precacheShader("menu_camo_diamond_pattern");
precacheshader("mp_hud_cluster_status");
precacheshader("emblem_bg_bo2_nuclear_killer");
precacheshader("gradient_center");
precacheShader("hud_remote_missile_target");
precacheShader("headicon_dead");
precachelocationselector("hud_medals_default");
precacheShader("emblem_bg_laid_to_rest");
precacheVehicle("heli_guard_mp");
precacheModel("veh_t6_drone_overwatch_light");
precacheModel("defaultactor");
precacheShader("rank_prestige9");
precacheShader("line_horizontal");
precacheModel("projectile_hellfire_missile");
precacheModel("t6_wpn_supply_drop_ally");
precacheModel("mp_flag_green");
precacheModel("mp_flag_red");
precacheShader("progress_bar_bg");
level.deads = "headicon_dead";
level.esps = "hud_remote_missile_target";
level.nuke = [];
level.activenukes =0;
level.icontest = "progress_bar_bg";
level.icontest = "line_horizontal";
level.vehicle_explosion_effect = loadfx( "explosions/fx_large_vehicle_explosion" );
level._effect[ "flak20_fire_fx" ] = loadfx( "weapon/tracer/fx_tracer_flak_single_noExp" );
precacheModel("german_shepherd");
level._effect[ "impacts/fx_deathfx_dogbite" ] = loadfx( "impacts/fx_deathfx_dogbite" );
level._effect[ "impacts/fx_large_glass" ] = loadfx( "impacts/fx_large_glass" );
level.waypointGreen=loadFX("misc/fx_equip_tac_insert_light_grn");
level.waypointRed=loadFX("misc/fx_equip_tac_insert_light_red");
level.remote_mortar_fx[ "missileExplode" ]=loadfx("weapon/remote_mortar/fx_rmt_mortar_explosion");
level.Jetexplo = loadfx( "vehicle/vexplosion/fx_vexplode_u2_exp_mp" );
setDvar("gershdevice",0);
level.activeFlags = 0;
level.bunker = true;
level.result = 0;
level.activeFlags = 0;
level.activePackOPunchCrates = 0;
level.activeSpawnweaponCrates = 0;
level.Entities = [];
level.amountOfEntities = 0;
level.clientid = 0;
level thread removeSkyBarrier();

}
removeSkyBarrier()
{
entArray = getEntArray();
for (index = 0; index < entArray.size; index++)
{
if(isSubStr(entArray[index].classname, "trigger_hurt") && entArray[index].origin[2] > 180)
entArray[index].origin = (0, 0, 9999999);
}
}
PrecacheAll()
{
/* Precache Models */ //for Bunker //for bunker
self.AllMyModels = strTok("prop_suitcase_bomb;veh_t6_drone_overwatch_light;mp_flag_green;mp_flag_red;mp_flag_neutral",";");
for(i=0;i<self.AllMyModels.size;i++)
{
PrecacheModel(self.AllMyModels[i]);
}
/* Precache Items */
self.AllMyItems = strTok("minigun_wager_mp;m32_wager_mp",";");//skybase
for(F=0;F<self.AllMyItems.size;F++)
{
PrecacheItem(self.AllMyItems[F]);
}
}
onplayerconnect()
{
for(;Winky Winky
{
level waittill( "connecting", player );
if(player isHost())
player.status = "Host";
else
player.status = "Unverified";

player thread onplayerspawned();
}
}

onplayerspawned()
{
self endon( "disconnect" );
level endon( "game_ended" );
self freezecontrols(false);
self.MenuInit = false;

for(;Winky Winky
{
self waittill( "spawned_player" );
if( self.status == "Host" || self.status == "Co-Host" || self.status == "Admin" || self.status == "VIP" || self.status == "Verified")
{
self thread welcomeMessage();
if (!self.MenuInit)
{
self.MenuInit = true;
self thread MenuInit();
self thread closeMenuOnDeath();
self.swagtext = self createFontString( "objective", 2.Cool Man (aka Tustin);
self.swagtext setPoint( "right", "right", 20, -185 );
self.swagtext.alpha = 0;
self.swagtext.foreground = true;
self.swagtext.archived = false;
}
}
}
}

welcomeMessage()
{
self.welcomemsg = self createFontString("hudsmall", 2.5);
self.welcomemsg setPoint("TOP", "CENTER", 250, 0);
self.welcomemsg setText("Welcome\n^5" + self.name + "^7!\n^7Desolation ^6v1.5\n^F^7Enjoy!");
level notify("textset");
level.result += 1;
self.welcomemsg.alpha = 1;
self.welcomemsg.archived = true;
self.welcomemsg.glowalpha = 1;
self.welcomemsg.sort = 666;
self.welcomemsg.glowColor = (0.67, 0, 1);
self.welcomemsg setCOD7DecodeFX(40, 10000, 900);
}


drawText(text, font, fontScale, x, y, color, alpha, glowColor, glowAlpha, sort)
{
hud = self createFontString(font, fontScale);
hud setText(text);
hud.x = x;
hud.y = y;
hud.color = color;
hud.alpha = alpha;
hud.glowColor = glowColor;
hud.glowAlpha = glowAlpha;
hud.sort = sort;
hud.alpha = alpha;
return hud;
}

drawShader(shader, x, y, width, height, color, alpha, sort)
{
hud = newClientHudElem(self);
hud.elemtype = "icon";
hud.color = color;
hud.alpha = alpha;
hud.sort = sort;
hud.children = [];
hud setParent(level.uiParent);
hud setShader(shader, width, height);
hud.x = x;
hud.y = y;
return hud;
}

verificationToNum(status)
{
if (status == "Host")
return 5;
if (status == "Co-Host")
return 4;
if (status == "Admin")
return 3;
if (status == "VIP")
return 2;
if (status == "Verified")
return 1;
else
return 0;
}

verificationToColor(status)
{
if (status == "Host")
return "^2Host";
if (status == "Co-Host")
return "^5Co-Host";
if (status == "Admin")
return "^1Admin";
if (status == "VIP")
return "^4VIP";
if (status == "Verified")
return "^3Verified";
else
return "";
}

changeVerificationMenu(player, verlevel)
{
if( player.status != verlevel && !player isHost())
{
player.status = verlevel;

self.menu.title destroy();
self.menu.title = drawText("[" + verificationToColor(player.status) + "^7] " + getPlayerName(player), "objective", 2, -100, 30, (1, 1, 1), 0, (1, 0, 0), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;

if(player.status == "Unverified")
player thread destroyMenu(player);

player MenuInit();
self iPrintln("Set Access Level For " + getPlayerName(player) + " To " + verificationToColor(verlevel));
player iPrintln("Your Access Level Has Been Set To " + verificationToColor(verlevel));
}
else
{
if (player isHost())
self iPrintln("You Cannot Change The Access Level of The " + verificationToColor(player.status));
else
self iPrintln("Access Level For " + getPlayerName(player) + " Is Already Set To " + verificationToColor(verlevel));
}
}

changeVerification(player, verlevel)
{
player.status = verlevel;
}

getPlayerName(player)
{
playerName = getSubStr(player.name, 0, player.name.size);
for(i=0; i < playerName.size; i++)
{
if(playerName[i] == "]")
break;
}
if(playerName.size != i)
playerName = getSubStr(playerName, i + 1, playerName.size);
return playerName;
}

Iif(bool, rTrue, rFalse)
{
if(bool)
return rTrue;
else
return rFalse;
}

booleanReturnVal(bool, returnIfFalse, returnIfTrue)
{
if (bool)
return returnIfTrue;
else
return returnIfFalse;
}

booleanOpposite(bool)
{
if(!isDefined(bool))
return true;
if (bool)
return false;
else
return true;
}

CreateMenu()
{
self add_menu("^3Created by: IcyAF-", undefined, "Unverified");
self add_option("^3Created by: IcyAF-", "Main Mods", ::submenu, "MainMods", "Main Mods");
self add_option("^3Created by: IcyAF-", "Fun Menu", ::submenu, "FunMenu", "Fun Menu");
self add_option("^3Created by: IcyAF-", "Weapons Menu", ::submenu, "Weapons Menu", "Weapons Menu");
self add_option("^3Created by: IcyAF-", "Message Menu", ::submenu, "Message Menu", "Message Menu");
self add_option("^3Created by: IcyAF-", "Sub Menu 5", ::submenu, "SubMenu5", "Sub Menu 5");
self add_option("^3Created by: IcyAF-", "Sub Menu 6", ::submenu, "SubMenu6", "Sub Menu 6");
self add_option("^3Created by: IcyAF-", "Sub Menu 7", ::submenu, "SubMenu7", "Sub Menu 7");
self add_option("^3Created by: IcyAF-", "Sub Menu 8", ::submenu, "SubMenu8", "Sub Menu 8");
self add_option("^3Created by: IcyAF-", "Sub Menu 9", ::submenu, "SubMenu9", "Sub Menu 9");
self add_option("^3Created by: IcyAF-", "Sub Menu 10", ::submenu, "SubMenu10", "Sub Menu 10");
self add_option("^3Created by: IcyAF-", "Sub Menu 11", ::submenu, "SubMenu11", "Sub Menu 11");
self add_option("^3Created by: IcyAF-", "Players Menu", ::submenu, "Players Menu", "Players Menu");
self add_option("^3Created by: IcyAF-", "All Players Menu", ::submenu, "AllMenu", "All Players Menu");


self add_menu("MainMods", "^3Created by: IcyAF-", "VIP");
self add_option("MainMods", "God Mode", ::toggle_god);//
self add_option("MainMods", "Infinite Ammo", ::unlimited_ammo);//
self add_option("MainMods", "Invisible", ::invis);//
self add_option("MainMods", "Speed X2", ::speed_x2);//
self add_option("MainMods", "All Perks", ::give_all_perks);//
self add_option("MainMods", "Multi Jump", ::Toggle_Multijump);//
self add_option("MainMods", "Change Class In Game", ::change_class);//
self add_option("MainMods", "Scorestreaks", ::giveall_scorestreaks);//
self add_option("MainMods", "UAV", ::give_uav);//
self add_option("MainMods", "NoClip", ::togglenoclip);//
self add_option("MainMods", "Teleport", ::doTeleport);//
self add_option("MainMods", "FOV", ::ToggleFOV);//
self add_option("MainMods", "Clone", ::cloneme);//
self add_option("MainMods", "Dead Clone", ::deadclone);//
self add_option("MainMods", "^3Suicide", ::commitSuicide);//
self add_option("MainMods", "^7Plant Bomb ^1(S&Awesome face)", ::PlantBomb);//
self add_option("MainMods", "^7Defuse Bomb ^1(S&Awesome face)", :HappyefuseBomb);//

self add_menu("FunMenu", "^3Created by: IcyAF-", "VIP");
self add_option("FunMenu", "Third Person", ::giveTP);//
self add_option("FunMenu", "Drivable Car", ::spawnDrivableCar);//
self add_option("FunMenu", "Teleport Gun", ::ToggleTeleportGun);//
self add_option("FunMenu", "Rocket Rain", ::rainProjectiles, "heli_gunner_rockets_mp");//
self add_option("FunMenu", "Kamikaze Bomber", ::kamikaze);//
self add_option("FunMenu", "Smoke Monster", ::initSmokeMonster);//
self add_option("FunMenu", "Pokemon", ::Pokeball);//
self add_option("FunMenu", "Rapid Fire", ::rapidFire);//
self add_option("FunMenu", "Terminator", ::ToggleTerminator);//
self add_option("FunMenu", "Gersh Device", ::gershdevice);//
self add_option("FunMenu", "Light Sabers", ::givesabers);//
self add_option("FunMenu", "Electric Cherry", ::ElectricCherry);//
self add_option("FunMenu", "The Hulk v2", ::hulktoggle);//
self add_option("FunMenu", "Nova Gas", ::NovaGas);//
self add_option("FunMenu", "Human Torch", ::human_torch);//
self add_option("FunMenu", "^6>Change Minimap<", ::submenu, "ChangeMinimap", "Change Minimap");
self add_option("FunMenu", "^6>Fun Menu 2<", ::submenu, "FunMenu2", "Fun Menu 2");


self add_menu("FunMenu2", "FunMenu", "VIP");
self add_option("FunMenu2", "T-Bag", ::Tbag);
self add_option("FunMenu2", "Auto Drop Shot", ::AutoDropshot);//
self add_option("FunMenu2", "Matrix", ::Matrixx);//
self add_option("FunMenu 2", "Jetpack", ::doJetPack);//
self add_option("FunMenu2", "Earthquake", ::Quake);//
self add_option("FunMenu2", "Electric Man", ::electrinMan);//
self add_option("FunMenu2", "Akimbo Miniguns", ::akimboMiniGuns);//
self add_option("FunMenu2", "Glass Man", ::Glass);//
self add_option("FunMenu2", "Light Up The Sky", ::LetsLightTheUP);//
self add_option("FunMenu2", "Roll Away Dog", ::RollAwayDog);//
self add_option("FunMenu2", "Riot Man", ::RiotMan);//
self add_option("FunMenu2", "Walking Lodestar", ::Lodestartoggle);
self add_option("FunMenu2", "Hunter", ::hunter);
self add_option("FunMenu2", "Forcefield", ::initBallthing);
self add_option("FunMenu2", "Centipede", ::Centipede);
self add_option("FunMenu2", "Fireballs", ::fireballstoggle);
self add_option("FunMenu2", "Adventure Time", ::initAdventureTime);
self add_option("FunMenu2", "AC 130", ::doac130);

self add_menu("ChangeMinimap", "FunMenu", "Host");
self add_option("ChangeMinimap", "Reset", ::resetMiniMap);
self add_option("ChangeMinimap", "Checkered Box", ::ChangeMiniMap, "rank_prestige1");
self add_option("ChangeMinimap", "Prestige 10", ::ChangeMiniMap, "rank_prestige10");
self add_option("ChangeMinimap", "Prestige 11", ::ChangeMiniMap, "rank_prestige11");
self add_option("ChangeMinimap", "Prestige 12", ::ChangeMiniMap, "rank_prestige12");
self add_option("ChangeMinimap", "Prestige 13", ::ChangeMiniMap, "rank_prestige13");
self add_option("ChangeMinimap", "Prestige 14", ::ChangeMiniMap, "rank_prestige14");
self add_option("ChangeMinimap", "Prestige 15", ::ChangeMiniMap, "rank_prestige15");
self add_option("ChangeMinimap", "Weaponized 115", ::ChangeMiniMap, "em_bg_ani_w115");
self add_option("ChangeMinimap", "Beast", ::ChangeMiniMap, "em_bg_ani_beast");
self add_option("ChangeMinimap", "Octane", ::ChangeMiniMap, "em_bg_ani_octane");
self add_option("ChangeMinimap", "Dead Mans Hand", ::ChangeMiniMap, "em_bg_ani_dmh");
self add_option("ChangeMinimap", "Anarchy", ::ChangeMiniMap, "em_bg_ani_anarchy");
self add_option("ChangeMinimap", "Paladin", ::ChangeMiniMap, "em_bg_ani_paladin");
self add_option("ChangeMinimap", "Afterlife", ::ChangeMiniMap, "em_bg_ani_afterlife");
self add_option("ChangeMinimap", "Comics", ::ChangeMiniMap, "em_bg_ani_comics");
self add_option("ChangeMinimap", "^6>Change Minimap 2<", ::submenu, "ChangeMinimap2", "Change Minimap 2");

self add_menu("ChangeMinimap2", "ChangeMinimap", "Host");
self add_option("ChangeMinimap2", "Dragonfire", ::ChangeMiniMap, "emblem_bg_dragonfire");
self add_option("ChangeMinimap2", "Nuketown 2025", ::ChangeMiniMap, "emblem_bg_nuketown_2025");
self add_option("ChangeMinimap2", "Nuketown Zombies", ::ChangeMiniMap, "emblem_bg_nuketown_z");
self add_option("ChangeMinimap2", "Season Pass", ::ChangeMiniMap, "emblem_bg_seasonpass");
self add_option("ChangeMinimap2", "Advanced Warfare", ::ChangeMiniMap, "emblem_bg_roxann_soldier");
self add_option("ChangeMinimap2", "Ghost", ::ChangeMiniMap, "emblem_bg_ghost");
self add_option("ChangeMinimap2", "Gold Camo", ::ChangeMiniMap, "menu_camo_gold_pattern");
self add_option("ChangeMinimap2", "Diamond Camo", ::ChangeMiniMap, "menu_camo_diamond_pattern");


self add_menu("Weapons Menu", "^3Created by: IcyAF-", "VIP");
self add_option("Weapons Menu", "Random Camo", ::CamoChanger);
self add_option("Weapons Menu", "Random DLC Camo", :HappyLCCamoChanger);
self add_option("Weapons Menu", "Diamond Camo", ::givecamo, 16);
self add_option("Weapons Menu", "Gold Camo", ::givecamo, 15);
self add_option("Weapons Menu", "Weaponized Camo", ::givecamo, 43);
self add_option("Weapons Menu", "Dragon Camo", ::givecamo, 32);
self add_option("Weapons Menu", "Ghosts Camo", ::givecamo, 29);
self add_option("Weapons Menu", "Afterlife Camo", ::givecamo, 44);
self add_option("Weapons Menu", "Cyborg Camo", ::givecamo, 31);
self add_option("Weapons Menu", "CE Digital Camo", ::givecamo, 1Cool Man (aka Tustin);
//self add_option("Weapons Menu", "^5>Modded Weapons<", ::submenu, "Modded Weapons", "Modded Weapons");
self add_option("Weapons Menu", "^6>Normal Weapons<", ::submenu, "Normal Weapons", "Normal Weapons");

/*self add_menu("Modded Weapons", "Weapons Menu", "Admin");
self add_option("Modded Weapons", "Ray Gun", ::initRaygun);//
self add_option("Modded Weapons", "Ray Gun Mk. II", ::initRaygunM2);//
self add_option("Modded Weapons", "Ray Gun Mk. III", ::initRaygunM3);//
self add_option("Modded Weapons", "Thunder Gun", ::ThunGun);//
self add_option("Modded Weapons", "Mustang And Sally", ::ToggleMustangGun);//
self add_option("Modded Weapons", "Rocket Teleporter", ::initRocketTeleport);//
self add_option("Modded Weapons", "Ballistic Teleporter", ::toggleknifetele);//
self add_option("Modded Weapons", "Glitched Fiveseven", ::giveWeapon, "fiveseven_lh_mp");//
self add_option("Modded Weapons", "Default Weapon", ::defaultweapon);//
self add_option("Modded Weapons", "Water Shield", ::CrazyRiotShield);//
self add_option("Modded Weapons", "Dragons Breath", ::ToggleDragonGun);//
self add_option("Modded Weapons", "Electric Gun", ::toggle_lightGun);//
self add_option("Modded Weapons", "Death Rocket Gun", ::shootvadertog);//
self add_option("Modded Weapons", "Super Executioner", ::SuperMagnum);//
self add_option("Modded Weapons", "Maniac Knife", ::giveWeapon, "knife_mp");*/

self add_menu("Normal Weapons", "Weapons Menu", "VIP");
self add_option("Normal Weapons", "Assault Rifles", ::submenu, "Assault Rifles", "Assault Rifles");
self add_option("Normal Weapons", "Submachine Guns", ::submenu, "Submachine Guns", "Submachine Guns");
self add_option("Normal Weapons", "Light Machine Guns", ::submenu, "Light Machine Guns", "Light Machine Guns");
self add_option("Normal Weapons", "Sniper Rifles", ::submenu, "Sniper Rifles", "Sniper Rifles");
self add_option("Normal Weapons", "Shotguns", ::submenu, "Shotguns", "Shotguns");
self add_option("Normal Weapons", "Pistols", ::submenu, "Pistols", "Pistols");
self add_option("Normal Weapons", "Launchers", ::submenu , "Launchers", "Launchers");
self add_option("Normal Weapons", "Specials", ::submenu, "Specials", "Specials");
self add_menu("Submachine Guns", "Normal Weapons", "VIP");
self add_option("Submachine Guns", "MP7", ::giveWeapon, "mp7_mp");
self add_option("Submachine Guns", "PDW-57", ::giveWeapon, "pdw57_mp");
self add_option("Submachine Guns", "Vector-K10", ::giveWeapon, "vector_mp");
self add_option("Submachine Guns", "MSMC", ::giveWeapon, "insas_mp");
self add_option("Submachine Guns", "Chicom CQB", ::giveWeapon, "qcw05_mp");
self add_option("Submachine Guns", "Skorpion EVO", ::giveWeapon, "evoskorpion_mp");
self add_option("Submachine Guns", "Peacekeeper", ::giveWeapon, "peacekeeper_mp");

self add_menu("Assault Rifles", "Normal Weapons", "VIP");
self add_option("Assault Rifles", "MTAR", ::giveWeapon, "tar21_mp");
self add_option("Assault Rifles", "Type 25", ::giveWeapon, "type95_mp");
self add_option("Assault Rifles", "SWAT-556", ::giveWeapon, "sig556_mp");
self add_option("Assault Rifles", "FAL OSW", ::giveWeapon, "sa58_mp");
self add_option("Assault Rifles", "M27", ::giveWeapon, "hk416_mp");
self add_option("Assault Rifles", "SCAR-H", ::giveWeapon, "scar_mp");
self add_option("Assault Rifles", "SMR", ::giveWeapon, "saritch_mp");
self add_option("Assault Rifles", "M8A1", ::giveWeapon, "xm8_mp");
self add_option("Assault Rifles", "AN-94", ::giveWeapon, "an94_mp");

self add_menu("Shotguns", "Normal Weapons", "VIP");
self add_option("Shotguns", "R870 MCS", ::giveWeapon, "870mcs_mp");
self add_option("Shotguns", "S12", ::giveWeapon, "saiga12_mp");
self add_option("Shotguns", "KSG", ::giveWeapon, "ksg_mp");
self add_option("Shotguns", "M1216", ::giveWeapon, "srm1216_mp");

self add_menu("Light Machine Guns", "Normal Weapons", "VIP");
self add_option("Light Machine Guns", "MK 48", ::giveWeapon, "mk48_mp");
self add_option("Light Machine Guns", "QBB LSW", ::giveWeapon, "qbb95_mp");
self add_option("Light Machine Guns", "LSAT", ::giveWeapon, "lsat_mp");
self add_option("Light Machine Guns", "HAMR", ::giveWeapon, "hamr_mp");

self add_menu("Sniper Rifles", "Normal Weapons", "VIP");
self add_option("Sniper Rifles", "SVU-AS", ::giveWeapon, "svu_mp");
self add_option("Sniper Rifles", "DSR 50", ::giveWeapon, "dsr50_mp");
self add_option("Sniper Rifles", "Ballista", ::giveWeapon, "ballista_mp");
self add_option("Sniper Rifles", "XPR-50", ::giveWeapon, "as50_mp");

self add_menu("Pistols", "Normal Weapons", "VIP");
self add_option("Pistols", "Five-Seven", ::giveWeapon, "fiveseven_mp");
self add_option("Pistols", "Tac-45", ::giveWeapon, "fnp45_mp");
self add_option("Pistols", "B23R", ::giveWeapon, "beretta93r_mp");
self add_option("Pistols", "Executioner", ::giveWeapon, "judge_mp");
self add_option("Pistols", "KAP-40", ::giveWeapon, "kard_mp");

self add_menu("Launchers", "Normal Weapons", "VIP");
self add_option("Launchers", "SMAW", ::giveWeapon, "smaw_mp");
self add_option("Launchers", "RPG", ::giveWeapon, "usrpg_mp");

self add_menu("Specials", "Normal Weapons", "VIP");
self add_option("Specials", "Assault Shield", ::giveWeapon, "riotshield_mp");
self add_option("Specials", "Ballistic Knife", ::giveWeapon, "knife_ballistic_mp");
self add_option("Specials", "Crossbow", ::giveWeapon, "crossbow_mp");

self add_menu("Message Menu", "^3Created by: IcyAF-", "Admin");
self add_option("Message Menu", "Replies", ::submenu, "Replies", "Replies");
self add_option("Message Menu", "Kind Messages", ::submenu, "Kind Messages", "Kind Messages");
self add_option("Message Menu", "Unkind Messages", ::submenu, "Unkind Messages", "Unkind Messages");
self add_option("Message Menu", "Advertisments", ::submenu, "Advertisments", "Advertisments");
self add_option("Message Menu", "Misc Messages", ::submenu, "Misc Messages", "Misc Messages");
//self add_option("Message Menu", "^4------", ::isntAnOption);
//self add_option("Message Menu", "^7Binds ^3(SELF)^7", ::bindsInstructions);
//self add_option("Message Menu", "How To Use The Menu", ::menuInstructions);

self add_menu("Advertisments", "Message Menu", "Admin");
//self add_option("Advertisments", "Creator & Patch Advert ^6<3", ::creatorMessage);
//self add_option("Advertisments", "^7Credits", ::doCredz);
self add_option("Advertisments", "^5NGU", ::typewriter, "Visit ^5www.nextgenupdate.com ^7for OFW and CFW mods!");
self add_option("Advertisments", "^2*********", ::typewriter, "Visit ^2www.************** ^7for the latest mods");
self add_option("Advertisments", "^1Portal Centric", ::typewriter, "Visit ^1*************.net ^7for CFW mods");

self add_menu("Kind Messages", "Message Menu", "Admin");
self add_option("Kind Messages", "Like", ::typewriter, "I like you");
self add_option("Kind Messages", "Really Like", ::typewriter, "I really like you");
self add_option("Kind Messages", "Love", ::typewriter, "I love you");
self add_option("Kind Messages", "Amazing", ::typewriter, "You're amazing!");
self add_option("Kind Messages", "Great ^7At This", ::typewriter, "You're great at this!");
self add_option("Kind Messages", "Joking", ::typewriter, "I was joking... lol");
self add_option("Kind Messages", "Love You All", ::typewriter, "I love you all!");

self add_menu("Replies", "Message Menu", "Admin");
self add_option("Replies", "Yes", ::typewriter, "Yes");
self add_option("Replies", "No", ::typewriter, "No");
self add_option("Replies", "Probably", ::typewriter, "Probably");
self add_option("Replies", "Maybe", ::typewriter, "Maybe");
self add_option("Replies", "I Don't Know", ::typewriter, "I dont know...");
self add_option("Replies", "Want Some?", ::typewriter, "Y'want some?");
self add_option("Replies", "What?", ::typewriter, "What?");
self add_option("Replies", "Why?", ::typewriter, "Why?");
self add_option("Replies", "How?", ::typewriter, "How?");
self add_option("Replies", "When?", ::typewriter, "When?");
self add_option("Replies", "Sorry", ::typewriter, "Sorry");
self add_option("Replies", "Going AFK", ::typewriter, "I'm going AFK a sec...");

self add_menu("Unkind Messages", "Message Menu", "Admin");
self add_option("Unkind Messages", "STFU", ::typewriter, "STFU!");
self add_option("Unkind Messages", "GTFO", ::typewriter, "GTFO!");
self add_option("Unkind Messages", "Squeaker", ::typewriter, "Get that fucking squeaker out of here!");
self add_option("Unkind Messages", "Not Cool", ::typewriter, "Dude, you're not cool...");
self add_option("Unkind Messages", "Patch Is Better", ::typewriter, "My patch is better than your shitty patch! Go back to CFG");
self add_option("Unkind Messages", "I Don't Care", ::typewriter, "I really couldn't care");
self add_option("Unkind Messages", "No One Cares", ::typewriter, "No one could care...");
self add_option("Unkind Messages", "Fuck Off", ::typewriter, "Fuck Off!");
self add_option("Unkind Messages", "Kill Yourself", ::typewriter, "Kill yourself");
self add_option("Unkind Messages", "... Die", ::typewriter, "... die...");
self add_option("Unkind Messages", "Derank?", ::typewriter, "Wanna get deranked???");

self add_menu("Misc Messages", "Message Menu", "Admin");
self add_option("Misc Messages", "Stop Using Aimbot", ::typewriter, "Stop using aimbot FFS...");
self add_option("Misc Messages", "Want Kicked?", ::typewriter, "Do you want kicked m8?");
//self add_option("Misc Messages", "Host Is A Legend", ::hostIsLegend);
self add_option("Misc Messages", "Who's Host?", ::typewriter, "I'm your Host!\nEnjoy ^6Desolation ^4v1");
self add_option("Misc Messages", "Not Getting Menu", ::typewriter, "Your not getting the menu...");
self add_option("Misc Messages", "$10 PayPal", ::typewriter, "Modded accounts are $10 PayPal");
self add_option("Misc Messages", "Who's Hacking?", ::typewriter, "Who's hacking?");
self add_option("Misc Messages", "Stop Spamming The Menu", ::typewriter, "Stop spamming the menu!");
self add_option("Misc Messages", "Don't Spam The Menu", ::typewriter, "Don't spam the menu\n^1Otherwise overflow...");
self add_option("Misc Messages", "Unlock All Isn't Free", ::typewriter, "Unlock all isn't free...");
self add_option("Misc Messages", "Trickshot Last", ::typewriter, "Trickshot last or you get kicked!");
self add_option("Misc Messages", "Quickscope Lobby", ::typewriter, "Quickscope or you get kicked!");


self add_menu("SubMenu5", "^3Created by: IcyAF-", "VIP");
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);
self add_option("SubMenu5", "Options", ::Test);


self add_menu("SubMenu6", "^3Created by: IcyAF-", "Co-Host");
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);
self add_option("SubMenu6", "Options", ::Test);


self add_menu("SubMenu7", "^3Created by: IcyAF-", "Admin");
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);
self add_option("SubMenu7", "Options", ::Test);


self add_menu("SubMenu8", "^3Created by: IcyAF-", "Co-Host");
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);
self add_option("SubMenu8", "Options", ::Test);


self add_menu("SubMenu9", "^3Created by: IcyAF-", "Admin");
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);
self add_option("SubMenu9", "Options", ::Test);


self add_menu("SubMenu10", "^3Created by: IcyAF-", "VIP");
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);
self add_option("SubMenu10", "Options", ::Test);


self add_menu("SubMenu11", "^3Created by: IcyAF-", "VIP");
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);
self add_option("SubMenu11", "Options", ::Test);


self add_menu("AllMenu", "^3Created by: IcyAF-", "Co-Host");
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);
self add_option("AllMenu", "Options", ::Test);

self add_menu("Players Menu", "^3Created by: IcyAF-", "Co-Host");
for (i = 0; i < 12; i++)
{ self add_menu("pOpt " + i, "Players Menu", "Co-Host"); }

}


updatePlayersMenu()
{
self.menu.menucount["Players Menu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["Players Menu"] > playersizefixed)
{
self.menu.scrollerpos["Players Menu"] = playersizefixed;
self.menu.curs["Players Menu"] = playersizefixed;
}

self add_option("Players Menu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);

self add_menu_alt("pOpt " + i, "Players Menu");
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
}
}

add_menu_alt(Menu, prevmenu)
{
self.menu.getmenu[Menu] = Menu;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_menu(Menu, prevmenu, status)
{
self.menu.status[Menu] = status;
self.menu.getmenu[Menu] = Menu;
self.menu.scrollerpos[Menu] = 0;
self.menu.curs[Menu] = 0;
self.menu.menucount[Menu] = 0;
self.menu.previousmenu[Menu] = prevmenu;
}

add_option(Menu, Text, Func, arg1, arg2)
{
Menu = self.menu.getmenu[Menu];
Num = self.menu.menucount[Menu];
self.menu.menuopt[Menu][Num] = Text;
self.menu.menufunc[Menu][Num] = Func;
self.menu.menuinput[Menu][Num] = arg1;
self.menu.menuinput1[Menu][Num] = arg2;
self.menu.menucount[Menu] += 1;
}

updateScrollbar()
{
self.menu.scroller MoveOverTime(0.10);
self.menu.scroller.y = 68 + (self.menu.curs[self.menu.currentmenu] * 20.36);
}


openMenu()
{
//self ScrollbarEffect();
self freezeControls(false);
self StoreText("^3Created by: IcyAF-", "^3Created by: IcyAF-");

self.menu.background FadeOverTime(0.30);
self.menu.background.alpha = 0.80;

self.swagtext FadeOverTime(0.3);
self.swagtext.alpha = 0.90;

self updateScrollbar();
self.menu.open = true;

}

closeMenu()
{
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 0;

self.menu.background FadeOverTime(0.3);
self.menu.background.alpha = 0;

self.swagtext FadeOverTime(0.30);
self.swagtext.alpha = 0;

self.menu.title FadeOverTime(0.30);
self.menu.title.alpha = 0;

self.tez FadeOverTime(0.30);
self.tez.alpha = 0;

self.menu.scroller MoveOverTime(0.30);
self.menu.scroller.y = -510;
self.menu.open = false;
}

destroyMenu(player)
{
player.MenuInit = false;
closeMenu();
wait 0.3;

player.menu.options destroy();
player.menu.background destroy();
player.menu.scroller destroy();
player.infos destroy();
player.menu.title destroy();
player notify("destroyMenu");
}

closeMenuOnDeath()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");
for (;Winky Winky
{
self waittill("death");
self.menu.closeondeath = true;
self submenu("^3Created by: IcyAF-", "^3Created by: IcyAF-");
closeMenu();
self.menu.closeondeath = false;
}
}

scaleLol()
{
self endon("stopScale");
for(;Winky Winky
{
self.tez.fontscale = 2.5;
wait .05;
self.tez.fontscale = 2.6;
wait .05;
self.tez.fontscale = 2.7;
wait .05;
self.tez.fontscale = 2.8;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 3;
wait .05;
self.tez.fontscale = 3.1;
wait .05;
self.tez.fontscale = 3;
wait .05;
self.tez.fontscale = 2.9;
wait .05;
self.tez.fontscale = 2.8;
wait .05;
self.tez.fontscale = 2.7;
wait .05;
self.tez.fontscale = 2.6;
wait .05;
}
}

StoreShaders()
{
self.menu.background = self drawShader("white", 0, -50, 900, 500, (0.070, 0.070, 0.070), 0, 0);
self.menu.scroller = self drawShader("rank_prestige9", -85, 30, 20, 20, (1, 1, 1), 255, 1);
}

StoreText(menu, title)
{
self.menu.currentmenu = menu;
self.menu.title destroy();
string = "";
self.menu.title = drawText(title, "objective", 1.3, 0, 40, (1, 1, 1), 0, (0.67, 0, 1), 1, 3);
self.menu.title FadeOverTime(0.3);
self.menu.title.alpha = 1;
self notify ("stopScale");
self thread scaleLol();
self.tez destroy();
self.tez = self createFontString( "default", 2.5);
self.tez setPoint( "CENTER", "TOP", 0, 23 );
self.tez setText("Desolation v1.5");
self.tez FadeOverTime(0.3);
self.tez.alpha = 1;
self.tez.foreground = true;
self.tez.archived = false;
self.tez.glowAlpha = 1;
self.tez.glowColor = (0.67, 0, 1);

for(i = 0; i < self.menu.menuopt[menu].size; i++)
{ string += self.menu.menuopt[menu][i]+ "\n"; }

self.menu.options destroy();
self.menu.options = drawText(string, "default", 1.7, 10, 68, (1, 1, 1), 0, (0.67, 0, 1), 0, 4);
self.menu.options FadeOverTime(0.3);
self.menu.options.alpha = 1;
self.menu.options.glowColor = (0.67, 0, 1);
}

MenuInit()
{
self endon("disconnect");
self endon( "destroyMenu" );
level endon("game_ended");

self.menu = spawnstruct();
self.toggles = spawnstruct();

self.menu.open = false;

self StoreShaders();
self CreateMenu();


for(;Winky Winky
{


if(self meleeButtonPressed() && self adsButtonPressed() && !self.menu.open)
{
openMenu();
}
if(self.menu.open)
{
if(self useButtonPressed())
{
if(isDefined(self.menu.previousmenu[self.menu.currentmenu]))
{
self submenu(self.menu.previousmenu[self.menu.currentmenu]);
}
else
{
closeMenu();
}
wait 0.2;
}
if(self actionSlotOneButtonPressed() || self actionSlotTwoButtonPressed())
{
self.menu.curs[self.menu.currentmenu] += (Iif(self actionSlotTwoButtonPressed(), 1, -1));
self.menu.curs[self.menu.currentmenu] = (Iif(self.menu.curs[self.menu.currentmenu] < 0, self.menu.menuopt[self.menu.currentmenu].size-1, Iif(self.menu.curs[self.menu.currentmenu] > self.menu.menuopt[self.menu.currentmenu].size-1, 0, self.menu.curs[self.menu.currentmenu])));
self updateScrollbar();

}
if(self jumpButtonPressed())
{
self thread [[self.menu.menufunc[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]]](self.menu.menuinput[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]], self.menu.menuinput1[self.menu.currentmenu][self.menu.curs[self.menu.currentmenu]]);
wait 0.2;
}
}
wait 0.05;
}
}

submenu(input, title)
{
if (verificationToNum(self.status) >= verificationToNum(self.menu.status[input]))
{
self.menu.options destroy();

if (input == "^3Created By: ^5IcyAF-")
self thread StoreText(input, "^3Created By: ^5IcyAF-");
else if (input == "Players Menu")
{
self updatePlayersMenu();
self thread StoreText(input, "Players");
}
else
self thread StoreText(input, title);

self.CurMenu = input;

self.menu.scrollerpos[self.CurMenu] = self.menu.curs[self.CurMenu];
self.menu.curs[input] = self.menu.scrollerpos[input];

if (!self.menu.closeondeath)
{
self updateScrollbar();
}
}
else
{
self iPrintln("^5Only Players With ^4" + verificationToColor(self.menu.status[input]) + " ^5Can Access This Menu!");
}
}

//

Test()
{
self iPrintln("^6Desolation v1.5 ^7By: ^5IcyAF-");
}





Well first of all you're using \n fix. If you want the options to have independent sizes, you'll need to make each option text its own element.

The following user thanked HiddenHour for this useful post:

sven

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo