TheAltGang Posted December 17, 2021 Share Posted December 17, 2021 Basically I'm trying to make it add 1 kill to the person who kills a player and vice versa. Another thing I'm trying to do is give the killer a random amount of experience to level up on a kitpvp. can anyone help me know why this isn't working? (it says no errors when I reload) on death: victim is player: attacker is player: set the death message to "&b%victim% &7was assassinated &c%attacker%&7! [&c%attacker's health%❤&7]" stop add 1 to {deaths::%victim%} add 1 to {kills::%attacker%} set {_gainedexp} to random integer between 15 and 25 add {_gainedexp} to xp of attacker on death: victim is a player: attacker is not a player: set the death message to "&b%victim% &7died." stop add 1 to {deaths::%victim%} Link to comment Share on other sites More sharing options...
Pryzmm Posted December 17, 2021 Share Posted December 17, 2021 1 hour ago, TheAltGang said: Basically I'm trying to make it add 1 kill to the person who kills a player and vice versa. Another thing I'm trying to do is give the killer a random amount of experience to level up on a kitpvp. can anyone help me know why this isn't working? (it says no errors when I reload) on death: victim is player: attacker is player: set the death message to "&b%victim% &7was assassinated &c%attacker%&7! [&c%attacker's health%❤&7]" stop add 1 to {deaths::%victim%} add 1 to {kills::%attacker%} set {_gainedexp} to random integer between 15 and 25 add {_gainedexp} to xp of attacker on death: victim is a player: attacker is not a player: set the death message to "&b%victim% &7died." stop add 1 to {deaths::%victim%} maybe try something like this? if type of victim is a player untested so Owner of Lifestealed, Labs, Encore, UNOfficially and Observed OG [VIP] 12/26/20 - 10/27/2021 OG [PRO] 12/27/21 - 11/18/2022 OG [LEGEND] 11/18/2022 - 3/14/2023 [DEFAULT] 3/14/2023 - 5/8/2024 [MOD] 5/8/2024 - Present Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now