dimanche 29 juin 2014

Ending "rounds" and determining alive players

Hello, I am currently working on a FFA/TDM script, where I'm thinking about having so called "game rounds".



My thought is that in FFA everybody will be randomly scattered across a map with weapons, then they find eachother and kill eachother, and in TDM there will be one spawn for each team and they get to killeachother too, might add different objectives as time progresses.



When you die you will enter spectate mode and you can spectate people who are still alive, however I ran into the problem that when everybody are dead the script will bug out and there will be nobody to spectate, causing everybody to become stuck inside spectate mode.



I need some kind of function to see how many are still alive in a "round", and when one of the last two players kill the other, he/she will be deemed the winner of the round and will receive a reward.



It's similar to Counter-Strike DM modes without instant respawn.



Any help is appreciated.




Aucun commentaire:

Enregistrer un commentaire