Raised This Month: $ Target: $400
 0% 

...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hectorz0r
Senior Member
Join Date: Oct 2008
Old 11-19-2009 , 11:32   ...
Reply With Quote #1

...
__________________


Last edited by hectorz0r; 04-09-2010 at 16:54.
hectorz0r is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-19-2009 , 12:00   Re: detect how many players are currently in a team
Reply With Quote #2

Code:
#include < amxmodx > #include < cstrike > new g_iMaxplayers; public plugin_init( ) {     g_iMaxplayers = get_maxplayers( ); } stock GetPlayersInTeam( CsTeams:Team ) {     new iNoobs;         for( new id = 1; id <= g_iMaxplayers; id++ ) {         if( is_user_connected( id ) && cs_get_user_team( id ) == Team )             iNoobs++;     }         return iNoobs; }
Code:
if( GetPlayersInTeam( CS_TEAM_CT ) >= 10 ) {     // [ ... ] }
__________________
xPaw is offline
hectorz0r
Senior Member
Join Date: Oct 2008
Old 11-19-2009 , 12:04   Re: detect how many players are currently in a team
Reply With Quote #3

...
__________________


Last edited by hectorz0r; 04-09-2010 at 16:56.
hectorz0r is offline
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 13:40.


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