Kod:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Zombie - odliczanie"
#define VERSION "1.0"
#define AUTHOR "peku33"
new odliczanie = 12 //get_cvar_num("zp_delay");
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_logevent("zp_start_odliczania", 2, "1=Round_Start")
}
public zp_start_odliczania()
{
new czas = 12 //get_cvar_num("zp_delay");
set_task(1.0, "zp_pokaz", 0, _, _, "a", czas);
}
public zp_pokaz()
{
set_hudmessage(255, 0, 0, 0.0, 0.0, 0, 6.0, 12.0)
show_hudmessage(0, "Do wybrania zombie pozostalo: %d sekund", odliczanie)
//client_print(0, print_chat, "Do wybrania zombie pozostalo: %d sekund", odliczanie);
odliczanie--;
if (odliczanie==0) odliczanie = 12;
}