Tessék:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#define PLUGIN "HUD Info"
#define VERSION "1.0"
#define AUTHOR "N/A"
#define MAXROUNDS 40
new Rounds
new iCTKills
new iTTKills
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event( "DeathMsg", "DeathEvent", "a" );
register_event("TextMsg","ResetAll","a","2&#Game_C","2&#Game_w")
register_logevent("NewRounds", 2, "0=World triggered", "1=Round_Start")
set_task(1.0,"HUDInfo" , _ , _ , _ , "b")
}
public ResetAll() {
Rounds = 0
iCTKills = 0
iTTKills = 0
}
public DeathEvent(){
new Killer = read_data( 1 );
new CsTeams:Team
Team = cs_get_user_team( Killer );
if (Team == CS_TEAM_T)
{
iTTKills++
}
if (Team == CS_TEAM_CT)
{
iCTKills++
}
}
public NewRounds(){
Rounds++
}
public HUDInfo(){
new Time[9]
get_time("%H:%M",Time,8)
new CurrentPlayers = get_playersnum();
new MaxPlayers = get_maxplayers();
set_hudmessage(random(255),random(255),random(255), 0.0, 0.19, 1, 6.0, 12.0)
show_hudmessage(0, "Frags of T: %d^nFrags of CT: %d^nJátékosok: %d/%d", iTTKills, iCTKills, CurrentPlayers, MaxPlayers)
}