Jump to content

Kill Drop Cooldown


The_Wire_Wolf

Recommended Posts

Could someone please help me, Im trying to make it so a player doesn't drop an item if they have been killed in the past minute, I'm not sure if its possible I just want to check.

Here is my Skript:
on death:
    victim is a player
    damager is a player
    if victim has been killed in the past 1 minute:
        send "This player has been killed recently, please wait 
        or kill someone else!"
    else:
        send "You killed &4&l%player%&r and recieved a soul!" to damager
        give damager soul sand named "&4&lSoul"

Edited by The_Wire_Wolf
Link to comment
Share on other sites

on death:
	victim is a player
	attacker is a player
    set {_diff} to difference between {cooldown::%victim's uuid%} and now
	if {_diff} < 1 minute:
        send "This player has been killed recently, please wait or kill someone else!"
    else:
        send "You killed &4&l%victim%&r and recieved a soul!" to damager
        give attacker 1 of soul sand named "&4&lSoul"
        delete {cooldown::%victim's uuid%}

 

 

Owner of play.hiveminez.net

 

⊱------------------------------⊰

Joined Minehut on 1/28/2021 (Same day I got Minecraft)

[VIP] - 3/14/2021

[LEGEND] - 5/27/2021

⊱------------------------------⊰

Discord - NotKaizo#0001

In-game name - iKaizo_

If you need any help, feel free to contact me.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...