Resource icon

Approved DestroySystem 1.7.6

No permission to download

.C.Y.B.E.R.

Member
Trusted Member
Member
May 4, 2016
63
0
6
but when i write the command /destroy don't appears the write destroy actived or so ... that is bad:(
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
Little Off-Topic: if you need help to upload big files, I can help you without problems.
I just wanted someone to upload server files, either they are patched or not.

It shouldn't be cracked. Nobody needs crack on Fougerite anymore.

You can also do It if you want.
 

.C.Y.B.E.R.

Member
Trusted Member
Member
May 4, 2016
63
0
6
Little Off-Topic: if you need help to upload big files, I can help you without problems.
i have problem with time vote don't work ... don't appears the written ... but the plugin was loaded and don't work
 

.C.Y.B.E.R.

Member
Trusted Member
Member
May 4, 2016
63
0
6
Did you modify the script?

Line 58 does not contain any OnCommand method.

OnCommand is at Line 181
- __author__ = 'DreTaX'
__version__ = '1.3'
import clr

clr.AddReferenceByPartialName("Fougerite")
import Fougerite
import System

"""
Class
"""

class DestroySystem:
"""
Methods
"""

def On_PluginInit(self):
Util.ConsoleLog("DestroySystem by " + __author__ + " Version: " + __version__ + " loaded.", False)
self.DestroySys()
DataStore.Flush("DestroySystem")

def IsEligible(self, HurtEvent):
try:
Eligible = HurtEvent.Entity.Object._master.ComponentCarryingWeight(HurtEvent.Entity.Object)
return not (Eligible)
except:
return True

def TrytoGrabID(self, Player):
try:
id = Player.SteamID
return id
except:
return None

#There is an error while converting ownerid to string in C#. Hax it.
def GetIt(self, Entity):
try:
if Entity.IsDeployableObject():
return Entity.Object.ownerID
if Entity.IsStructure():
return Entity.Object._master.ownerID
except:
return None

def DestroySys(self):
if not Plugin.IniExists("DestroySys"):
ini = Plugin.CreateIni("DestroySys")
ini.AddSetting("options", "giveback", "1")
ini.Save()
return Plugin.GetIni("DestroySys")

def On_Command(self, Player, cmd, args):
if cmd == "destroy" or cmd == "crush" or cmd == "c":
if not DataStore.ContainsKey("DestroySystem", Player.SteamID):
DataStore.Add("DestroySystem", Player.SteamID, "true")
Player.Message("---DestroySystem---")
Player.Message("You are in Destroy mode")
Player.Message("If you finished, don't forget to quit from It!")
Player.Message("Shotgun cannot be used in destroy mode!")
else:
DataStore.Remove("DestroySystem", Player.SteamID)
Player.Message("---DestroySystem---")
Player.Message("You quit Destroy mode!")

Items = {
'WoodFoundation': 'Wood Foundation',
'WoodDoorFrame': 'Wood Doorway',
'WoodDoor': 'Wood Door',
'WoodWall': 'Wood Wall',
'WoodPillar': 'Wood Pillar',
'WoodCeiling': 'Wood Ceiling',
'MetalDoor': 'Metal Door',
'WoodStairs': 'Wood Stairs',
'WoodWindowFrame': 'Wood Window',
'MetalFoundation': 'Metal Foundation',
'MetalDoorFrame': 'Metal Doorway',
'MetalWall': 'Metal Wall',
'MetalPillar': 'Metal Pillar',
'MetalCeiling': 'Metal Ceiling',
'MetalStairs': 'Metal Stairs',
'MetalWindowFrame': 'Metal Window',
'Wood_Shelter': 'Wood Shelter',
'Barricade_Fence_Deployable': 'Wood Barricade',
'Wood Box': 'Wood Storage Box',
'Wood Box Large': 'Large Wood Storage',
'Metal Bars Window': 'Metal Window Bars',
'CampFire': 'Camp Fire',
'Wood Spike Wall': 'Spike Wall',
'Large Wood Spike Wall': 'Large Spike Wall',
'Workbench': 'Workbench',
'WoodGate': 'Wood Gate',
'WoodGateway': 'Wood Gateway',
'RepairBench': 'Repair Bench',
'Furnace': 'Furnace'
}


def On_EntityHurt(self, HurtEvent):
if HurtEvent.Attacker is not None and HurtEvent.Entity is not None and not HurtEvent.IsDecay:
#On Entity hurt the attacker is an NPC and a Player for somereason. We will try to grab his ID
id = self.TrytoGrabID(HurtEvent.Attacker)
if id is None:
return
gun = HurtEvent.WeaponName
if gun == "Shotgun":
return
get = DataStore.Get("DestroySystem", str(id))
#Dirty fucking hack against current bug. (Entity OWNERID request isn't working good yet, so hax it)
OwnerID = self.GetIt(HurtEvent.Entity)
if OwnerID is None:
return
if long(id) == long(OwnerID) and bool(get):
if self.IsEligible(HurtEvent):
EntityName = HurtEvent.Entity.Name
HurtEvent.Entity.Destroy()
ini = self.DestroySys()
giveback = int(ini.GetSetting("options", "giveback"))
if giveback == 1:
item = self.Items.get(EntityName, None)
if item is None:
return
- HurtEvent.Attacker.Inventory.AddItem(item)
 
Last edited:

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
4,093
4,784
113
At your house.
github.com
line 1 - __author__ = 'DreTaX'
__version__ = '1.3'
import clr

clr.AddReferenceByPartialName("Fougerite")
import Fougerite
import System

"""
Class
"""

class DestroySystem:
"""
Methods
"""

def On_PluginInit(self):
Util.ConsoleLog("DestroySystem by " + __author__ + " Version: " + __version__ + " loaded.", False)
self.DestroySys()
DataStore.Flush("DestroySystem")

def IsEligible(self, HurtEvent):
try:
Eligible = HurtEvent.Entity.Object._master.ComponentCarryingWeight(HurtEvent.Entity.Object)
return not (Eligible)
except:
return True

def TrytoGrabID(self, Player):
try:
id = Player.SteamID
return id
except:
return None

#There is an error while converting ownerid to string in C#. Hax it.
def GetIt(self, Entity):
try:
if Entity.IsDeployableObject():
return Entity.Object.ownerID
if Entity.IsStructure():
return Entity.Object._master.ownerID
except:
return None

def DestroySys(self):
if not Plugin.IniExists("DestroySys"):
ini = Plugin.CreateIni("DestroySys")
ini.AddSetting("options", "giveback", "1")
ini.Save()
return Plugin.GetIni("DestroySys")

def On_Command(self, Player, cmd, args):
if cmd == "destroy" or cmd == "crush" or cmd == "c":
if not DataStore.ContainsKey("DestroySystem", Player.SteamID):
DataStore.Add("DestroySystem", Player.SteamID, "true")
Player.Message("---DestroySystem---")
Player.Message("You are in Destroy mode")
Player.Message("If you finished, don't forget to quit from It!")
Player.Message("Shotgun cannot be used in destroy mode!")
else:
DataStore.Remove("DestroySystem", Player.SteamID)
Player.Message("---DestroySystem---")
Player.Message("You quit Destroy mode!")

Items = {
'WoodFoundation': 'Wood Foundation',
'WoodDoorFrame': 'Wood Doorway',
'WoodDoor': 'Wood Door',
'WoodWall': 'Wood Wall',
'WoodPillar': 'Wood Pillar',
'WoodCeiling': 'Wood Ceiling',
'MetalDoor': 'Metal Door',
'WoodStairs': 'Wood Stairs',
'WoodWindowFrame': 'Wood Window',
'MetalFoundation': 'Metal Foundation',
'MetalDoorFrame': 'Metal Doorway',
'MetalWall': 'Metal Wall',
'MetalPillar': 'Metal Pillar',
'MetalCeiling': 'Metal Ceiling',
'MetalStairs': 'Metal Stairs',
'MetalWindowFrame': 'Metal Window',
'Wood_Shelter': 'Wood Shelter',
'Barricade_Fence_Deployable': 'Wood Barricade',
'Wood Box': 'Wood Storage Box',
'Wood Box Large': 'Large Wood Storage',
'Metal Bars Window': 'Metal Window Bars',
'CampFire': 'Camp Fire',
'Wood Spike Wall': 'Spike Wall',
'Large Wood Spike Wall': 'Large Spike Wall',
'Workbench': 'Workbench',
'WoodGate': 'Wood Gate',
'WoodGateway': 'Wood Gateway',
'RepairBench': 'Repair Bench',
'Furnace': 'Furnace'
}


def On_EntityHurt(self, HurtEvent):
if HurtEvent.Attacker is not None and HurtEvent.Entity is not None and not HurtEvent.IsDecay:
#On Entity hurt the attacker is an NPC and a Player for somereason. We will try to grab his ID
id = self.TrytoGrabID(HurtEvent.Attacker)
if id is None:
return
gun = HurtEvent.WeaponName
if gun == "Shotgun":
return
get = DataStore.Get("DestroySystem", str(id))
#Dirty fucking hack against current bug. (Entity OWNERID request isn't working good yet, so hax it)
OwnerID = self.GetIt(HurtEvent.Entity)
if OwnerID is None:
return
if long(id) == long(OwnerID) and bool(get):
if self.IsEligible(HurtEvent):
EntityName = HurtEvent.Entity.Name
HurtEvent.Entity.Destroy()
ini = self.DestroySys()
giveback = int(ini.GetSetting("options", "giveback"))
if giveback == 1:
item = self.Items.get(EntityName, None)
if item is None:
return
line 124 - HurtEvent.Attacker.Inventory.AddItem(item)
Don't modify the script if you don't know how please.
 

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
line 1 - __author__ = 'DreTaX'
__version__ = '1.3'
import clr

clr.AddReferenceByPartialName("Fougerite")
import Fougerite
import System

"""
Class
"""

class DestroySystem:
"""
Methods
"""

def On_PluginInit(self):
Util.ConsoleLog("DestroySystem by " + __author__ + " Version: " + __version__ + " loaded.", False)
self.DestroySys()
DataStore.Flush("DestroySystem")

def IsEligible(self, HurtEvent):
try:
Eligible = HurtEvent.Entity.Object._master.ComponentCarryingWeight(HurtEvent.Entity.Object)
return not (Eligible)
except:
return True

def TrytoGrabID(self, Player):
try:
id = Player.SteamID
return id
except:
return None

#There is an error while converting ownerid to string in C#. Hax it.
def GetIt(self, Entity):
try:
if Entity.IsDeployableObject():
return Entity.Object.ownerID
if Entity.IsStructure():
return Entity.Object._master.ownerID
except:
return None

def DestroySys(self):
if not Plugin.IniExists("DestroySys"):
ini = Plugin.CreateIni("DestroySys")
ini.AddSetting("options", "giveback", "1")
ini.Save()
return Plugin.GetIni("DestroySys")

def On_Command(self, Player, cmd, args):
if cmd == "destroy" or cmd == "crush" or cmd == "c":
if not DataStore.ContainsKey("DestroySystem", Player.SteamID):
DataStore.Add("DestroySystem", Player.SteamID, "true")
Player.Message("---DestroySystem---")
Player.Message("You are in Destroy mode")
Player.Message("If you finished, don't forget to quit from It!")
Player.Message("Shotgun cannot be used in destroy mode!")
else:
DataStore.Remove("DestroySystem", Player.SteamID)
Player.Message("---DestroySystem---")
Player.Message("You quit Destroy mode!")

Items = {
'WoodFoundation': 'Wood Foundation',
'WoodDoorFrame': 'Wood Doorway',
'WoodDoor': 'Wood Door',
'WoodWall': 'Wood Wall',
'WoodPillar': 'Wood Pillar',
'WoodCeiling': 'Wood Ceiling',
'MetalDoor': 'Metal Door',
'WoodStairs': 'Wood Stairs',
'WoodWindowFrame': 'Wood Window',
'MetalFoundation': 'Metal Foundation',
'MetalDoorFrame': 'Metal Doorway',
'MetalWall': 'Metal Wall',
'MetalPillar': 'Metal Pillar',
'MetalCeiling': 'Metal Ceiling',
'MetalStairs': 'Metal Stairs',
'MetalWindowFrame': 'Metal Window',
'Wood_Shelter': 'Wood Shelter',
'Barricade_Fence_Deployable': 'Wood Barricade',
'Wood Box': 'Wood Storage Box',
'Wood Box Large': 'Large Wood Storage',
'Metal Bars Window': 'Metal Window Bars',
'CampFire': 'Camp Fire',
'Wood Spike Wall': 'Spike Wall',
'Large Wood Spike Wall': 'Large Spike Wall',
'Workbench': 'Workbench',
'WoodGate': 'Wood Gate',
'WoodGateway': 'Wood Gateway',
'RepairBench': 'Repair Bench',
'Furnace': 'Furnace'
}


def On_EntityHurt(self, HurtEvent):
if HurtEvent.Attacker is not None and HurtEvent.Entity is not None and not HurtEvent.IsDecay:
#On Entity hurt the attacker is an NPC and a Player for somereason. We will try to grab his ID
id = self.TrytoGrabID(HurtEvent.Attacker)
if id is None:
return
gun = HurtEvent.WeaponName
if gun == "Shotgun":
return
get = DataStore.Get("DestroySystem", str(id))
#Dirty fucking hack against current bug. (Entity OWNERID request isn't working good yet, so hax it)
OwnerID = self.GetIt(HurtEvent.Entity)
if OwnerID is None:
return
if long(id) == long(OwnerID) and bool(get):
if self.IsEligible(HurtEvent):
EntityName = HurtEvent.Entity.Name
HurtEvent.Entity.Destroy()
ini = self.DestroySys()
giveback = int(ini.GetSetting("options", "giveback"))
if giveback == 1:
item = self.Items.get(EntityName, None)
if item is None:
return
line 124 - HurtEvent.Attacker.Inventory.AddItem(item)
Outdated, Redownload this plugin
 
  • Agree
Reactions: DreTaX

Jakkee

Retired Staff
Retired Staff
Plugin Developer
Jul 28, 2014
1,465
932
113
Australia
i update the plug-in but nothin anyway don't appears when is on/off
How did you update?
- Download latest DestroySystem
- Delete DestroySystem in your plugins folder
- Unzip the downloaded destroySystem in your plugins folder
- reload or restart server
 

.C.Y.B.E.R.

Member
Trusted Member
Member
May 4, 2016
63
0
6
yes, of course , but nothing , work but don´t appears the written when is off/on (same thing for "time vote don´t work")
 

.C.Y.B.E.R.

Member
Trusted Member
Member
May 4, 2016
63
0
6
but what have you windows or linux ? (i have windows 10 and now 8.1 pro) can you join in my pc with team viewer and fix ?