Blockland Forums > Modification Help
RTB Pref doesen't show up ingame?
(1/1)
soba:
if(isFile("Add-Ons/System_ReturnToBlockland/server.cs"))
{
    if(!$RTB::RTBR_ServerControl_Hook)
    {
        exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
        RTB_registerPref("Sit command","Enable/Disable","Pref::Server::DisableSitCommand","bool","Script_NoSit", false, false, true);
    }
}
else
{
         $Pref::Server::DisableSitCommand = false; //If you dont have RTB enter value here.
}

package nosit
{
    function servercmdsit(%client)
    {
        if($Pref::Server::DisableSitCommand)
            %client.chatmessage("<color:00FFFF>The sit command is disabled in this server!");
    else
        Parent::servercmdsit(%client);
    }
};
ActivatePackage(nosit);

Everything but the pref works fine, help?
Plornt:
Oh i see the problem.
--- Code: ---if(!$RTB::RTBR_ServerControl_Hook)
    {
        exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
        RTB_registerPref("Sit command","Enable/Disable","Pref::Server::DisableSitCommand","bool","Script_NoSit", false, false, true);
    }
--- End code ---
Should be
--- Code: ---if(!$RTB::RTBR_ServerControl_Hook)
    {
        exec("Add-Ons/System_ReturnToBlockland/RTBR_ServerControl_Hook.cs");
    }
 RTB_registerPref("Sit command","Enable/Disable","Pref::Server::DisableSitCommand","bool","Script_NoSit", false, false, true);
--- End code ---
Navigation
Message Index

Go to full version