Author Topic: Detecting and doing something to a client that just joined  (Read 394 times)

What is the way to detect when someone joins a server and then do something with the client like messaging the client.

Code: [Select]
package bleh
{
function GameConnection::AutoAdminCheck(%client)
{
MessageClient(%client,'',"\c6Welcome to my server.");
Parent::AutoAdminCheck(%client);
}
};
activatepackage(bleh);

Code: [Select]
package bleh
{
function GameConnection::AutoAdminCheck(%client)
{
MessageClient(%client,'',"\c6Welcome to my server.");
Parent::AutoAdminCheck(%client);
}
};
activatepackage(bleh);
Hope dis works.

Hope dis works.
SPOILER ALERT:
It won't.

Code: [Select]
package bleh
{
function GameConnection::AutoAdminCheck(%client)
{
%r = Parent::AutoAdminCheck(%client);
MessageClient(%client,'',"\c6Welcome to my server.");
return %r;
}
};
activatepackage(bleh);