Stock to detect when a team dies
Hello everyone, well as the title says does anyone have or could make a stock to detect when all the players of a team die? what i want to do is use the stock in an if to do something, an example:
PHP Code:
|
Re: Stock to detect when a team dies
You can easily hook when a team wins, if that solves your problem. The below will handle when all players die on a particular team.
PHP Code:
|
Re: Stock to detect when a team dies
thanks for your help but I use infinite round (from a module of dias called InfinityGame) so I need a stock that is called in an if to detect when a team is dead and finish the round, that's how I use it but sometimes it doesn't work and bug the round.
PHP Code:
|
Re: Stock to detect when a team dies
Then my above code will work.. It will fire AllPlayersDead() when all players on csDeadTeam team are dead.
|
Re: Stock to detect when a team dies
ok thanks, so that would be correct using your method right?
PHP Code:
|
Re: Stock to detect when a team dies
No, this should do it:
PHP Code:
|
All times are GMT -4. The time now is 05:59. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.