Need Help to Make Last Man Standing Death match
#1

Hi guys i need help to make a Last man standing death match

1. The point is every player who dies remain outside the game untill there remain only one player in the game and
that player is declared winner

Any ideas? i know how to make a player not to spawn again if he dies

2. Also help me if a player dies how to make him spectate the remaining players in Last man standing death match

What will be the loops we will use??
and what else can be done to get the above two points done
Reply
#2

1) Loop through all the players and check the total number of players who're in LMS. If the count is 1, get his name and id and announce that he's the winner. Don't forget to end the LMS in this step
2) PlayerSpectatePlayer - Search wiki?
Reply
#3

Use custom iterators in foreach to keep track of the alive players. This way you can easily count them and it gives you the option to easily find the next person to spectate.
Reply
#4

Vince can u tell me how can i use it?
means can u make some code and post here plz?
Reply
#5

Quote:
Originally Posted by Vince
Посмотреть сообщение
Use custom iterators in foreach to keep track of the alive players. This way you can easily count them and it gives you the option to easily find the next person to spectate.
good advice bro!
Reply
#6

Any help please can someone make a code for loop and post here so we get help from it and understand the way for looping it
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)