Solved Help with TNT not damaging the player that placed it!

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

TeamArt

New Member
Nov 28, 2020
1
1
3
25
hi, i have this code and i want the player that placed the tnt to not get damaged by the tnt:
Code:
on place of tnt:
        cancel event
        if {kitpvp_tntcd::%player%} is not set:
                set {kitpvp_tntcd::%player%} to 0
        if {kitpvp_tntcd::%player%} is not 0:
                send "{@prefix} &cYou're On Cooldown!"
                stop
        remove 1 tnt from player's inventory
        spawn 1 primed tnt at event-location
        set {kitpvp_tntcd::%player%} to {@tnt_cooldown}
        set {kitpvp_tntloc::%event-location%} to player
        wait {@tnt_cooldown} seconds
        set {kitpvp_tntcd::%player%} to 0
        set action bar of player to "{@prefix} &bYour &4TNT &bCooldown Is Off!"
        wait 2 seconds
        set action bar of player to ""
        stop
 
Status
Not open for further replies.