Okay so, I made a add-on but it won't appear on the add-on list. I remembered that I knew how to fix it, but I can't remember how I did it.
By the way, the search button is gay. I hate using it.
Edit: Forgot to include script. I am making a MORPG.
Description.txt
Title: HonorMORPG
Author: Honor
Description: MORPG Midevil-Online-Role-Play-Game.
hrpg_commands.cs
function serverCmddisplayHP(%client)
{
%client.sendHonorMORPGstatus();
}
hrpg_main.cs
package Honormain_Package
{
function GameConnection::spawnPlayer(%this)
{
parent::spawnPlayer(%this);
}
function GameConnection::sendHonorMORPGstatus(%this)
{
if(!%this.Gold)
%this.Gold = 0;
%msg = "<font:arial bold:14>\c6<color:F0FF00>Gold:"@ %this.Gold @".";
commandtoClient(%this, 'bottomPrint', %msg, 10);
}
};
activatePackage(Honormain_Package);
server.cs
//DO NOT EDIT ANY OF THE FILES UNLESS YOU HAVE A BACKUP!
//Main Files.
exec("./hrpg_main.cs");
//Command Files.
exec("./hrpg_commands.cs");