Answered Clients Menu

jcal147

Veteran
Messages
63
Reaction score
12
Points
793
I am currently working on my first mod menu for Black Ops 2. I have finished most of everything with the exception of three options in the clients menu. Those options being the ability to give the player:money, points, and perks. Any help would be greatly appreciated. Thank you for your time and consideration.
 

Syndicate

Modder
Messages
671
Reaction score
550
Points
908
I am currently working on my first mod menu for Black Ops 2. I have finished most of everything with the exception of three options in the clients menu. Those options being the ability to give the player:money, points, and perks. Any help would be greatly appreciated. Thank you for your time and consideration.
you need help adding them or help with the making the scripts?
 

jcal147

Veteran
Messages
63
Reaction score
12
Points
793
The script is made; the problem is that it doesn't work. I will post the script in the next reply.
 
Last edited:

TheHiddenHour

Veteran
Messages
58
Reaction score
49
Points
803
Give weapons - You're using weapon_give the wrong way. You need to define all of the arguments. I don't mess with zombies but here's an example
Code:
doGivePlayerWeapon(weapon)
{
    player=level.players[self.Menu.System["ClientIndex"]];
    if(!player isHost())
    {
        self iprintln("Given Weapons: ^1" + player.name);
        //weapon_give( weapon, is_upgrade, magic_box, nosound )
        player weapon_give(weapon, false, false, true);
    }
    else
        self iprintln("You can't give weapons to host");
}
Give score - You need to define the player and your scripts were named wrong. You're calling give100k() but you have it named as give100000(). Use this function instead of those
Code:
givePlayerScore(score)
{
    //call in your menu like ::givePlayerScore, 1000); for 1000 points. Just change the 1000 to whatever number you want
    player=level.players[self.Menu.System["ClientIndex"]];
    player.score += score;
    self iprintln(score + " given to " + player.name)
}
Give perks - Idk anymore just use this one instead lol
Code:
givePlayerPerk(perkDisplay, perk)
{
    //call like ::givePlayerPerk, "Jugg", "specialty_armorvest"); The first part is the name that is printed and the second part is the actual perk code
    player = level.players[self.Menu.System["ClientIndex"]];
    if(!player isHost())
    {
        self iPrintln("Perks Given " + player.name);
        self iPrintln("He has been given " + perkDisplay + "!");
        player setPerk(perk);
        player iPrintln(perkDisplay + " ^2Set");
    }
    else
        self iprintln("Cannot give to host?");
}
 

The Dark Side

Former Staff Member
Messages
1,004
Reaction score
770
Points
993
I am currently working on my first mod menu for Black Ops 2. I have finished most of everything with the exception of three options in the clients menu. Those options being the ability to give the player:money, points, and perks. Any help would be greatly appreciated. Thank you for your time and consideration.
Your first like! :grinning: I love how polite you are! Something you don't see much anymore! Instead of just "Hey i'm new gimme **** pl0x"

Welcome to the site :smile:
 

The Dark Side

Former Staff Member
Messages
1,004
Reaction score
770
Points
993
I'm polite **** head
I feel like if you went outside, this is what would happen to you

upload_2016-7-20_18-37-29.png
 

jcal147

Veteran
Messages
63
Reaction score
12
Points
793
I believe I have fixed the problem with the points. Can you please take a look? Is there an easier way or is this it?
 

Syndicate

Modder
Messages
671
Reaction score
550
Points
908
they all must be ::GivePlayerScore
1000); <---- the number here can be changed to have a different value. For e.g
::GivePlayerScore, 1000): // gives 1000 points
::GivePlayerScore, 500); //gives 500 points
 

TheHiddenHour

Veteran
Messages
58
Reaction score
49
Points
803
Man these last couple posts were ****in great :sob: btw you could probably just keep using GivePlayerScore and do it like ::GivePlayerScore, -100); to take away 100 points couldnt you?
 
Top