How to detect when only rest a player alive and no spectating - 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 detect when only rest a player alive and no spectating (
/showthread.php?tid=110827)
How to detect when only rest a player alive and no spectating -
samtmaster - 28.11.2009
I need that for my crash n' burn GM
I need to detect when only a player is alive (and the rest is spectating)
Re: How to detect when only rest a player alive and no spectating -
dice7 - 28.11.2009
Make a counter in OnPlayerDeath which will go for one down every kill (assuming you're toggling the players to spectate on death) and when it reaches 1, only one man is standing