Solved How to cancel death message?

  • 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.

Adrihun

Member
Feb 1, 2017
368
6
0
I got a simple script.
I also have a vanish script (see my older posts),

How do i make it so if i die, and I'm vanished, the death message won't appear in chat?
-> If you're going to help, just change the variable to "test"

code_language.skript:
on death of player:
    if attacker is a player:
        if attacker is set:
            set the death message to "%victim% killed by %attacker%"

Thank you! :emoji_slight_smile:
 
why don't you uses /god when vanish?

code_language.skript:
command /vanish
permission: skript.admin
trigger:
  make player execute "/god"
  #rest of vanish
 
Depends if you set a variable when player use the vanish command , if yes just do:
code_language.skript:
on death of player:
    if {vanish.%uuid of victim%} is true:
        set death message to ""
 
Status
Not open for further replies.