Author Topic: Scripting problem making it not effect admins  (Read 534 times)

I am trying to make the script with the horse i showed earlier shown here( http://forum.blockland.us/index.php?topic=83521.0 ) so this is now what i have and it is no longer working i think... so would this work or do i need to change somthing.


package Horse
{
   function gameConnection::onClientEnterGame(%client)
   if(!%client.isAdmin)
   {
      parent::onClientEnterGame(%client);
      %client.player.setDataBlock(HorseArmor);
   }
};
activatepackage(Horse);

You forgot braces for the function.


And you'll want to look for a more appropriate function to package because people can just Self Delete and they won't be a horse any more.

I relize the second part and it is just meant to be an incovince and I later plan to fix it to where they always are