1. Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Solved Message players in a 1 to 10 block radius

Discussion in 'Skript' started by Jayden13O, Aug 17, 2021.

Thread Status:
Not open for further replies.
  1. Jayden13O

    Jayden13O Member

    Joined:
    Jun 9, 2021
    Messages:
    22
    Likes Received:
    1
    I have been trying to send players in a 10 block radius (excluding the player using the command) a message, but with tellraw it wont work.
    Code (Text):
    1. make console execute command "execute at %player% run tellraw @a[distance=1..10] {"""text""":"""You have been launched by %player%!""","""color""":"""red"}"
    Instead of tellraw i would like to use a skript command, but don't know how to send it to players in a 10 block radius (of course, excluding the player running the command).

    Please help me.
     
  2. Best Answer:
    Post #2 by xdh, Aug 17, 2021
  3. xdh

    xdh Member

    Joined:
    Apr 15, 2020
    Messages:
    46
    Likes Received:
    2
    here
    Code (Text):
    1. command /pushee:
    2.     trigger:
    3.         loop all players in radius 10 around player:
    4.             if loop-player's name isn't "%player%":
    5.                 send "&bYou have been launched by &e%player%" to loop-player
     
    • Like Like x 1
  4. barrybtw

    barrybtw Active Member

    Joined:
    Jun 8, 2021
    Messages:
    82
    Likes Received:
    6
    Code (Text):
    1. command pushall:
    2.     trigger:
    3.         loop all players in radius 10 around player where [player input != player]:
    4.             send "You have been launched by %player%" to loop-player
     
    • Informative Informative x 1
Thread Status:
Not open for further replies.

Share This Page

Loading...