TwinGamer02 Posted May 9, 2020 Share Posted May 9, 2020 Is there a way to take something from when someone types in chat, cancel event, and set it to a variable? Link to comment Share on other sites More sharing options...
WesGamer Posted May 10, 2020 Share Posted May 10, 2020 Yes this is possible it could look like this (i think its possible) on chat: cancel event set {variable} to message broadcast "%player% said %message%" tell me if it works or not Link to comment Share on other sites More sharing options...
ztimhirsch1 Posted May 13, 2020 Share Posted May 13, 2020 On 5/10/2020 at 8:48 AM, WesGamer said: Yes this is possible it could look like this (i think its possible) on chat: cancel event set {variable} to message broadcast "%player% said %message%" tell me if it works or not Instead of broadcast "%player% said %message" use Send "%player%: %message%" It makes it look better. If I helped you add a reaction to my post. First Joined Oct 29 15:01 GMT 2017 VIP since 9/26/2020 Link to comment Share on other sites More sharing options...
WesGamer Posted May 13, 2020 Share Posted May 13, 2020 If you want to only allow the player to see the message not the other players in the server if you use broadcast it sends the message to all players not the only one and you could do this if %player% isnt the name of the reciever: on chat: set {_p} to player set {message} to message # or "%message%" but i think the first option broadcast "%{_p}% said %message%" Link to comment Share on other sites More sharing options...
ztimhirsch1 Posted May 14, 2020 Share Posted May 14, 2020 21 hours ago, WesGamer said: If you want to only allow the player to see the message not the other players in the server if you use broadcast it sends the message to all players not the only one and you could do this if %player% isnt the name of the reciever: on chat: set {_p} to player set {message} to message # or "%message%" but i think the first option broadcast "%{_p}% said %message%" If you use "send" it will send it to all players unless you do send "" to (player) on chat: cancel event set {_p} to "%player%" set {message} to "%message%" send "&7[&2%{_p}%&7]: %{message}%" will work If I helped you add a reaction to my post. First Joined Oct 29 15:01 GMT 2017 VIP since 9/26/2020 Link to comment Share on other sites More sharing options...
Migins Posted May 15, 2020 Share Posted May 15, 2020 10 hours ago, coltoncougar said: If you use "send" it will send it to all players unless you do send "" to (player) It won't. If you use send by itself it will send it to the player. Also that skript is completely pointless. 1. player doesn't need to be in a string (line 3). 2. message doesn't need to be in a string (line 4). 3. none of the variables are necessary and will only cause lag. on chat: cancel event broadcast "&7[&2%player%&7]: %message%" ► Support July 29, 2020 → November 3, 2020 ► Helper November 3, 2020 → February 22, 2021 ► Moderator February 22, 2021 → May 17, 2021 ► I might not always respond to forum dms, however I am always contactable on discord (mig#0069) Link to comment Share on other sites More sharing options...
Shlba_lnu Posted May 18, 2020 Share Posted May 18, 2020 on chat: set the chat format to "%player's prefix%%player% %message%" Keep Scrolling, You saw nothing Link to comment Share on other sites More sharing options...
Shlba_lnu Posted May 18, 2020 Share Posted May 18, 2020 On 5/15/2020 at 8:19 AM, Migqy said: It won't. If you use send by itself it will send it to the player. Also that skript is completely pointless. 1. player doesn't need to be in a string (line 3). 2. message doesn't need to be in a string (line 4). 3. none of the variables are necessary and will only cause lag. on chat: cancel event broadcast "&7[&2%player%&7]: %message%" Using broadcast stuff isn't the smartest cus then your mute system won't work Keep Scrolling, You saw nothing Link to comment Share on other sites More sharing options...
Migins Posted May 18, 2020 Share Posted May 18, 2020 12 hours ago, Shlba_lnu said: Using broadcast stuff isn't the smartest cus then your mute system won't work what? you can just check if the event is cancelled? ► Support July 29, 2020 → November 3, 2020 ► Helper November 3, 2020 → February 22, 2021 ► Moderator February 22, 2021 → May 17, 2021 ► I might not always respond to forum dms, however I am always contactable on discord (mig#0069) Link to comment Share on other sites More sharing options...
SkripterMan Posted May 18, 2020 Share Posted May 18, 2020 12 hours ago, Shlba_lnu said: Using broadcast stuff isn't the smartest cus then your mute system won't work No, as it is on chat it won't work if your punishment skript includes on chat cancel event. SkripterManJoined Minehut on 4/21/16 Owner of CareSMP.minehut.ggVIP - 6/21/17LEGEND - 18/12/20MARKET MAKER - 5/6/21Discord: SkripterMan#0001 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