I wanted to know if it's possible so if a player doesn't hit another player in 30 seconds for example, It will kill him.
If so, how?
Thanks in advance.
If so, how?
Thanks in advance.
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!
You can always check out our Wiki for downloads and any other information about Skript!
(Whatever you want to do)
wait 30 seconds
if {hit.%player%} is not set:
kill the player
on damage:
attacker is a player
set {hit.%player%} to true
Is this a joke?Do it:
code_language.skript:variables: {(name).%player%} = false wait 30 seconds: if atacker is not a player: set {(name).%player%} to true else: set {(name).%player%} to false wait 1 tick: if {(name).%player%} is true: kill %player%
I think it works!
wait # seconds/ticks/minutes etc is not an event. I thought that was basic skript knowledge.Why?!?! And please.. Respect Me!!
wait # seconds/ticks/minutes etc is not an event. I thought that was basic skript knowledge.
It doesn'tDo it:
code_language.skript:variables: {(name).%player%} = false wait 30 seconds: if atacker is not a player: set {(name).%player%} to true else: set {(name).%player%} to false wait 1 tick: if {(name).%player%} is true: kill %player%
I think it works!
Thanks, but the thing is, I'm making a tag game, and this is my code.you could do something like
code_language.skript:(Whatever you want to do) wait 30 seconds if {hit.%player%} is not set: kill the player on damage: attacker is a player set {hit.%player%} to true
command /flametag:
trigger:
apply swiftness 2 to all players for 1000000 seconds
set {playerTarget} to a random player out of all players
send "{@prefix} &f%{playerTarget}% &7is the Tagger!" to all players
send "{@prefix} &7YOU ARE IT!" to {playerTarget}
set slot 0 of {playerTarget} to fire charge named " "
set slot 1 of {playerTarget} to fire charge named " "
set slot 2 of {playerTarget} to fire charge named " "
set slot 3 of {playerTarget} to fire charge named " "
set slot 4 of {playerTarget} to fire charge named " "
set slot 5 of {playerTarget} to fire charge named " "
set slot 6 of {playerTarget} to fire charge named " "
set slot 7 of {playerTarget} to fire charge named " "
set slot 8 of {playerTarget} to fire charge named " "
set slot 9 of {playerTarget} to fire charge named " "
set slot 10 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 11 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 12 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 13 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 14 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 15 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 16 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 17 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 18 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 19 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 20 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 21 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 22 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 23 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 24 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 25 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 26 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 27 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 28 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 29 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 30 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 31 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 32 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 33 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 34 of {playerTarget} to fire charge named "&c&lFLAMETAG "
set slot 35 of {playerTarget} to fire charge named "&c&lFLAMETAG"
equip {playerTarget} with leather chestplate dyed red named "&c&lFLAME&4&lTAG"
equip {playerTarget} with leather leggings dyed red named "&c&lFLAME&4&lTAG"
equip {playerTarget} with leather boots dyed red named "&c&lFLAME&4&lTAG"
set helmet of {playerTarget} to a TNT named "&c&lFLAME&4&lTAG"
if {hit.%player%} is not set:
kill the player
on damage:
if attacker is player:
if victim is player:
if attacker's tool is Fire charge:
clear attacker's inventory
set {hit.%player%} to true
set {flametag.it.%victim%} to "Tagger"
set slot 0 of victim to fire charge named " "
set slot 1 of victim to fire charge named " "
set slot 2 of victim to fire charge named " "
set slot 3 of victim to fire charge named " "
set slot 4 of victim to fire charge named " "
set slot 5 of victim to fire charge named " "
set slot 6 of victim to fire charge named " "
set slot 7 of victim to fire charge named " "
set slot 8 of victim to fire charge named " "
set slot 9 of victim to fire charge named " "
set slot 10 of victim to fire charge named "&c&lFLAMETAG "
set slot 11 of victim to fire charge named "&c&lFLAMETAG "
set slot 12 of victim to fire charge named "&c&lFLAMETAG "
set slot 13 of victim to fire charge named "&c&lFLAMETAG "
set slot 14 of victim to fire charge named "&c&lFLAMETAG "
set slot 15 of victim to fire charge named "&c&lFLAMETAG "
set slot 16 of victim to fire charge named "&c&lFLAMETAG "
set slot 17 of victim to fire charge named "&c&lFLAMETAG "
set slot 18 of victim to fire charge named "&c&lFLAMETAG "
set slot 19 of victim to fire charge named "&c&lFLAMETAG "
set slot 20 of victim to fire charge named "&c&lFLAMETAG "
set slot 21 of victim to fire charge named "&c&lFLAMETAG "
set slot 22 of victim to fire charge named "&c&lFLAMETAG "
set slot 23 of victim to fire charge named "&c&lFLAMETAG "
set slot 24 of victim to fire charge named "&c&lFLAMETAG "
set slot 25 of victim to fire charge named "&c&lFLAMETAG "
set slot 26 of victim to fire charge named "&c&lFLAMETAG "
set slot 27 of victim to fire charge named "&c&lFLAMETAG "
set slot 28 of victim to fire charge named "&c&lFLAMETAG "
set slot 29 of victim to fire charge named "&c&lFLAMETAG "
set slot 30 of victim to fire charge named "&c&lFLAMETAG "
set slot 31 of victim to fire charge named "&c&lFLAMETAG "
set slot 32 of victim to fire charge named "&c&lFLAMETAG "
set slot 33 of victim to fire charge named "&c&lFLAMETAG "
set slot 34 of victim to fire charge named "&c&lFLAMETAG "
set slot 35 of victim to fire charge named "&c&lFLAMETAG"
equip victim with leather chestplate dyed red named "&c&lFLAME&4&lTAG"
equip victim with leather leggings dyed red named "&c&lFLAME&4&lTAG"
equip victim with leather boots dyed red named "&c&lFLAME&4&lTAG"
set helmet of victim to a TNT named "&c&lFLAME&4&lTAG"
send "{@prefix} &f%victim% &7is the Tagger!" to all players
send "{@prefix} &7YOU ARE IT!" to victim
on death:
set death message to "{@prefix} &f%player% &7exploded to his death!"