#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#define PLUGIN "runda"
#define VERSION "1.0"
#define AUTHOR "AmD"
new rounds, hudhandler
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "client_spawn", 1)
register_logevent("round_end", 2, "1=Round_End")
register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/)
hudhandler = CreateHudSyncObj()
}
public round_end()
{
rounds ++
}
public restart_roundsnum()
{
rounds = 0
}
public client_spawn(id)
{
set_hudmessage(random_num(0,255), random_num(0,255), random_num(0,255), -1.0, 0.3, 2, 0.5, 5.0)
ShowSyncHudMsg(id, hudhandler, "= Rozpoczyna sie Runda %d =", rounds)
}
Lub
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
new runda
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV", "nowa_round", "a", "1=0", "2=0")
odliczanie()
}
public odliczanie()
{
runda = 1
set_hudmessage(0, 255, 255, 0.22, 0.38, 0, 6.0, 12.0)
show_hudmessage(0, "Zaczynamy zabawe!!! Runda 1")
}
public nowa_runda()
{
runda++
set_hudmessage(0, 255, 255, 0.22, 0.38, 0, 6.0, 12.0)
show_hudmessage(0, "Runda %s", runda)
}
Albo w amxmodmenu jest opcja na włączenie liczniku rund (Ustawienia statystyk->licznik rund)