Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - Medieval

Pages: [1]
1
Help / Scripting Help
« on: July 08, 2019, 09:03:23 AM »
Hello. Currently I am working on an addon that lets only admins build.
Here is my code:
Code: [Select]
package BuildingBlocker
{
function gameConnection::OnClientEnterGame(%this,%obj,%a,%b,%c,%d,%e)
{
%this.buildallow = 0;
Parent::OnClientEnterGame(%this,%obj,%a,%b,%c,%d,%e);
}
function fxDTSbrick::Plant(%brick, %client, %obj)
{
%e = Parent::Plant(%brick);
if(!%e)
{
%c = getBrickGroupFromObject(%brick).client;
if(isObject(%c) && isObject(%c.player) && isObject(%c.player.tempbrick))
{
if(%c.isAdmin)
{
Parent::Plant(%brick);
}
else if(%c.buildallow == 1)
{
Parent::Plant(%brick);
}
else
{
commandToClient(%c,'centerprint',"\c7Building is not enabled for players.",2);
%brick.schedule(0,"delete");
%c.player.tempbrick.delete();
}
}
}
}
};

activatePackage("BuildingBlocker");

It removes the ghost brick once they plant the brick, but they are still able to plant their bricks.
I am wondering how to make it so it instantly removes the ghost brick once it is placed.

2
Help / Old versions of Duplicator
« on: June 01, 2019, 09:21:34 AM »
Help
Basically, my Tool_NewDuplicator addon has been crashing my server.
If anybody has older versions such as:
- 1.6.1
- 1.6.0
- Whatever

Please send it below.
I would appreciate it if the version is higher than 1.5.0
Thanks in advance.

3
Help / Blockland server crashing
« on: May 30, 2019, 03:02:13 PM »
Blockland server crashes on start
Alright, so I've been trying to host after reinstalling blockland, I've moved through my files and everything. It used to host perfectly fine. Now it crashes whenever I host.
What I've done
- Downloading drivers
- Reinstalling blockland

Thank you in advance.
Here is my console.log file:

Pages: [1]