who can help me

  • 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!

NigelDam

Member
May 17, 2020
4
0
1
22
Hey i have a question i need to register a message what a player say and send it to a other

make gui slot 10 of player with blaze powder named "&aWhatsApp" to run:
open virtual chest inventory with size 3 named "&6Whatsapp" to player
set {_slot} to 0
loop all players:
if loop-value is player:
format gui slot {_slot} of player with loop-value's skull named "&e&l%Player%" to close then run player command "/msg %loop-value%"
add 1 to {_slot}


i need by command the message what a player type how to do that?
 
Hey i have a question i need to register a message what a player say and send it to a other

make gui slot 10 of player with blaze powder named "&aWhatsApp" to run:
open virtual chest inventory with size 3 named "&6Whatsapp" to player
set {_slot} to 0
loop all players:
if loop-value is player:
format gui slot {_slot} of player with loop-value's skull named "&e&l%Player%" to close then run player command "/msg %loop-value%"
add 1 to {_slot}


i need by command the message what a player type how to do that?
This section of the forum is for requesting a skript, not for asking for help on a skript. For the other you need help, post on Skript. Regarding your doubt, try something like this:

code_language.skript:
command /wts [<offline player>] [<string>]:
    trigger:
        arg 1 and arg 2 are set:
            add arg 2 to {msg::%arg 1%::*} 
            send "&aYou have sent the message to %arg 1%." to player
           
on command "/wtscheck":
    cancel event
    sender is a player
    if {msg::%player%::*} is set:
        send "%{msg::%player%::*}%" to player
        stop