This code basically sends a message, or messages, to the player when they enter the server without having to type a 'slash command'.
package Announce
{
function GameConnection::OnClientEnterGame(%client)
{
messageClient(%client,"","\c2Test1");
messageClient(%client,"","\c2Test2");
messageClient(%client,"","\c2Test3");
messageClient(%client,"","\c2Test4");
messageClient(%client,"","\c2Test5");
messageClient(%client,"","\c2Test6");
Parent::OnClientEnterGame(%client);
}
};
activatePackage(Announce);
Right now it only sends the messages right after spawning, what I'm after is for it to send the messages immediately when you enter the server (like, the loading screen).
I figured what was needed to be changed was in between GameConnection:: and (), but I could be wrong.
Any help/corrections would be appreciated.