This'll be very easy with my CCSS Engine, but I wont release it.
Hint: With my CCSS Engine it would go like this:
package Greeting
{
function CCSS::onSelfEnterGame(%hostname,%this)
{
commandToServer('messageSent',ccssFindClient(%this),"Hey "@%hostname@".");
ccssParent::onSelfEnterGame(%hostname,%this)
}
}
activatePackage(Greeting);
//Please do not flame with the reason "you used functions not existing in BL!",
//cause that this uses my own CCSS engine, which creates those functions and stuff.
//Please do not flame with the reason "You used server sided functions!",
//cause my engine is client-sided.