Author Topic: [SOLVED] On Player Join serverside  (Read 931 times)

Hi. Is there a command that executes when a player joins?
like:
Code: [Select]
function onPlayerJoin(%this){
messageAll("",%this.name SPC "has joined the server!");
}

I need this for an add-on I'm making.
« Last Edit: July 11, 2014, 02:58:30 PM by pefu19 »

package packageName
{
   function gameConnection::autoAdminCheck(%client)
   {
      %p = parent::autoAdminCheck(%client);
      
      //Execute code..
      
      return %p;
   }
};

activatePackage(packageName);

package packageName
{
   function gameConnection::autoAdminCheck(%client)
   {
      %p = parent::autoAdminCheck(%client);
      
      //Execute code..
      
      return %p;
   }
};

activatePackage(packageName);

That executes code when a player joins or only when an admin joins?

That executes code when a player joins or only when an admin joins?
This function is called when any player joins, it's where the server checks if the client is in the admin list

This function is called when any player joins, it's where the server checks if the client is in the admin list
Oh, thank you. Problemsolved.