Może tak
#include <amxmodx>
#define VERSION "0.1"
new g_iMaxPlayers;
enum{
PPL_ONLINE,
PPL_CT,
PPL_T,
PPL_SPEC
};
public plugin_init(){
register_plugin("Ilosc Graczy", VERSION, "diablix");
g_iMaxPlayers = get_maxplayers();
set_task(1.0, "taskShowHud", 0, _, _, "b");
}
public taskShowHud(){
new iPlayers[32], iNum[4];
get_players(iPlayers, iNum[PPL_ONLINE]);
get_players(iPlayers, iNum[PPL_CT], "e", "CT");
get_players(iPlayers, iNum[PPL_T], "e", "TERRORIST");
get_players(iPlayers, iNum[PPL_SPEC], "e", "SPECTATOR");
set_hudmessage(0, 255, 32, 0.55, 0.04, 0, 1.1, 2.1, 1.0, 1.0, -1);
show_hudmessage(0, "Ilosc graczy online : %d / %d^nIlosc graczy CT : %d / %d^nIlosc graczy TT : %d / %d^nIlosc graczy na spekcie : %d / %d", iNum[PPL_ONLINE], g_iMaxPlayers, iNum[PPL_CT], g_iMaxPlayers, iNum[PPL_T], g_iMaxPlayers, iNum[PPL_SPEC], g_iMaxPlayers);
}
Jak nie to z modułem cstrike zrobię