#include <amxmodx>
#include <hamsandwich>
new round_num;
public plugin_init() {
register_event("HLTV", "Event_HLTV", "a", "1=0", "2=0");
register_event("TextMsg", "Event_Game_Commencing", "a", "2=#Game_Commencing");
RegisterHam(Ham_Spawn, "player", "Ham_Player_Spawn", 1);
}
public Event_HLTV() {
round_num++;
server_print("Раунд = %d.", round_num);
}
public Event_Game_Commencing() {
round_num = 0;
server_print("Раунд = 0.");
}
public Ham_Player_Spawn(id) {
if(round_num >= 3) {
server_print("Раунд > или = 3.");
}
}