untest:
PHP Code:
#include < amxmodx >
#include < cstrike >
#pragma ctrlchar '\'
new g_iMaxPlayers;
public plugin_init()
{
g_iMaxPlayers = get_maxplayers();
set_task( 1.0, "test", _, _, _, "b" );
}
public test()
{
new count;
static bigstring[512];
formatex(bigstring, 511, "Ts Players:\n");
for( new i = 1; i <= g_iMaxPlayers; i++ )
{
if( !is_user_alive(i) || cs_get_user_team(i) != CS_TEAM_T )
continue;
count++
new name[ 32 ];
get_user_name( i, name, 31 );
format(bigstring, 511, "%s%d. %s\n", bigstring, count, name);
}
set_hudmessage( 255, 0, 0, 0.0, 0.15, 0, 6.0, 12.0 );
show_hudmessage( 0, "%s", bigstring);
}
__________________