Jump to content

I've been seeing a "player ping" skript, any way to get this myself?


Dieeeeeeeeeeeeee

Recommended Posts

on chat:
  loop all players:
    if message matches loop-player's name:
      wait 3 ticks
      play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 1
      send title "&bSomeone just mentioned you!" with subtitle "&aGo check it out!" to loop-player for 1 second

Hello!
IGN✦ centralwtf
Gender★ he/him
==========================================

Owner★ Boxable, NetherBox, FishHype

 ==========================================

Joined★ 22.07.2019

Member -> VIP ★ 29.04.2020

 ==========================================

obraz_2021-04-08_103028.png.8fa96840c599c6ff81febf732163163f.png

 

 

Link to comment
Share on other sites

21 minutes ago, centralwtf said:

on chat:
  loop all players:
    if message matches loop-player's name:
      wait 3 ticks
      play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 1
      send title "&bSomeone just mentioned you!" with subtitle "&aGo check it out!" to loop-player for 1 second

When I put this into a skript parser, it gave me the following error:

Line 5: There's no loop that matches 'loop-player at volume 1' (script.sk, line 5: play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 1')

A simple way I fixed this was by doing the following:

on chat:
  loop all players:
    set {_p} to loop-player
    if message matches {_p}'s name:
      wait 3 ticks
      play sound "ENTITY_EXPERIENCE_ORB_PICKUP" with volume 1 to {_p}
      send title "&bSomeone just mentioned you!" with subtitle "&aGo check it out!" to {_p} for 1 second

You need to use the following format for sounds:

play sound[s] %strings% [(in|from) %soundcategory%] [(at|with) volume %number%] [(and|at|with) pitch %number%] [(to|for) %players%]

Hope this helps you out @Dieeeeeeeeeeeeee!

Edited by BanditEagle

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

3 minutes ago, BanditEagle said:

play "ENTITY_EXPERIENCE_ORB_PICKUP" to loop-player at volume 1

My Bad!
Should be "play sound "block.note_block.pling" with volume 1 and pitch 2.5 at player for player"

Or as You said.

Hello!
IGN✦ centralwtf
Gender★ he/him
==========================================

Owner★ Boxable, NetherBox, FishHype

 ==========================================

Joined★ 22.07.2019

Member -> VIP ★ 29.04.2020

 ==========================================

obraz_2021-04-08_103028.png.8fa96840c599c6ff81febf732163163f.png

 

 

Link to comment
Share on other sites

26 minutes ago, centralwtf said:

"play sound "block.note_block.pling" with volume 1 and pitch 2.5 at player for player"

This sound only plays for the one sending the message, not the one receiving one.

I want it so the receiver gets the sound

Edited by Dieeeeeeeeeeeeee
Link to comment
Share on other sites

Just now, Dieeeeeeeeeeeeee said:

This only plays for the one sending the message, not the one receiving one.

can you try my suggestion?

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

Link to comment
Share on other sites

35 minutes ago, Dieeeeeeeeeeeeee said:

This works, thanks for the help!

no problem, happy to be able to help!

If I have helped you out in your post or you liked what I posted, please upvote and react to my post! It helps me a lot!

Some Minehut Links:

Server Rules • Staff Applications • News & Updates • Reports • Appeals


Minehut: VIP (07/04/2021 --> Current)
Elestra/Versa Realms: Manager (12/04/2021 --> Current)

If you have any questions contact me!
My Discord: BanditEagle#2481
My Spigot Profile: https://www.spigotmc.org/members/banditeagle.935281/
My IGN: BanditEagle

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