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.


Messages - Medieval

Pages: [1]
1
Help / Re: Scripting Help
« on: July 09, 2019, 07:27:33 AM »
Thank you!
I have finished the addon.
Lots of love!

2
Help / Re: Scripting Help
« on: July 08, 2019, 03:42:29 PM »
One last thing before I am done, I have finished this and ghost bricks do not place anymore.
But even as admin I cannot place them.
I am wondering what I have to put in the code to keep the ghost brick as admin or with permission.
Code: [Select]
function fxDTSBrick::onAdd(%brick, %client, %obj)
{
%c = getBrickGroupFromObject(%brick).client;
if(isObject(%c) && isObject(%c.player) && isObject(%c.player.tempbrick))
{
if(%c.isAdmin)
{
// Here
return;
}
else if(%c.buildallow == 1)
{
// Here
return;
}
else
{
commandToClient(%c,'centerprint',"\c7Building is not enabled for players.",2);
%brick.schedule(0,"delete");
%c.player.tempbrick.delete();
}
}
}

(In the // Here part)

3
Help / Re: Scripting Help
« on: July 08, 2019, 02:28:41 PM »
All I need to know is the function of placing a ghost brick.
I already have the one for planting bricks.

4
Help / Re: Scripting Help
« on: July 08, 2019, 02:23:14 PM »
Sorry, I wasn't descriptive enough.
In my code I already had it to make sure they weren't able to plant bricks.
What I am looking for is the function or how to make it so they are unable to place their ghost bricks.
Thanks in advance, Medieval.

5
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.

6
Help / Re: Old versions of Duplicator
« on: June 02, 2019, 09:22:53 AM »
You sure it's not Event_SaveLoadItems causing you to crash?
I disabled all my event addons and still crashing.

7
Help / Re: Old versions of Duplicator
« on: June 01, 2019, 09:57:18 AM »

8
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.

9
Help / Re: Blockland server crashing
« on: June 01, 2019, 07:52:46 AM »
Alright, turns out my Tool_NewDuplicator was the problem.
I have the newest version however? 1.6.2
If anybody has a later version such as 1.6.1, 1.6.0, or whatever, please send it to me.
:cookieMonster:

10
Help / Re: Blockland server crashing
« on: May 30, 2019, 04:05:13 PM »
have you tried only enabling half your usual addons at a time?
one of them is probably the issue
Brick add-ons work, nothing else.

11
Help / Re: Blockland server crashing
« on: May 30, 2019, 04:01:32 PM »
have you tried hosting with only defaults enabled?
what about on a clean install?
Default add-ons work, clean install, but as soon as I enable addons, the server crashes.

12
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]