Answered Clients Menu

jcal147

Veteran
Messages
63
Reaction score
12
Points
793
I am having another problem. If you do not mind continuing to help, can you explain how to make a newsbar that only me and the players I give the menu to can see. Right now only I can see it and i do not know why.
 

jcal147

Veteran
Messages
63
Reaction score
12
Points
793
You can ignore that last question. My sincerest apologies, but I figured it out.
 

jcal147

Veteran
Messages
63
Reaction score
12
Points
793
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?");
}
Only the points work. What am I doing wrong?
 
Top