Here you go:hello does anyone has the bo2 Xp Lobby script
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;
}
}
You're very much welcome. Take care.tnx cabcon
it give this error
**** 1 script error(s):
**** Unresolved external : "isdefinded" with 1 parameters in "maps/mp/_imcsx_gsc_studio.gsc" at line 1 ****
Ups, sorry typo. Here you go:pls help me i want realy xp lobby in my mod menu
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;
}
}