[Tutorial]Adding to 7th tab only for DEV
Adding to 7th tab on market menu and when you press f10 only for DEVS
I am using the Doom source MMO V3
in WarZ.sln
Search for:
Quote:
var[0].SetNumber(0);
var[1].SetString("weapon");
var[2].SetBoolean(true);
var[3].SetBoolean(true);
gfxMovie.Invoke("_root.api.addTabType", var, 4);
}
Repleace with:
Quote:
if(gUserProfile.ProfileData.isDevAccount){
var[0].SetNumber(0);
var[1].SetString("weapon");
var[2].SetBoolean(true);
var[3].SetBoolean(true);
gfxMovie.Invoke("_root.api.addTabType", var, 4);
}
else
{
var[0].SetNumber(0);
var[1].SetString("weapon");
var[2].SetBoolean(false);
var[3].SetBoolean(true);
gfxMovie.Invoke("_root.api.addTabType", var, 4);
}
Search for:
Quote:
gfxMovie.SetVariable("_root.api.isTrialAccount", gUserProfile.IsTrialAccount());
Add below:
Quote:
if(gUserProfile.ProfileData.isDevAccount){
gfxMovie.SetVariable("_root.api.Main.Marketplace.Marketplace.Tab7.visible", true);
}
Credits me and @ADM-U307
Re: [Tutorial]Adding to 7th tab only for DEV