Jump to content

rewgwgr

Recommended Posts

Hello! Im Currently Working on a Server!

I know Very little about Skript so i was wondering if anybody would help with a skript i (wanted) to make!

 

The Skript:

/Verify

I Want to make it so that the Player is Unable to move until they do /Verify, Thanks! 😁

Link to comment
Share on other sites

Done! I havent tested it, but if it doesnt work tell me the errors.

 

on join:
    if {verify::%player%} is false:
        set player's walk speed to 0
        send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            set player's walk speed to 0.2

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have verified!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already verified" to player

  • Like 1

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

4 minutes ago, Lapzzo said:

Done! I havent tested it, but if it doesnt work tell me the errors.

 

on join:
    if {verify::%player%} is false:
        set player's walk speed to 0
        send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            set player's walk speed to 0.2

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have verified!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already verified" to player

 

Alright!

1. Thank you so Much!

2. I Installed & Reloaded it, no errors

3. i hopped on an alt to try it out (the alt had never previously joined), and he was able to move without doing /verify (not sure if that was supposed to happen), I Then typed /verify and nothing happened..

 

Link to comment
Share on other sites

Just now, rewgwgr said:

Alright!

1. Thank you so Much!

2. I Installed & Reloaded it, no errors

3. i hopped on an alt to try it out (the alt had never previously joined), and he was able to move without doing /verify (not sure if that was supposed to happen), I Then typed /verify and nothing happened..

Let me see

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

You need another account to do this one, as it only works on the accounts first join.

 

on join:
    if {verify::%player%} is false:
        set player's walk speed to 0
        send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            set player's walk speed to 0.2

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have verified!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already verified" to player
on first join:
    set {verify::%player%} to false

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

2 minutes ago, Lapzzo said:

You need another account to do this one, as it only works on the accounts first join.

 

on join:
    if {verify::%player%} is false:
        set player's walk speed to 0
        send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            set player's walk speed to 0.2

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have verified!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already verified" to player
on first join:
    set {verify::%player%} to false

ok im about to hop on to yet ANOTHER alt to test this out

ill update you after! Thanks!

  • Like 1
Link to comment
Share on other sites

 

3 minutes ago, Lapzzo said:

No problem! Thanks for testing it out. Btw u have a lot of alts xd

OK, I Tested it

/verify works fine!

The Problem: 

I Can Still Move When I Join..

(Im on an alt that has never joined before btw)

  • Like 1
Link to comment
Share on other sites

12 minutes ago, Lapzzo said:

You need another account to do this one, as it only works on the accounts first join.

 

on join:
    if {verify::%player%} is false:
        set player's walk speed to 0
        send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            set player's walk speed to 0.2

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have verified!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already verified" to player
on first join:
    set {verify::%player%} to false

Alright Thanks!

Before I Test This, i'd like to say

1. Thank You so Much

2. if This Doesn't work, would it be possible to make it so it Automatically Teleports the Player to Certain Coordinates (in a loop), and when you type /verify it just stops running the command (just an idea, not sure it'll work though.)

 

  • Like 1
Link to comment
Share on other sites

on join:
    if {verify::%player%} is false:
    	set {_location} to location of player
    	every 1 seconds in <world name>:
        	teleport player to {_location}
        	send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            send "Welcome back to <servername>"

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have verified!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already verified" to player
on first join:
    set {verify::%player%} to false

No clue if this will work, but worth a try! Hope this helps 


--- AbusingNub ---


-- Owner of the DevilsNetwork --

◉ DevilsPvP.minehut.gg

◉ BridgesWar.minehut.gg


Here to lend a helping hand.


 

Link to comment
Share on other sites

I remade abusingnubs one to make it work:

on join:
    if {verify::%player%} is false:
    	set {_location} to location of player
    	every second:
        	teleport player to {_location}
        	send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            send "&aWelcome back %player%!" to player

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have &lverified &asuccessfully!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already &lverified" to player
on first join:
    set {verify::%player%} to false

 

imgonline-com-ua-resize-CNNkL1drx5M-removebg-preview.png.d6a8ae8b5eb862005fb056c21f934200.png

Link to comment
Share on other sites

11 hours ago, Lapzzo said:

I remade abusingnubs one to make it work:

on join:
    if {verify::%player%} is false:
    	set {_location} to location of player
    	every second:
        	teleport player to {_location}
        	send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            send "&aWelcome back %player%!" to player

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have &lverified &asuccessfully!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already &lverified" to player
on first join:
    set {verify::%player%} to false

You can use:

else if ...

instead of:

else:
	if ...

Results in cleaner-looking code.

Owner of oldgaffle.minehut.gg. (my paintball server)

Owner of karted.minehut.gg. (my mario kart server)

Advocate of individual freedom, especially freedom of speech.

Cooler than Stalemate128.

Link to comment
Share on other sites

On 8/12/2021 at 10:27 AM, Lapzzo said:

I set the walkspeed to 0 tho. Were there any errors?

You could add something like this:
 

on any movement:
	if {verify::%player%} is false:
		cancel event
		send "Do /vertify" to player

But im guessing it's already too late

2021-06-09_20_22_08.jpg.422c39613f8b72de894e5ec1f3377dca.jpg

Yo who actually reads these

[Vip] - 12/29/2020
[Pro] - 1/25/2022
 

 

 

Link to comment
Share on other sites

On 8/14/2021 at 1:26 AM, Lapzzo said:

I remade abusingnubs one to make it work:

on join:
    if {verify::%player%} is false:
    	set {_location} to location of player
    	every second:
        	teleport player to {_location}
        	send "&7Please verify by executing /verify to play!" to player
    else:
        if {verify::%player%} is true:
            send "&aWelcome back %player%!" to player

command /verify:
    trigger:
        if {verify::%player%} is false:
            send "&aYou have &lverified &asuccessfully!" to player
        else:
            if {verify::%player%} is true:
                send "&cYou have already &lverified" to player
on first join:
    set {verify::%player%} to false

Thanks! Didn't have any time to test, so purely was going off the top of my head haha

  • Like 1

--- AbusingNub ---


-- Owner of the DevilsNetwork --

◉ DevilsPvP.minehut.gg

◉ BridgesWar.minehut.gg


Here to lend a helping hand.


 

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