Jump to content

How do I target one player with messages?


TheyCallMeEthan

Recommended Posts

I'm trying to make a warn system, and am pretty new to Skripting. I tried this: 

 

 

command /test2 [<player>] [<text>]:
    trigger:
        send "&4You have been warned by &c%sender%: &8%arg 2%" to %arg 1%

 

but it didn't work. How do I target the player specified in the command?

knock knock

whos there

hah

hah who?

why're you laughing like that?

 

627889998_Screenshotfrom2020-01-2816-10-44.png.9ace018111c715f788e2a82d7042ce4a.png

Link to comment
Share on other sites

8 hours ago, Xeno_Synthesis said:

Hey!
Firstly, the script reads the first argument as "arg-1", not "arg 1".
The same is for the second argument, but as "arg-2", not "arg 2"

Secondly, the reason the player isn't being sent the message, is because you're saying %arg 1%. Instead, try {arg-1}.


 

If that doesn't work, change it to just arg 1

Link to comment
Share on other sites

17 hours ago, Xeno_Synthesis said:

Hey!
Firstly, the script reads the first argument as "arg-1", not "arg 1".
The same is for the second argument, but as "arg-2", not "arg 2"

Secondly, the reason the player isn't being sent the message, is because you're saying %arg 1%. Instead, try {arg-1}.


 

Thank you!!

knock knock

whos there

hah

hah who?

why're you laughing like that?

 

627889998_Screenshotfrom2020-01-2816-10-44.png.9ace018111c715f788e2a82d7042ce4a.png

Link to comment
Share on other sites

Post has been answered
Locked 🔒


-------------------------------------------------------------
[VIP] - 2018/2019

[JR.MOD] - 28th April 2019
[SR.MOD] - 21st June 2019

[LEGEND] - 28th July 2020 (Resigned)

-------------------------------------------------------------

Discord - Criticyl#0002

IGN - Criticyl

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...