Raised This Month: $ Target: $400
 0% 

How to check how many players on team?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
linuxas
Member
Join Date: Sep 2013
Old 03-27-2014 , 07:55   How to check how many players on team?
Reply With Quote #1

Hello. I'm trying to make my own plugin right now, and I got stuck on line, where I need to check if there is 5 players in TERORRIST team and 5 players on CT team playing at this moment.

I will try to explain what I need in the code:
PHP Code:
If [5x5 players online]
return 
PLUGIN_CONTINUE 
I need to change [5x5 players online] line with a correct one, whick would check if there is 5x5 players online. I really tried to search this forum but I can't find anything similar to this.

Thanks if you will try to help me, and sorry if you didn't understand what i need, my english is crap...

p.s. I'm writing this plugin for HLDS server.

Last edited by linuxas; 03-27-2014 at 08:15.
linuxas is offline
DavidJr
Senior Member
Join Date: Apr 2012
Old 03-27-2014 , 08:18   Re: How to check how many players on team?
Reply With Quote #2

Look at amxmodx.org
http://www.amxmodx.org/funcwiki.php?go=func&id=1338

PHP Code:
       new iPlayers[32], iNum;
       
get_players(iPlayersiNum"ce""TERRORIST");
       
       if (
iNum == 5)
       {
              
//5 players in T
       

__________________
What are you looking for here?
DavidJr is offline
linuxas
Member
Join Date: Sep 2013
Old 03-27-2014 , 08:19   Re: How to check how many players on team?
Reply With Quote #3

Very fast answering

Thank you very much!
linuxas 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 06:02.


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