if {p::*} does not contain uuid of player:
add uuid of player to {p::*}
set {lives::%uuid of player%} to 5
on death:
if victim is a player:
if attacker is a player:
remove 1 from {lives::%uuid of victim%}
if {lives::%uuid of victim%} <= 0:
execute console command "clear %victim%"
execute console command "tempban %victim% 3d &4&lYou Lost All Your Lives!"```
**How do I make it where it will reset the lives after the 3 days I can't get it to work**
#On unban how do I make it where it resets their lives?
1 messages · Page 1 of 1 (latest)
I mean you're setting the variable on join if its not set. So I'd just delete it when I ban them
how do I do that (im not the smartest)
if {lives::%player's uuid%} is not set:
set {lives::%player's uuid%} to 5
on death:
if victim is a player:
if attacker is a player:
remove 1 from {lives::%victim's uuid%}
if {lives::%victim's uuid%} <= 0:
execute console command "clear %victim%"
execute console command "tempban %victim% 3d &4&lYou Lost All Your Lives!"
delete {lives::%victim's uuid%}```
That's how I would do it I changed your on join to not use a separate list anymore and I just deleted the lives variable of the victim when they get banned
Why are you using console commands for something Skript can do?
Don't ask me but it seems to be a common (bad) practice lately
everything works thanks
to prevent players from duping
for some reason skript allows alot of dupes