Jump to content

Check if a player is within a certain coordinates


Nd_

Recommended Posts

I don't know if you can, but you can check if they are in an exact block,

every 1 tick:
	loop all players:
		if loop-player's location is "0, 0, 0":
			do something

I am not sure if this works, I'm just guessing its going to be something along those lines

 

Hello! I'm SoloStrafe!
 

Skills:

Skript (4+ years experience)

Most of the plugins on MH

Servers:

- Westmine (Developer)

- Mineport (Admin)

Minehut:

Untitled.png.395f912cec0139eaf122fc8874f57045.png

I got VIP rank on 8/1/2019 -> Current

Link to comment
Share on other sites

3 minutes ago, SoloStrafe said:

I don't know if you can, but you can check if they are in an exact block,


every 1 tick:
	loop all players:
		if loop-player's location is "0, 0, 0":
			do something

I am not sure if this works, I'm just guessing its going to be something along those lines

 

Ok, Thanks!

Link to comment
Share on other sites

On 7/26/2019 at 2:42 AM, OMan100 said:

You can try to loop entities between 2 locations, never tried that thought. Easiest way is to just check his region

I found out that you can do

player's x coordinate is between -5.5 and 14.5:

for each

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