AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Team Player Check (https://forums.alliedmods.net/showthread.php?t=128116)

RedRobster 05-29-2010 03:25

Team Player Check
 
I am trying to script something that would make an event once the last player on a team has died. I have written a part where once killed, the players move to spectator. So I need to add something that will balance the teams once one team is entirely gone. All that I need to know is how to check once that last player dies to make sure that he is the last player.

Alka 05-29-2010 03:37

Re: Team Player Check
 
Hook DeathEvent get player team, count his alive teammates and if number == 0 then his last. Maybe there are alternative ways but w/e.

RedRobster 05-29-2010 03:48

Re: Team Player Check
 
Thanks a bunch. I didn't even think about that when looking through the funcwiki. My mistake, but thank you.


All times are GMT -4. The time now is 05:19.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.