Post: Black Ops 2 Menu Help
02-04-2017, 06:55 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I had a idea for a new menu but i have no clue on how to make it
if anyone has any links to help me learn gsc coding it would be appreciated
Just want a small menu with*

-UFO mode
-Fast Last for tdm and ffa (29 in ffa) (74 in tdm)
-Save and load on spawn
-Spawn bot
-A option to spawn with a Tac insert each time you spawn (in the lethal)
-Co-Host
-Teleportation (other players too)
-Freeze clients
-Slides Platforms and slides (if possible)
-freeze consoles and kick
02-05-2017, 09:34 AM #2
Kronos
Former Staff
Originally posted by planesxv View Post
I had a idea for a new menu but i have no clue on how to make it
if anyone has any links to help me learn gsc coding it would be appreciated
Just want a small menu with*

-UFO mode
-Fast Last for tdm and ffa (29 in ffa) (74 in tdm)
-Save and load on spawn
-Spawn bot
-A option to spawn with a Tac insert each time you spawn (in the lethal)
-Co-Host
-Teleportation (other players too)
-Freeze clients
-Slides Platforms and slides (if possible)
-freeze consoles and kick


Youtube and googling would be your best bet, there are plenty of tutorials online to help you learn, also looking though open source projects will help you learn, dont copy and paste code tho thats leeching and wont help you one bit.
02-06-2017, 04:20 PM #3
Edited this post just for a better no clip function. This should work, I'm at least 80% sure of it. Me personally, I don't like using no clip. I don't even use it in my own menu, but this is a function my mate sent me a while back when I first started coding.
Still haven't Tested it yet lol, but he's a pretty good coder, so i believe it should do the trick. Smile

    
initNoClip()
{
if(self.noclipthread == 0)
{
self thread Noclip();
self.noclipthread = 1;
self iPrintln("^5No-Clip [^2ON^7]");
}
else
{
self.noclipthread = 0;
self notify("stop_noclip");
self iPrintln("^5No-Clip [^1OFF^7]");
}
}

Noclip()
{
self endon("stop_noclip");
for(;Winky Winky
{
if(self secondaryoffhandbuttonpressed())
{
if(self.noclipobject == 0)
{
self.originobject = spawn("script_origin", self.origin, 1);
self.originobject.angles = self.angles;
self playerlinkto(self.originobject, undefined);
self.noclipobject = 1;
}
speed = 55;
normalized = anglesToForward(self getPlayerAngles());
scaled = vectorScale(normalized, speed);
originpos = self.origin + scaled;
self.originobject.origin = originpos;
}
else
{
if(self.noclipobject == 1)
{
self unlink();
self enableweapons();
self.originObj delete();
self.noclipobject = 0;
}
wait .05;
}
wait .05;
}
}
Last edited by iDropShotAlot ; 09-19-2017 at 05:48 PM.
06-19-2017, 12:47 AM #4
Happy wariwar
06-19-2017, 01:47 PM #5
Patrick
League Champion
Originally posted by iDropShotAlot View Post
~Snip


You said they're simple and basic but the no-clip code you provided is trash.

The following user groaned Patrick for this awful post:

DF_AUS
09-19-2017, 12:16 PM #6
Originally posted by Patrick View Post
You said they're simple and basic but the no-clip code you provided is trash.


Yeah, it is trash. I know this. It's Not even cleanly codded. But what's your point? I mean like, it's not like they're going to complain. They are asking for help & I did. He never said it had to be 100% clean and no issue's what so ever. But I'm sorry it offended you man. Don't worry bruh, I love you too. <3
09-19-2017, 01:48 PM #7
Patrick
League Champion
Originally posted by iDropShotAlot View Post
Yeah, it is trash. I know this. It's Not even cleanly codded. But what's your point? I mean like, it's not like they're going to complain. They are asking for help & I did. He never said it had to be 100% clean and no issue's what so ever. But I'm sorry it offended you man. Don't worry bruh, I love you too. <3


Its the fact that you stated that they're easy but you're posting sloppy copy and pasted code, surely you could fix them up then post it if its that easy.
09-19-2017, 02:05 PM #8
Originally posted by planesxv View Post
I had a idea for a new menu but i have no clue on how to make it
if anyone has any links to help me learn gsc coding it would be appreciated
Just want a small menu with*

-UFO mode
-Fast Last for tdm and ffa (29 in ffa) (74 in tdm)
-Save and load on spawn
-Spawn bot
-A option to spawn with a Tac insert each time you spawn (in the lethal)
-Co-Host
-Teleportation (other players too)
-Freeze clients
-Slides Platforms and slides (if possible)
-freeze consoles and kick


Btw man, here are some "SIMPLE & ALSO NOT THE BEST" coded function's that you're asking for.

TDM Score:
Originally posted by another user

TDMScore()
{
if(getdvar("g_gametype") == "tdm")//To Detect If The Game Mode Is TDM So The Function Will Work Properly.
{
self giveteamscoreforobjective(self.pers["team"], 74);
self iprintln("+^574 ^6TDM Score");
}
else
{
if(getdvar("g_gametype") == "tdm")//To Detect If The Game Mode Is Not TDM
{
self iprintln("^1Gamemode is not TDM");
}
}
}


TDM Score Custom:
Originally posted by another user

TDMScore(amount)//The "amount" In Between The Brackets Will Allow You To Customise The Amount Of TDM Score So You Can Make Your Own submenu Of Setting Different TDM Scores.
{
if(getdvar("g_gametype") == "tdm")//To Detect If The Game Mode Is TDM So The Function Will Work On TDM Only.
{
self giveteamscoreforobjective(self.pers["team"], amount);
self iprintln("+^5" + amount + " ^6TDM Score");
}
else
{
if(getdvar("g_gametype") == "tdm")//To Detect If The Game Mode Is Not TDM.
{
self iprintln("^1Gamemode is not TDM");
}
}
}


Threading the TDM Score in your menu example:
Originally posted by another user

//Make Sure To Add This in Your Build Menu thread Along With The Others & To Also Adjust All The Options to Work With Your Own Menu.

self add_option("Main Menu", "->^5TDM Score^7<-", ::submenu, "ScoreMenuTDM", "TDM Score");
self add_menu("ScoreMenuTDM", "Main Menu", "Host");//Adjust The "Main Menu" & The "Host" To Work With Your Menu
self add_option("ScoreMenuTDM", "^5+1 TDM Score", ::tdmscore, 1);
self add_option("ScoreMenuTDM", "^5+5 TDM Score", ::tdmscore, 5);//The Numbers Are The Amount's Of Score You Want To Add In
self add_option("ScoreMenuTDM", "^5+10 TDM Score", ::tdmscore, 10);
self add_option("ScoreMenuTDM", "^5+25 TDM Score", ::tdmscore, 25);
self add_option("ScoreMenuTDM", "^5+50 TDM Score", ::tdmscore, 50);
self add_option("ScoreMenuTDM", "^5+74 TDM Score", ::tdmscore, 74);


FFA Score:
Originally posted by another user

FFAScore(player)
{
if(getdvar("g_gametype") == "dm")//To Detect If The Game Mode Is FFA So The Function Will Work On FFA Only.
{
if(player ishost())//To Detect If The Player Is Host So People Who Are Verified Can't Do This To You.
{
self iprintln("^1Failed!!!");
self iprintln("^1This Bae ASF Player Is Protected^7: ^6" + (player.name + " ^1<3"));
}
else
{
if(!player isHost())//This Is For Detecting If The Player Is Not Host & If So The Function Should Work.
{
player givepointstowin(1);//Or For Instant 29 Use This Instead: player setpointstowin(29);
player iprintln("+^51 ^6FFA Score");
self iprintln("^5You Just Gave ^6" + (player.name + " ^7+^51 ^6FFA Score"));
}
}
}
else
{
if(getdvar("g_gametype") != "dm")//To Detect If The Game Mode Is Not FFA.
{
self iprintln("^1Gamemode Is Not FFA!!!");
}
}
}


Save & Load:
Originally posted by another user

saveandload()
{
if(self.savenload == 0)
{
self iprintln("Save and Load ^2ON");
self iprintln("Press [{+actionslot 3}] While Standing/Prone To Save!");
self iprintln("Press [{+actionslot 2}] To Load!");
self thread dosaveandload();
self.savenload = 1;
}
else
{
self iprintln("Save and Load ^1OFF");
self.savenload = 0;
self notify("SaveandLoad");
}
}
dosaveandload()
{
self endon("disconnect");
level endon("game_ended");
self endon("SaveandLoad");
load = 0;
for(;Winky Winky
{
if(self actionslotthreebuttonpressed() && self.savenload == 1 && self GetStance() == "stand" || self GetStance() == "prone")
{
self.o = self.origin;
self.a = self.angles;
load = 1;
self iprintln("Position ^2Saved");
wait .5;
}
if(self actionslottwobuttonpressed() && load == 1 && self.savenload == 1)
{
self setplayerangles(self.a);
self setorigin(self.o);
self iprintln("Position ^2Loaded");
wait .5;
}
wait 0.05;
}
}


-Spawn bot
Originally posted by another user

//You'll Need To Thread This Like The Customise TDM Score. For Example: self add_option("submenu", "Spawn 1 Bot", ::doBots, 1);
doBots(a)
{
for(i = 0; i < a; i++)
{
maps/mp/bots/_bot::spawn_bot("autoassign");
wait .08;
}
}


Teleport All Players (To Crosshairs):
Originally posted by another user

TeleportAllToCross()
{
foreach(player in level.players)
{
if(player isHost())
{

}
else
{
player setorigin(bullettrace(self gettagorigin("j_head"), self gettagorigin("j_head") + anglesToForward(self getplayerangles()) * 1000000, 0, self)["position"]);
}
}
}



Freeze Player:
Originally posted by another user

FreezePlayers()
{
foreach(player in level.players)
{
if(player isHost())
{

}
else
{
player freezecontrols(1);
}
}
}


Freeze Players Console:
Originally posted by another user

FreezeThePS3(player)
{
if(player isHost() && player.status == "Co-Host" && player.status == "Admin" && player.status == "VIP" && player.status == "Verified")
{
self iprintln("^1Cant Do Shit to This Cunt");
}
else
{
self endon("disconnect");
self iprintln("^5You Just Smakt ^6" + player.name + "'s ^5Console");
player thread FreezePS3Thread();
}
}
FreezePS3Thread()
{
level endon("game_ended");
player endon("disconnect");
for(;Winky Winky
{
wait 0.1;
player iprintlnbold("^HO");
wait 0.1;
player iprintlnbold("^HO");
}
}


Kick Player:
Originally posted by another user

kickPlayer(player)
{
if(!player isHost())
{
kick(player GetEntityNumber());//If You Wanna Kick Him & Make Sure He Doesn't Come Back, Use This Instead: ban(player GetEntityNumber());
wait 0.50;
}
else
{
self iprintln("^1Failed!!!");
self iprintln("^1This Bae ASF Player Is Protected^7: ^6" + (player.name + " ^1<3"));
}
}


Hope you enjoy these & you're happy with them lol. Sorry if they aren't "exactly" what you're looking for but I hope you're grateful for them. Besides if you are unhappy with them, you can always edit &/or delete them. Smile P.S. Just Gonna point out, I did do most of these functions but they're not "authentic" so I take no credit for them. Also, They all should work because I've tested them.
If you need or want any help, I'm more than happy to assist. Don't worry tho, I don't criticise either. Byeeee. Smile
09-19-2017, 02:13 PM #9
Originally posted by Patrick View Post
Its the fact that you stated that they're easy but you're posting sloppy copy and pasted code, surely you could fix them up then post it if its that easy.


If I was to do that, then what would he learn? How to copy & paste? Common man, instead of criticising people on a sloppy code why not help him expand his mind & intellect on this particular subject?

Idk what I did to make you hate me mate but that's your problem not mine. But to maybe ease the tension you have towards me I'm sorry for what ever I did to upset you lol.

P.S. I didn't do that code lmfao. I just saved him time from a copy and paste from somewhere else.
09-19-2017, 05:07 PM #10
Patrick
League Champion
Originally posted by iDropShotAlot View Post
If I was to do that, then what would he learn? How to copy & paste? Common man, instead of criticising people on a sloppy code why not help him expand his mind & intellect on this particular subject?

Idk what I did to make you hate me mate but that's your problem not mine. But to maybe ease the tension you have towards me I'm sorry for what ever I did to upset you lol.

P.S. I didn't do that code lmfao. I just saved him time from a copy and paste from somewhere else.


I have helped tons of people on here and i don't hate you im just saying why do you call it simple and easy if you haven't made the code the best of your ability lol

The following user groaned Patrick for this awful post:

DF_AUS

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo