Hi every one , i want to show you how to show display damage in rust lagacy server
Lets start. First importing and then Following codes to create ro plugin ! .
You can add some better options to it !
in next post im going to show you how to add good options to it .. see you layer
Lets start. First importing and then Following codes to create ro plugin ! .
Python:
__author__ = 'amir'
__version__ = '2.0'
import clr
import system
clr.AddReferenceByPartialName("Fougerite")
import Fougerite
"""
Class
"""
# Use notifications instead of messages? False/True
Notice = False
sys = "DamageDisplay"
class DamageDisplay:
def On_PlayerHurt(self, HurtEvent):
if HurtEvent.Attacker is None or HurtEvent.Victim is None:
return
if HurtEvent.AttackerIsPlayer and HurtEvent.VictimIsPlayer:
if Notice:
HurtEvent.Attacker.Notice("Your Health: " + str(HurtEvent.Victim.Health))
else:
HurtEvent.Attacker.MessageFrom(sys, "[COLOR #FF0000]Your Health: " + str(HurtEvent.Victim.Health))
def On_NPCHurt(self, HurtEvent):
if HurtEvent.Attacker is None or HurtEvent.Victim is None:
return
if HurtEvent.AttackerIsPlayer:
if Notice:
HurtEvent.Attacker.Notice ("[COLOR #FF0000] Your Health: " + str(HurtEvent.Victim.Health))
else:
HurtEvent.Attacker.MessageFrom(sys, "[COLOR #FF0000] Your Health: " + str(HurtEvent.Victim.Health))
in next post im going to show you how to add good options to it .. see you layer