03.04.2019, 17:17
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?
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 };