MattyNJ Posted February 23, 2020 Share Posted February 23, 2020 (edited) My Skript won't work but I put it in a parser and it says it should. I know one of the lines require SkQuery and I have it. EDIT: My friend tried it and it worked on his server command /sc: permission: staff.chat trigger: if {%player%.staffchaton} is 0: set {%player%.staffchaton} to 1 message "&3Staff Chat is now &aon&3." stop if {%player%.staffchaton} is 1: set {%player%.staffchaton} to 0 message "&3Staff Chat is now &coff&3." stop on chat: if {%player%.staffchaton} is 1: cancel event send "&c[&4&lSTAFF&c] %player%: &3%message%" all players where [player input has permission "staff.chat"] Edited February 23, 2020 by MattyNJ Link to comment Share on other sites More sharing options...
Cooli Posted February 25, 2020 Share Posted February 25, 2020 whats the issue/error? Link to comment Share on other sites More sharing options...
_iZ_ Posted February 27, 2020 Share Posted February 27, 2020 It doesn't work because when you first load the Skript, there is no 1 or 0 value... The following skript should work... command /sc: permission: staff.chat trigger: if {%player%.staffchaton} is not set: set {%player%.staffchaton} to true message "&3Staff Chat is now &aon&3." stop if {%player%.staffchaton} is true: delete {%player%.staffchaton} message "&3Staff Chat is now &coff&3." stop on chat: if {%player%.staffchaton} is true: cancel event send "&c[&4&lSTAFF&c] %player%: &3%message%" all players where [player input has permission "staff.chat"] » IGN: _iZ_ « » Joined: 12/18/2016 « » VIP: 1/13/2018 « » Helper: 1/29/2021 « » [<3]: 5/8/2021 « » Skript dev « » Discord: iZz#0420 « React to this if I was helpful, found this interesting, or you're just nice 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