SpicySteal Posted December 4, 2021 Share Posted December 4, 2021 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! Link to comment Share on other sites More sharing options...
Pryzmm Posted December 4, 2021 Share Posted December 4, 2021 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" 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 More sharing options...
SpicySteal Posted December 4, 2021 Author Share Posted December 4, 2021 1 minute ago, AgentGamerPro said: use this line of code make player execute command "jail %arg-1% hacker" thanks, i need a way to make them so they cant do a command Link to comment Share on other sites More sharing options...
SpicySteal Posted December 4, 2021 Author Share Posted December 4, 2021 like /spawn Link to comment Share on other sites More sharing options...
Pryzmm Posted December 4, 2021 Share Posted December 4, 2021 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. 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 More sharing options...
SpicySteal Posted December 5, 2021 Author Share Posted December 5, 2021 7 hours ago, AgentGamerPro said: if they are jailed using essentials, teleport commands like /spawn wont work since theyll get tped back to the jail. i have a custom one, that wont work Link to comment Share on other sites More sharing options...
BalintPuddle Posted December 5, 2021 Share Posted December 5, 2021 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 1 Link to comment Share on other sites More sharing options...
SpicySteal Posted December 15, 2021 Author Share Posted December 15, 2021 tysm! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now