Raised This Month: $ Target: $400
 0% 

Team Player Check


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 05-29-2010 , 03:25   Team Player Check
Reply With Quote #1

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.
RedRobster is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 05-29-2010 , 03:37   Re: Team Player Check
Reply With Quote #2

Hook DeathEvent get player team, count his alive teammates and if number == 0 then his last. Maybe there are alternative ways but w/e.
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
RedRobster
Veteran Member
Join Date: Apr 2010
Location: Your Closet
Old 05-29-2010 , 03:48   Re: Team Player Check
Reply With Quote #3

Thanks a bunch. I didn't even think about that when looking through the funcwiki. My mistake, but thank you.
RedRobster is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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