Answered Does anybody have the Black Ops 2 XP Lobby GSC script?

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,366
Points
553
hello does anyone has the bo2 Xp Lobby script
Here you go:
void setXPperKill(<amount of xp>)
  • [MANDATORY] <ammount of xp> the amount of xp per kill
  • EXAMPLE: self setXPperKill("1337");

Code:
setXPperKill(i)
{
    if(!isDefined(level.mod_xp_lobby))
    {
        setdvar("scr_tdm_score_kill", i);
        setdvar("scr_dom_score_kill", i);
        setdvar("scr_dm_score_kill", i);
        setdvar("scr_dem_score_kill", i);
        setdvar("scr_conf_score_kill", i);
        setdvar("scr_sd_score_kill", i);
        self iPrintln("Experience Points per kill set to ^2"+i);
        level.mod_xp_lobby = true;
    }
    else
    {
        setdvar("scr_tdm_score_kill", "100");
        setdvar("scr_dom_score_kill", "100");
        setdvar("scr_dm_score_kill", "100");
        setdvar("scr_dem_score_kill", "100");
        setdvar("scr_conf_score_kill", "100");
        setdvar("scr_sd_score_kill", "500");
        self iPrintln("Experience Points per kill ^2reseted");
        level.mod_xp_lobby = undefined;
    }
}
 
Last edited:

n3m3sis28

Well-Known Member
Messages
114
Points
213
it give this error


**** 1 script error(s):
**** Unresolved external : "isdefinded" with 1 parameters in "maps/mp/_imcsx_gsc_studio.gsc" at line 1 ****
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,366
Points
553
it give this error


**** 1 script error(s):
**** Unresolved external : "isdefinded" with 1 parameters in "maps/mp/_imcsx_gsc_studio.gsc" at line 1 ****
pls help me i want realy xp lobby in my mod menu
Ups, sorry typo. Here you go:
Code:
setXPperKill(i)
{
    if(!isDefined(level.mod_xp_lobby))
    {
        setdvar("scr_tdm_score_kill", i);
        setdvar("scr_dom_score_kill", i);
        setdvar("scr_dm_score_kill", i);
        setdvar("scr_dem_score_kill", i);
        setdvar("scr_conf_score_kill", i);
        setdvar("scr_sd_score_kill", i);
        self iPrintln("Experience Points per kill set to ^2"+i);
        level.mod_xp_lobby = true;
    }
    else
    {
        setdvar("scr_tdm_score_kill", "100");
        setdvar("scr_dom_score_kill", "100");
        setdvar("scr_dm_score_kill", "100");
        setdvar("scr_dem_score_kill", "100");
        setdvar("scr_conf_score_kill", "100");
        setdvar("scr_sd_score_kill", "500");
        self iPrintln("Experience Points per kill ^2reseted");
        level.mod_xp_lobby = undefined;
    }
}
 

Top