Jump to content

Data from Chat


TwinGamer02

Recommended Posts

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.

image.png.0e22da98cfa645df5b08a5452f9b3711.png

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

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

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

image.png.0e22da98cfa645df5b08a5452f9b3711.png

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

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)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

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

569676108_Screenshot2021-04-23at8_22_47PM.png.572f66a76dbfaf7604c99450b589e62e.pngKeep Scrolling, You saw nothing

 

Link to comment
Share on other sites

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)

Screen Shot 2020-03-20 at 5.23.33 pm.png

Link to comment
Share on other sites

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.

SkripterMan

Joined Minehut on 4/21/16
Owner of CareSMP.minehut.gg


VIP - 6/21/17
LEGEND - 18/12/20
MARKET MAKER - 5/6/21


Discord: SkripterMan#0001

Link to comment
Share on other sites

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