Licznik rund
arojda
14.07.2010
Poszukuje pluginu, który na środku liczy rundy np. Przygotuj się 1 runda (cos takiego).
AmD
14.07.2010
sprawdź:
#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)
}