Black ops 1 Mod menu won't open
-
Hello my mod menu isn't loading when. i did it by myself and it is my first time making anything like that can someone help me? It is a .gsc and i put it in this path:
C:\Users\Username\AppData\Local\Plutonium\storage\t5\scripts\zmmain()
{
self thread init();
}init()
{
self iPrintlnBold("^2Mod script successfully loaded!");
level thread monitor_all_players();
}monitor_all_players()
{
for( i = 0; <level.players.size; i++)
{
player = level.players[i];
{
if(!isDefined(player.has_modmenu))
{
player.has_modmenu = true;
player.teleport_location = undefined;
player.god_mode_active = false; // For God Mode toggle
player thread monitor_inputs();
}
}
wait 1;
}
}monitor_inputs()
{
for(;;)
{
if(self AdsButtonPressed() && self MeleeButtonPressed())
{
self thread open_menu();
self iPrintlnBold("^2Checking buttons...");
}
wait 0.1;
}
}open_menu()
{
self iPrintlnBold("^2Opening Mod Menu...");
self.menu_active = true;
self.menu_index = 0;// Background (Red Design) self.menu_background = NewHudElem(); self.menu_background SetShader("white", 500, 300); self.menu_background.color = (1, 0, 0); self.menu_background SetPoint("CENTER", "CENTER", 0, 0); self.menu_background.alpha = 0.8; // Albanian Eagle self.menu_eagle = NewHudElem(); self.menu_eagle SetShader("compassping_friendly_mp", 200, 200); self.menu_eagle.color = (0, 0, 0); self.menu_eagle SetPoint("CENTER", "CENTER", 0, -50); // Menu Title self.menu_title = NewHudElem(); self.menu_title.font = "default"; self.menu_title SetPoint("TOP", "TOP", 0, 50); self.menu_title.color = (1, 1, 1); self.menu_title SetText("^1ALBANIAN MOD MENU ^7🇦🇱"); // Options self.menu_options = []; self.menu_options[0] = "Give 10,000 Points"; self.menu_options[1] = "Give 100,000 Points"; self.menu_options[2] = "Make Player Float"; self.menu_options[3] = "Give Weapon"; self.menu_options[4] = "Infinite Ammo"; self.menu_options[5] = "Set Round"; self.menu_options[6] = "Next Round"; self.menu_options[7] = "Give Perks"; self.menu_options[8] = "God Mode"; self.menu_options[9] = "Teleport to Player"; self.menu_options[10] = "Freeze Zombies"; self.menu_options[11] = "Nuke (Kill All Zombies)"; self.menu_options[12] = "Speed Boost"; self.menu_options[13] = "Spawn Power-Up"; self.menu_options[14] = "Set Teleport Location"; self.menu_options[15] = "Go to Saved Teleport Location"; self.menu_options[16] = "Set New Teleport Location"; self.menu_options[17] = "Close"; self thread handle_menu_navigation();}
handle_menu_navigation()
{
for(;;)
{
if(!self.menu_active) return;self iPrintlnBold("^3" + self.menu_options[self.menu_index]); if(self AttackButtonPressed()) // Scroll down with SHOOT { self.menu_index++; if(self.menu_index >= self.menu_options.size) self.menu_index = 0; wait 0.2; } if(self AdsButtonPressed()) // Scroll up with AIM { self.menu_index--; if(self.menu_index < 0) self.menu_index = self.menu_options.size - 1; wait 0.2; } if(self ReloadButtonPressed()) // Confirm selection with RELOAD { self thread execute_option(self.menu_index); wait 0.2; } if(self MeleeButtonPressed()) // Close menu with MELEE { self.menu_active = false; self.menu_background Destroy(); self.menu_eagle Destroy(); self.menu_title Destroy(); self iPrintlnBold("^1Mod Menu Closed!"); return; } wait 0.1; }}
execute_option(index)
{
switch(index)
{
case 0:
self thread give_points(10000);
break;
case 1:
self thread give_points(100000);
break;
case 2:
self thread toggle_gravity();
break;
case 3:
self thread weapon_menu();
break;
case 4:
self thread toggle_infinite_ammo();
break;
case 5:
self thread set_round(20);
break;
case 6:
self thread next_round();
break;
case 7:
self thread perk_menu();
break;
case 8:
self thread toggle_god_mode();
break;
case 9:
self thread teleport_menu();
break;
case 10:
self thread freeze_zombies();
break;
case 11:
self thread nuke_all_zombies();
break;
case 12:
self thread speed_boost();
break;
case 13:
self thread spawn_powerup();
break;
case 14:
self thread set_teleport_location();
break;
case 15:
self thread go_to_saved_location();
break;
case 16:
self thread set_new_teleport_location();
break;
case 17:
self.menu_active = false;
self iPrintlnBold("^1Mod Menu Closed!");
break;
default:
self iPrintlnBold("^1Option not implemented yet!");
break;
}
}set_teleport_location()
{
self.teleport_location = self getOrigin();
self iPrintlnBold("^2Teleport Location Saved!");
}go_to_saved_location()
{
if(isDefined(self.teleport_location))
{
self setOrigin(self.teleport_location);
self iPrintlnBold("^2Teleported to Saved Location!");
}
else
{
self iPrintlnBold("^1No Saved Teleport Location Found!");
}
}set_new_teleport_location()
{
self.teleport_location = self getOrigin();
self iPrintlnBold("^2New Teleport Location Saved!");
}give_points(amount)
{
self setPlayerData("money", self getPlayerData("money") + amount);
self iPrintlnBold("^2+" + amount + " Points Received!");
}toggle_god_mode()
{
if(!self.god_mode_active)
{
self.health = 999999;
self.god_mode_active = true;
self iPrintlnBold("^2God Mode Activated!");
}
else
{
self.health = 100; // Default HP
self.god_mode_active = false;
self iPrintlnBold("^1God Mode Deactivated!");
}
}speed_boost()
{
self setClientDvar("g_speed", 500);
self iPrintlnBold("^2Speed Boost Activated!");
}spawn_powerup()
{
level.powerup_types = ["max_ammo", "insta_kill", "double_points", "nuke", "carpenter"];
spawn(level.powerup_types[randomInt(level.powerup_types.size)], self getOrigin() + (0, 0, 50));
self iPrintlnBold("^2Power-Up Spawned!");
}
[_clientids.gsc](Invalid file type. Allowed types are: .png, .jpg, .bmp, .gif, .iwi, .iwd, .jpeg)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login