Raised This Month: $ Target: $400
 0% 

Num of players in a team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
† TheAngel †
New Member
Join Date: Jul 2010
Location: Romania, Bucharest
Old 11-28-2010 , 04:35   Num of players in a team
Reply With Quote #1

How do I find out the number of players in a team?

Sorry for asking such a stupid question, but searching in that huge list of functions is giving me headaches.

I want to have a variable that has the value of the number of players in a team, and updates itself everytime the number of players increases or decreases. And another variable of the same type for the other team.
† TheAngel † is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 11-28-2010 , 05:07   Re: Num of players in a team
Reply With Quote #2

A variable itself cannot self update. You have to catch a forward an adjust the variable accordingly.

You could try catching the TeamInfo event.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply



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 11:19.


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