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 End game credits

Discussion in 'Skript' started by Mattllama987, Jun 25, 2020.

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

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    Hello, im trying to send the end game credits to a player, and what i have isnt working. Does anyone know how to do this? Here is the message it shows in chat:
    https://gyazo.com/275ce35555220214f34cfa500eade775
    Thanks!
    ~Matt

    Im not even sure this is the correct way?

    Code (Text):
    1.  
    2. command /test:
    3.     trigger:
    4.         set {_end} to new play_server_game_state_change packet
    5.         set byte pnum 4 of {_end} to 1
    6.         send packet {_end} to sender
    7.  
     
  2. Juffix

    Juffix Member

    Joined:
    Apr 7, 2019
    Messages:
    19
    Likes Received:
    4
    You can use skQuery's display credits
    Code (Text):
    1. display credits to player
     
  3. Mattllama987

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    That gives no error, but does literally nothing.
    --- Double Post Merged, Jun 26, 2020, Original Post Date: Jun 26, 2020 ---
    I also heard that method doesnt really work anymore.
     
  4. Juffix

    Juffix Member

    Joined:
    Apr 7, 2019
    Messages:
    19
    Likes Received:
    4
    Try this instead
    Code (Text):
    1. set int field of {_end} to 4
    2. set float field  of {_end} to 1
     
  5. Mattllama987

    Mattllama987 Active Member

    Joined:
    Aug 5, 2018
    Messages:
    225
    Likes Received:
    7
    That worked! Thank you very much! :emoji_slight_smile:
     
Thread Status:
Not open for further replies.

Share This Page

Loading...