Kill player on Void

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

Kampfwombat

Member
Apr 21, 2017
14
0
0
21
Hello everyone, i was trying to make a skript that kills every player in the void.
I dont know how to put the code in the thread, but i used:

on damage of a player:
if damage cause is void:
cancel event
kill the player
but I get the error:
"Cant compare a damage cause with a types.art"

Is there a way to work around this? Maybe with coordinates?
 
Try this, (not tested)
Code:
on damage:
  if player's y-coordinate is smaller than 0:
    kill the player
idk if works
hope it help
 
Status
Not open for further replies.