package NoBaseplates
{
function GameConnection::onClientEnterGame(%client)
{
Parent::onClientEnterGame(%client);
messageClient(%client,'',"\c4This server is running the No Baseplates for Non Admins script. This means non-admins cannot build any brick in the baseplate section.");
}
function fxDTSBrick::OnPlant(%this)
{
parent::OnPlant(%this);
%client = %this.getGroup().client;
if(%this.getDataBlock().category $= "Baseplates" && !%client.isAdmin && %this.isPlanted)
{
MessageClient(%client, '', "\c6Non-admins aren't allowed to plant any bricks in the baseplate section.");
return %this.delete();
}
}
};
ActivatePackage(NoBaseplates);
Rewrote the code. Not sure if this works.