Raised This Month: $ Target: $400
 0% 

Player Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
f1del1ty.oXi
Veteran Member
Join Date: Nov 2004
Old 01-20-2005 , 17:51  
Reply With Quote #2

Your asking for the code to get the players in your server?

You could look in the include files, but you may not like that, because, well, no one ever does. =\

If that's the case, I'd think it's:

Code:
get_players(g_menuPlayers[id],g_menuPlayersNum[id])
From amxmisc.inc

/* Returns number of players put in server.
* If flag is set then also connecting are counted. */
native get_playersnum(flag=0);

/* Sets indexes of players.
* Flags:
* "a" - don't collect dead players.
* "b" - don't collect alive players.
* "c" - skip bots.
* "d" - skip real players.
* "e" - match with team.
* "f" - match with part of name.
* "g" - ignore case sensitivity.
* Example: Get all alive CTs: get_players(players,num,"ae","CT") */
native get_players(players[32], &num ,const flags[]="", const team[]="");

I think that's what you need.
__________________
f1del1ty.oXi is offline
 



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


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