Skip to content

Commit d0454cf

Browse files
Update surfaceSmite.ser
1 parent 32498d2 commit d0454cf

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

Example Scripts/surfaceSmite.ser

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
@target = LimitPlayers @surfacePlayers 1
77

88
# 2. Check if anyone was actually found to avoid a runtime error.
9-
if {AmountOf @target} > 0
10-
# 3. Execute the kill with a custom reason.
11-
Kill @target "The surface is no longer safe."
12-
Broadcast @sender 5s "Eliminated {@target nickname} from the surface."
13-
else
9+
if {AmountOf @target} isnt 1
1410
Broadcast @sender 5s "No players found in the Surface Zone."
15-
end
11+
stop
12+
end
13+
14+
# 3. Execute the kill with a custom reason.
15+
Kill @target "The surface is no longer safe."
16+
Broadcast @sender 5s "Eliminated {@target -> name} from the surface."

0 commit comments

Comments
 (0)