#include #include #include #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) }