Just gave it a go plugin doesn't load when it the checking for vip is there:
if(isVip(Player) == true || Player.Admin == true){
and this the function:
function isVip(Player)
{
var path = Util.GetRootFolder() + "\Fougerite\VIP++\VipSettings";
var ini = Plugin.GetIni(path);
if...
I meant like
var iniCfg = Plugin.GetIni("Settings");
if (iniCfg.GetSetting("Config", "Enabled") == "False") {
Except the Config file is not at root/Fougerite/VIPaddon/VIPsettings
Its located at root/Fougerite/ VIP++/VIPsettings
I'll work on a unofficial VIP++ sethome plugin as a addon.
So far I got;
/home [name] (Teleports you home)
/homelist (Lists all your homes)
/delhome [name] (Removes a home)
/sethome [name] (Sets home)
I just need to know to read a config file from another plugin folder (VIPsettings)
@DreTaX or...
Well first off all remove this:
break;
if(isVip(Player) == true || Player.Admin == true){
------> switch(cmd){ <--------
case "sethome":
if(!Plugin.IniExists("data\\" + isVip(Player).SteamID + "-home")){
var set = Plugin.CreateIni("data\\"...
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.