A queue basically is the meaning of ‘storing data’. When that is the case, it is very common to use tables to store information in your code. I can go on and explain how to implement them in your scenario, but youtube has a lot of tutorials on round-based games which use the same gimmicks.
Join Queue: Make players who joined it go into a table
Current Game/Gamestart: make players who are in the table actually join the game and put all playing players into a playing table for the server to keep track of that
Player Dies: Remove player of the playing table and make them wait like the new players
End game: make all players die but also end the game timer thingy.
then make this a loop and done!
Answers:
its easy to make if you utilize tables correctly.
quick post, ima make a followup after school if you want