i think i need to add anything with inp2 at this line ?
if(self useButtonPressed())
{
self thread [[self.menuAction[self.currentMenu].func[self.menuCurs]]](self.menuAction[self.currentMenu].inp[self.menuCurs]);
wait .2;
}
I'm using this :
call it just like:
self addOpt("perks_menu", "Quick Revive [^12500^7]", &func_give_perk, "specialty_quickrevive" , 2500);
and modify the menu base:
function addOpt(menu, opt, func, inp, inp2)//<---
{
m = self.menuAction[menu].opt.size...
function func_give_perk(gperk, price)
{
self maps/mp/zombies/_zm_score::minus_to_player_score( price, 1 );
self thread zm_perks::give_perk(gperk, true);
self thread func_menuexit();
}
the code works i got the perk but i want to reduce the player score
Hey i need some help with my zm GSC menu. I want to decrease the player score but if i try
"self thread zm_score:: minus_to_player_score( points )" nothing happens...
Would be nice if someone help me :)
Discord: BunkerBaerIGER#4859
Hey i'm new at GSC scripting and if i try this code below i got some error. How can i use variables on my function?
"self addOpt("main_mods", "KN-44", &func_give_weapon("ar_standard"));"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.