SA-MP Forums Archive
How to count the last player alive in a mission? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to count the last player alive in a mission? (/showthread.php?tid=188125)



How to count the last player alive in a mission? - ZamaXor - 06.11.2010

I don't know how to make this system so if players is the last in a mission he wins.


Re: How to count the last player alive in a mission? - Kyle - 06.11.2010

Do a loop of all players, In the loop check if each player is alive.
If someone is alive do a var saving his id.


Re: How to count the last player alive in a mission? - ZamaXor - 06.11.2010

Quote:
Originally Posted by KyleSmith
Посмотреть сообщение
Do a loop of all players, In the loop check if each player is alive.
If someone is alive do a var saving his id.
I dont know how to do it? Maybe you can?