Raised This Month: $ Target: $400
 0% 

Modindependent way to count team and enemies?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Isobold
Veteran Member
Join Date: Mar 2004
Old 01-27-2007 , 07:24   Modindependent way to count team and enemies?
Reply With Quote #1

Is there a mod independent / generic way to count players per team? I need to know at player respawn, how much players I have in each team and than to decide for each player what to do with him, depending on his team and the player number in each team ...

I could easily do this with cs or dod, but how to do this with any mod?

Is get_players still my friend in this case or do I have to add some code lines for each mod?

get_user_team is quite good to have a generic way to get a players team, but how to know which teams exist to count the number of players in each team? I would really not like to use some "pre parse" on each respawn of a player to get to know, which teams exist and than to count how many players are in there ...

Last edited by Isobold; 01-27-2007 at 07:58.
Isobold is offline
 



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 22:27.


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