AHelpingCandy Posted March 28, 2021 Share Posted March 28, 2021 Was bored so I made this command /sudo [<player>] [<text>] [<text>]: trigger: if arg 1 is not set: message "Arg 1 not set!" stop else: if arg 2 is not set: message "Arg 2 is not set!" stop if arg 2 is "c:": if arg 3 is not set: message "Arg 3 is not set!" stop else: # This needs to be your chat format broadcast "&7[&c%arg 1%&7] &f> %arg 3%" stop if arg 2 is set: make arg 1 execute command "/%arg 2%" stop IGN ➣ Pickey ( Soon ) Joined MineHut ➣ January 7th 2019 Joined Forums ➣ January 11th 2021 Admin on NotedGens Manager on NotedGens Developer on CropiedDeveloper on Gennow (Genable) ==========================================Best Job: Badlion ( Client Moderator [ Failed Trial / Demoted] )Retired From: InvadedLands ( Moderator ) Retired From: MineTime ( Sr.Moderator ) Retired From: Hero Mines ( Helper ) Link to comment Share on other sites More sharing options...
_Tarna_ Posted March 28, 2021 Share Posted March 28, 2021 This is not a good way to do this at all. All those stops are not needed. If you are using an if else statement, the skript will just not go to the else statement part anyways. And you can just do make arg-1 say arg-2. That will make it you can make them say something in chat or execute commands. command /sudo <player> <text>: usage: /sudo <player> <text> permission: sudo.use trigger: make arg-1 say arg-2 With this you can just do /sudo _Tarna_ hello to make them say hello or /sudo _Tarna_ /hello to make them execute a command. Discord - tarna256 In-game name - _Tarna_ Website - https://tarna.dev Paste Site: https://paste.tarna.dev --------------------------------------------------------- [VIP] - 7/27/2020 Community Support - 7/8/20 - 11/3/20 Helper - 11/3/20 - 2/21/21 Moderator - 2/21/21 - 5/17/21 - 5/17/21 - 12/20/22 Moderator - 12/20/22 - now --------------------------------------------------------- Link to comment Share on other sites More sharing options...
ukiunli Posted May 24, 2021 Share Posted May 24, 2021 ummm how do i use it Link to comment Share on other sites More sharing options...
Flippy404 Posted May 30, 2021 Share Posted May 30, 2021 Please don't reply to posts that haven't been responded to in over a month. I would be locking this thread now, you can start a new thread in case you need some help. Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts