Jump to content

I've made a /freeze Skript But i doesn't work


Recommended Posts

On 6/12/2024 at 12:35 AM, Penguin_Cutey said:

If Some can fix this it would help a lot! 🙂

Broken Freeze.sk 794 B · 0 downloads

You didn't exactly specify what's wrong in the skript, but I've gone ahead and changed a couple things in it anyway

 

command /freeze <player>:
    aliases: /ss
    permission: op
    permission message: No permission
    usage: &c/freeze <Player> | /ss <Player>
    trigger:
        if {ss::%arg-1's UUID%} ? 0 = 0: # the '?' means 'otherwise'; if the variable on the left is not set, it uses the value on the right
            set {ss::%arg-1's UUID%} to 1
            send "&4(!) You Are Frozen! Do &4&lNOT Log Out" to arg-1
        else:
            clear {ss::%arg-1's UUID%} # to save on variable space, clear the variable instead
            send "&4(!) You Are Now Unfrozen! You Can Now Log Out" to arg-1

on player move:
    if {ss::%player's UUID%} = 1:
        cancel event
        send action bar "&4(!) You Are Frozen! Do &4&lNOT Log Out" to player

 

 

 

image.png.bc433d6489d70ad831075fe76809b993.png
 

Owner of Lifestealed, Labs, Encore, UNOfficially and Observed
 

OG [VIP] 12/26/20 - 10/27/2021
OG [PRO] 12/27/21 - 11/18/2022
OG [LEGEND] 11/18/2022 - 3/14/2023
[DEFAULT] 3/14/2023 - 5/8/2024

[MOD] 5/8/2024 - Present

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...