Resource icon

Approved DestroySystem 1.7.6

No permission to download

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
  • Like
Reactions: h0wHigh

h0wHigh

Retired Staff
Retired Staff
Aug 5, 2014
103
9
18
That works great! only thing is i need /removeall for admins only for obvious reasons. And if you could add a timer to /remove and /removeall and configurable so i can set when it auto deactivates. :) That would be awesome.

Also is /sharefoundation so friends can use /remove on their base?

Noticed also, that it always leaves one foundation left when using /removeall
 
Last edited:

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
I think in the future we can hook into the /share feature.
Also maybe a refund option for removing a whole base?
for x in HurtEvent.Entity.GetLinkedStructs():
x.Destroy()
HurtEvent.Attacker.Inventory.AddItem(x.Name)
Admin only of course
 

h0wHigh

Retired Staff
Retired Staff
Aug 5, 2014
103
9
18
Here, test this. I added a command /destroyall

https://github.com/dretax/Python-Plugins/blob/master/DestroySystem/DestroySystem.py

If you wish to change the commands, use an editor and edit the line 119 and 130

So like instead if cmd == "destroy" or cmd == "crush" or cmd == "c": you can have if cmd == "remove":
The removeall cmd is available for all users! only need it for admin for obvious reasons.
Also it doesn't give back the resources for normal users and admin when using removeall.

(I changed the cmds to remove for normal users and removeall for admins)
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
One more plugin with some problems. It not gives items back to players now. Please check it on your servers with Fougerite 1.0.8 RC3+
 

MasterPeace

Retired Staff
Retired Staff
Feb 2, 2015
269
69
28
45
Poland
Can someone other test it too? Really. There was times when I could not get benches, or metal bars from remove.

Now I can get benches but nothing more.

Also some of items in my shop stopped working. Something with names. Basically.. Everything is fckd up on my server now.

1. Wiper not working.
2. HomeSystem allowing to place beds and sleeping bags.
3. My C4 checker is failing, because of something with timers.
4. Remove don't give back items.
5. Shop have problems with some names.
6. Players who are banned are showing that way on connect:
Player disconnected.
(here some errors in console)
Player connected.
7. Don't even know if FAC is still working. But we got update so I will see.

Maybe just everything try to say me that I should stop hosting Legacy.

Sorry that I'm slowed down and don't publish plugins what I should publish, but didn't have time for that. I don't know if I'll have. Need to end other things in my life.
 

Snake

Moderator
Moderator
Jul 13, 2014
288
174
28
Can someone other test it too? Really. There was times when I could not get benches, or metal bars from remove.

Now I can get benches but nothing more.

Also some of items in my shop stopped working. Something with names. Basically.. Everything is fckd up on my server now.

1. Wiper not working.
2. HomeSystem allowing to place beds and sleeping bags.
3. My C4 checker is failing, because of something with timers.
4. Remove don't give back items.
5. Shop have problems with some names.
6. Players who are banned are showing that way on connect:
Player disconnected.
(here some errors in console)
Player connected.
7. Don't even know if FAC is still working. But we got update so I will see.

Maybe just everything try to say me that I should stop hosting Legacy.

Sorry that I'm slowed down and don't publish plugins what I should publish, but didn't have time for that. I don't know if I'll have. Need to end other things in my life.
We can help you about the timers stuff, just post them up.

I didn't really switch to Experimental, as no one is playing it on our servers so there's no motivation for me to do it.

I'm still fixing FAC stuff whenever it shows up, and I'm trying to Finish Arena++.

Also starting another project on Fougerite. Something about an event. Will be a surprise !
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Can someone other test it too? Really. There was times when I could not get benches, or metal bars from remove.

Now I can get benches but nothing more.

Also some of items in my shop stopped working. Something with names. Basically.. Everything is fckd up on my server now.

1. Wiper not working.
2. HomeSystem allowing to place beds and sleeping bags.
3. My C4 checker is failing, because of something with timers.
4. Remove don't give back items.
5. Shop have problems with some names.
6. Players who are banned are showing that way on connect:
Player disconnected.
(here some errors in console)
Player connected.
7. Don't even know if FAC is still working. But we got update so I will see.

Maybe just everything try to say me that I should stop hosting Legacy.

Sorry that I'm slowed down and don't publish plugins what I should publish, but didn't have time for that. I don't know if I'll have. Need to end other things in my life.
Python:
    def On_EntityDeployed(self, Player, Entity):
        if Entity is not None and Player is not None:
            if self.antihack == 1:
                if Entity.Name == "SleepingBagA":
                    inventory = Player.Inventory
                    Player.MessageFrom(self.homesystemname, "Sleeping bags are banned from this server!")
                    Player.MessageFrom(self.homesystemname, "Use /home")
                    Player.MessageFrom(self.homesystemname, "We disabled Beds, so players can't hack in your house!")
                    Player.MessageFrom(self.homesystemname, "You received 15 Cloth.")
                    Entity.Destroy()
                    inventory.AddItem("Cloth", 15)
                elif Entity.Name == "SingleBed":
                    inventory = Player.Inventory
                    Player.MessageFrom(self.homesystemname, "Beds are banned from this server!")
                    Player.MessageFrom(self.homesystemname, "Use /home")
                    Player.MessageFrom(self.homesystemname, "We disabled Beds, so players can't hack in your house!")
                    Player.MessageFrom(self.homesystemname, "You received 40 Cloth and 100 Metal Fragments.")
                    Entity.Destroy()
                    inventory.AddItem("Cloth", 40)
                    inventory.AddItem("Metal Fragments", 100)
I don't see any problems. Did you try to debug It?

Well the Destroy plugin does give the items back for us on our server. Are you sure?

Which names? Did you try It with: "item name"?
 

hajhoseini90

New Member
Member
Jul 27, 2015
13
1
1
Parts Unknown
when player use /c or /destroy and attack to metal window bar
window bar dont remove and just give to player windows bar !
and doors + large spikes when i use /c and attack to large spike just remove
and i cant see it in my inventory [only remove and dont give to me]
i think destroy system need a update
 
  • Informative
Reactions: DreTaX