Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums:

Script to make one map indestructible blocks

Having problems creating a map? Ask around in here.

Script to make one map indestructible blocks

Postby Sample » Wed Sep 05, 2012 9:40 pm

Hi, sorry for my English :P
I make new map and i need script to make all blocks indestructible, and script to dont make build. I dont wanna configure my server, i wanna change this only for one map (u know: map.vxl map.txt << there script's)
I need template, thanks :)
User avatar
Posts: 50
Joined: Thu Jul 12, 2012 3:57 pm

Re: Script to make one map indestructible blocks

Postby PyroPlunger » Sun Sep 09, 2012 8:43 am

To stop people from building/breaking blocks just type /togglebuild. And to protect certain grids of the map do /protect (grids here).

Ex: /togglebuild deuce1337 (you don't have to do this for every player), /protect b4

Also, you can check out this script for an alternative, faster method: viewtopic.php?f=80&t=13756
IGN: [USAB]Rustic
User avatar
[USAB] Member
Posts: 186
Joined: Wed Jul 18, 2012 7:59 pm
Location: USA

Re: Script to make one map indestructible blocks

Postby Silnius » Wed Sep 19, 2012 9:12 am

So, you can make a .txt with your vxl map. But it needs to have same name.
For example, the name of the map is mountains (.vxl) ; the .txt will be moutains.txt

Then, open a .txt, and write it :

name = 'Nameofthemap'
version = '1.0'
author = 'Sample'
description = ('your description')
protected = ['A1', 'A2', 'A3', 'G5'] =>Here you have area that you want to protect, it's good if you have just 5 part to protect for example, but you can also put all coords x)

And you have also the nobuild script. Watch the link gave by Pyroplunger, add the script to your server.
(And put on your txt just, extensions = {'nobuild': True}
User avatar
[Animus] Leader
Posts: 210
Joined: Mon Jan 23, 2012 6:57 pm
Location: France

Return to Mapping Help

Who is online

Users browsing this forum: No registered users and 1 guest