Jump to content

jail an argument


SpicySteal

Recommended Posts

3 minutes ago, SpicySteal said:

ive tried to make a skript to jail an argument and it isnt working,

someone tell me what is wrong?

command /hacker [<offline player>]:
    trigger:
        execute command jail %arg 1% hacker
        message "Player jailed! "

thanks!

use this line of code
 

make player execute command "jail %arg-1% hacker"

 

 

 

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

14 hours ago, SpicySteal said:

like /spawn

 

if they are jailed using essentials, teleport commands like /spawn wont work since theyll get tped back to the jail.

 

 

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

11 hours ago, SpicySteal said:

i have a custom one, that wont work

 


If you have a custom one, then you can just set a variable for the player when you put him in jail with your custom command, and delete the variable when he's out. And then for example, if the variable {jail} is true when he does the /spawn command, cancel the event.

 

You can cancel it like this:

on command "/spawn":
	if {jail.%player%} is true:
		cancel event
	else:
		stop





 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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