Solved A simple and quick help.

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Before3_

New Member
Apr 19, 2019
9
0
0
24
I need your help.

I have something in my mind and I have difficulties to achieve it. I'm new to skript, so I have a lot to learn. Anyway.

What I want to do is: when the player is in the "day". Send a message "Hello"

Code:
on join:
   if player first join day:
      send "Hello"
 
Saw this in the SKunity discord and replied to you... I'll put this here anyway though for you.
Code:
on join:
    set {_waitedtime} to difference between {joinmessage.%player%.lastused} and now
    if {_waitedtime} is less than 24 hours:
        stop
    else:
        send "Hello" to player
        set {joinmessage.%player%.lastused} to now
 
Saw this in the SKunity discord and replied to you... I'll put this here anyway though for you.
Code:
on join:
    set {_waitedtime} to difference between {joinmessage.%player%.lastused} and now
    if {_waitedtime} is less than 24 hours:
        stop
    else:
        send "Hello" to player
        set {joinmessage.%player%.lastused} to now

That's great! and if you want to throw it from the server?
[doublepost=1556080588,1556080363][/doublepost]
Saw this in the SKunity discord and replied to you... I'll put this here anyway though for you.
Code:
on join:
    set {_waitedtime} to difference between {joinmessage.%player%.lastused} and now
    if {_waitedtime} is less than 24 hours:
        stop
    else:
        send "Hello" to player
        set {joinmessage.%player%.lastused} to now

That now, I do not need to send a message to the user. I need the server to throw it out.
 
Code:
on join:
    set {_waitedtime} to difference between {joinmessage.%player%.lastused} and now
    if {_waitedtime} is less than 24 hours:
        stop
    else:
        set {joinmessage.%player%.lastused} to now
        kick player
 
Status
Not open for further replies.