Q: How do I make it so that if you kill yourself, it doesnt make you execute the command "/g1234"
Code:
Code:
code_language.skript:
if damage was caused by attack:
if victim is player:
if {DeathMessages} is set:
set {VHealth::%attacker%} to rounded health of attacker
make player execute command "/g123e73"
set the death message to "&cDeath &8&l» &c%victim% &7was killed by &c%attacker%"
send "&cKill &8&l» &7You have killed &a%victim% &7and have received &a1 XP" to attacker
send "" to victim
send "&aHealth &8&l» &c%attacker% &7was at &c%{VHealth::%attacker%}% &c❤" to victim
else:
set the death message to ""
send "&cKill &8&l» &7You have killed &a%victim% &7and have received &a1 XP" to attacker
send "" to victim
send "&aHealth &8&l» &c%attacker% &7was at &c%{VHealth::%attacker%}% ❤" to victim