Check if point is occupied
#1

Hello people.

In this thread, I most likely want help with an idea to implement, so where it is:

I have an enum for random points (code below), I have like 50 points of these, and when I write a command, 30 players are teleported to these points, each player is teleported to a random point. What I basically want is to prevent two players or more from teleporting to one same point, and after the teleportation people are expected to die and spawn again, they'll respawn at a random point again, but still I don't want two players to spawn at the same point in same time, how can I do this?

Code:
enum RandomPoints
{
	Float:wcrm_X,
	Float:wcrm_Y,
	Float:wcrm_Z,
	Float:wcrm_RZ
};
Reply


Messages In This Thread
Check if point is occupied - by Viggo - 03.04.2019, 17:17
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 17:47
Re: Check if point is occupied - by Viggo - 03.04.2019, 17:49
Re: Check if point is occupied - by Private200 - 03.04.2019, 17:54
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 17:55
Re: Check if point is occupied - by Viggo - 03.04.2019, 17:59
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 18:00
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:01
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 18:02
Re: Check if point is occupied - by RedFusion - 03.04.2019, 18:03
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:03
Re: Check if point is occupied - by v1k1nG - 03.04.2019, 18:06
Re: Check if point is occupied - by Private200 - 03.04.2019, 18:08
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:08
Re: Check if point is occupied - by Viggo - 03.04.2019, 18:13
Re: Check if point is occupied - by CONTROLA - 04.04.2019, 08:57
Re: Check if point is occupied - by Viggo - 04.04.2019, 10:40

Forum Jump:


Users browsing this thread: 1 Guest(s)