Raised This Month: $32 Target: $400
 8% 

[Suggestion] get_players flags


Post New Thread Reply   
 
Thread Tools Display Modes
PartialCloning
Senior Member
Join Date: Dec 2015
Old 01-23-2018 , 03:46   Re: [Suggestion] get_players flags
Reply With Quote #11

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.
That would greatly improve the get_players native. Do you plan on adding this at all? Calling get_players twice to get the count is not too bad but most of the time you want all the players to be in the same "players" array and it would be nice if it was as simple as "get_players(players, playersCount, "e", "TERRORIST", "CT");".
PartialCloning 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 15:58.


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