Detecting Team Players - 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: Detecting Team Players (
/showthread.php?tid=74295)
Detecting Team Players -
Green_Team - 21.04.2009
Hey everyone,
I am working on a team survival script but have come across problems. I need to detect when all the players from a certain team have died.
How would i got about doing this?
Thank you
Green_Team
Re: Detecting Team Players -
maij - 21.04.2009
create a variable that holds the status if they are dead yes or no,
then onplayerdeath, loop through the targets team variables, and if they are all 1, or "yes" or whatever, that means ur teammates are dead.