Raised This Month: $ Target: $400
 0% 

[Suggestion] get_players flags


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 12-27-2017 , 08:02   Re: [Suggestion] get_players flags
Reply With Quote #5

Quote:
Originally Posted by KliPPy View Post
We can't have it include "both" teams, because not all mods have 2 "main" teams and get_players() is a part of the Core, not CStrike.
Maybe if we change the prototype into
PHP Code:
native get_players(players[MAX_PLAYERS], &num, const flags[] = ""any:...); 
it would allow for
PHP Code:
new players[MAX_PLAYERS];
new 
playersCount;
get_players(playersplayersCount"e""TERRORIST""CT"); 
would also open up the possibility for more advanced flags in the future.
Also can be in this way, since amxx core can check the game teams.

Ps. you not need to check both teams since in loop can skip "SPECTATORS" and "HLTV"
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
 



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 23:20.


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