Raised This Month: $ Target: $400
 0% 

Get all name from a players.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 03-09-2010 , 13:51   Re: Get all name from a players.
Reply With Quote #4

Edit: tested and working

PHP Code:
#include < amxmodx >
#include < cstrike >

#pragma ctrlchar '\'

new g_iMaxPlayers;

public 
plugin_init()
{
    
g_iMaxPlayers get_maxplayers();
    
set_task1.0"test"___"b" );
}

public 
test()
{
    new 
count iPos;
    static 
bigstring[512] , name33 ];

    
iPos formatex(bigstring511"Ts Players:\n");
    
    for( new 
1<= g_iMaxPlayersi++ ) 
    {
        if( !
is_user_alive(i) || cs_get_user_team(i) != CS_TEAM_T )
            continue;

        
get_user_nameiname32 );
        
        
iPos += formatex(bigstringiPos ] , 511-iPos"%d. %s\n", ++countname);        
    }
    
    
set_hudmessage255000.00.1506.012.0 );
    
show_hudmessage0bigstring );

__________________

Last edited by Bugsy; 03-09-2010 at 19:58.
Bugsy 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 08:48.


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