I tried the following and the keybinds did not show up in the options menu.
$remapDivision[$remapCount] = "Hi And Bye Mod";
$remapName[$remapCount] = "Turn Off";
$remapCmd[$remapCount] = "Client_HiAndByeMod";
$remapCount++;
function Client_HiAndByeMod(%…)
{
{
package Greet
{
function newChatHud_addLine(%text)
{
//Called when any line of text is added to the chat box
Parent::newChatHud_addLine(%text);
//This will turn the "jes00 connected." into "jes00"
%nameToGreet = strReplace(%text," connected.","");
//If the %nameToGreet variable is different to the original line greet them,
//otherwise it's something else
if(%nameToGreet !$= %text)
{
//Send a chat message saying hi to the player who joined (%nameToGreet)
commandtoserver('messagesent',"Hello " @ %nameToGreet);
}
}
};
activatePackage(Greet);
{
package Bye
{
function newChatHud_addLine(%text)
{
//Called when any line of text is added to the chat box
Parent::newChatHud_addLine(%text);
//This will turn the "jes00 has left the game." into "jes00"
%nameToFarewell = strReplace(%text," has left the game.","");
//If the %nameToFarewell variable is different to the original line greet them,
//otherwise it's something else
if(%nameToFarewell !$= %text)
{
//Send a chat message saying goodbye to the player who joined (%nameToFarewell)
commandtoserver('messagesent',"Goodbye " @ %nameToFarewell);
}
}
};
activatePackage(Bye);
}
$remapDivision[$remapCount] = "Hi And Bye Mod";
$remapName[$remapCount] = "Turn On";
$remapCmd[$remapCount] = "Client_HiAndByeModOff";
$remapCount++;
function Client_HiAndByeModOff(%…)
{
deactivatePackage(Greet);
deactivatePackage(Bye);
}