Raised This Month: $ Target: $400
 0% 

HELP: How do I...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 07-14-2006 , 18:40   HELP: How do I...
Reply With Quote #1

i'm not sure how
but how do you get the number of players in a team
and then print it on print_chat (this part i know how to do)
do I have to use get_players with the "e" flag or something?
__________________
It's a mystery.
Mini_Midget is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 07-14-2006 , 23:05   Re: HELP: How do I...
Reply With Quote #2

Code:
new players[32], Tcount, CTcount; get_players(players,Tcount,"e","TERRORIST"); get_players(players,CTcount,"e","CT");
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 07-14-2006 , 23:57   Re: HELP: How do I...
Reply With Quote #3

you sure that works?
i just tested it but counts everyone
i was on ct and there were 2 guys on t's
it counted 3 people instead of 2 when i just wanted to count t's only
__________________
It's a mystery.

Last edited by Mini_Midget; 07-15-2006 at 00:38.
Mini_Midget is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 07-15-2006 , 22:41   Re: HELP: How do I...
Reply With Quote #4

He has both, counting T and CT...Just take it out
Code:
new players[32], Tcount; get_players(players,Tcount,"e","TERRORIST"); client_print(id,print_chat,"There's %i T's",Tcount)
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 07-16-2006 , 00:13   Re: HELP: How do I...
Reply With Quote #5

Quote:
Originally Posted by SixTwin
He has both, counting T and CT...Just take it out
Code:
new players[32], Tcount; get_players(players,Tcount,"e","TERRORIST"); client_print(id,print_chat,"There's %i T's",Tcount)
thats what i did but it counted ct's aswell
__________________
It's a mystery.
Mini_Midget is offline
Mini_Midget
Veteran Member
Join Date: Jan 2006
Location: It's a mystery.
Old 07-17-2006 , 03:33   Re: HELP: How do I...
Reply With Quote #6

heres what I tried to use it for
Code:
    new players[32], Tcount, zombies, real, bots     real = get_players(players,Tcount,"e","TERRORIST")     bots = get_cvar_num ("pb_minbots")     zombies = real + bots         client_print(0,print_chat,"%L",LANG_PLAYER,"ZOMBIEBOT_NUMBER",zombies)
I was hoping it counts the T's only but when there was only one bot on the other team and I was on ct, it says that there are 2 zombies instead!
__________________
It's a mystery.
Mini_Midget 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 07:55.


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