Oxproc Posted March 15, 2021 Share Posted March 15, 2021 Im trying to make a kill counter but it doesnt work here is my code: on death: if victim is a player: if attacker is a player: add 1 to {kills.%player%} to attacker Link to comment Share on other sites More sharing options...
BanditEagle Posted March 15, 2021 Share Posted March 15, 2021 first off all you have to set {kills.%player%} of the attacker to 0 when they first join. Also, the spacing is wrong with the add 1 to {kills.%player%} to attacker} so you might want to fix that. Otherwise, that should do it. (PS: Remember to put the first join part first) If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot! Some Minehut Links: Server Rules • Staff Applications • News & Updates • Reports • Appeals Minehut: VIP (07/04/2021 --> Current)Elestra/Versa Realms: Manager (12/04/2021 --> Current) If you have any questions contact me!My Discord: BanditEagle#2481My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/My IGN: BanditEagle Link to comment Share on other sites More sharing options...
Oxproc Posted March 15, 2021 Author Share Posted March 15, 2021 Thanks Link to comment Share on other sites More sharing options...
Oxproc Posted March 15, 2021 Author Share Posted March 15, 2021 Sorry It didnt work Link to comment Share on other sites More sharing options...
zuyn Posted March 15, 2021 Share Posted March 15, 2021 %player% is not defined in an on death event, The fix for this should be: on death: if victim is a player: if attacker is a player: add 1 to {kills.%attacker% Link to comment Share on other sites More sharing options...
Thegamerzod Posted March 15, 2021 Share Posted March 15, 2021 on death: if victim is a player: if attacker is a player: add 1 to {kills.%attacker%} this works but i would like to point out what was wrong with your skript. first: players are not in on death event so use victim or attacker and second: you didnt indent right third: zuyn's skript didnt have a closing bracket. Link to comment Share on other sites More sharing options...
Oxproc Posted March 16, 2021 Author Share Posted March 16, 2021 thanks thegamerzod 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