if(isfile("add-ons/system_returntoblockland/server.cs"))
{
if(!$rtb::rtbr_servercontrol_hook)
exec("add-ons/system_returntoblockland/rtbr_servercontrol_hook.cs");
rtb_registerPref("Title","Server Credits","$Pref::Server::Title","string 60","script_servercredits", 0, 0);
rtb_registerPref("Credit1","Server Credits","$pref::Server::Credit1","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit2","Server Credits","$pref::Server::Credit2","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit3","Server Credits","$pref::Server::Credit3","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit4","Server Credits","$pref::Server::Credit4","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit5","Server Credits","$pref::Server::Credit5","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit6","Server Credits","$pref::Server::Credit6","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit7","Server Credits","$pref::Server::Credit7","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit8","Server Credits","$pref::Server::Credit8","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit9","Server Credits","$pref::Server::Credit9","string 600","script_servercredits", 0, 0);
rtb_registerPref("Credit10","Server Credits","$pref::Server::Credit10","string 600","script_servercredits", 0, 0);
}
}
This is probably the main thing that caused me to get accused of stealing, and i understand why, it formatted just like electrk's Script_ServerRules add-on.
and I'll explain why, I had no idea on how to make an RTB Pref, so I used Script_ServerRules as a reference, you can label it as stealing or whatever.
but I actually wrote the Pref after looking at Electrk's way of doing it a while back.
I did use the same line as Electrk's Rules add-on. This wasn't purposely. I did fix this problem though.
package Credits
{
function GameConnection::autoadmincheck(%cl)
{
%cl.chatmessage("\c1The Server is running Script_ServerCredits by \c6Juicebox/Wound \c3||| \c1Type \c6/CreditsHelp \c1for help \c3||| \c6/Credits \c1to see the Credits of the server.");
return parent::autoAdminCheck(%cl);
}
};
activatePackage(Credits);
This was pretty easy and I did this on my own after doing it a few times before for Zay and Nymph.
function serverCmdCreditsHelp(%cl)
{
messageClient(%cl,'',"\c7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
messageClient(%cl,'',"\c3/Credits \c6 To Show server's the Credits.");
messageClient(%cl,'',"\c3There's also an RTB Prefs to set the Credits.");
messageClient(%cl,'',"\c7~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
}
Also easy.
function serverCmdCredits(%cl)
{
commandToClient(%cl,'messageBoxOK',$Pref::Server::Title,$Pref::Server::Credit1 NL $Pref::Server::Credit2 NL $Pref::Server::Credit3 NL $Pref::Server::Credit4 NL $Pref::Server::Credit5 NL $Pref::Server::Credit6 NL $Pref::Server::Credit7 NL $Pref::Server::Credit8 NL $Pref::Server::Credit9 NL $Pref::Server::Credit10 NL "~~~~~~~~~~~~~~~~~");
}
This I had to base from a different script because I had no idea on how to do it.
I apologize, Electrk, I will include you in the credits.