#include <amxmodx>
#include <amxmisc>
#define TASK_END 32515
#define PLUGIN "New plug-in"
#define VERSION "1.0"
#define AUTHOR "author"
new rounds
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_logevent("round_end", 2, "1=Round_End")
register_event("TextMsg","restart_roundsnum","a","2&#Game_C"/*,"2&#Game_w"*/)
set_task(0.1, "hud",TASK_END,_,_,"b");
}
public round_end()
{
rounds ++
}
public restart_roundsnum()
{
rounds = 0
}
public hud()
{
if(rounds == 1 || rounds == 8 || rounds == 15)
{
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0);
show_hudmessage(0, "|Dzien: Poniedzialek|(%d)",rounds);
}
else if(rounds == 2 || rounds == 9)
{
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0);
show_hudmessage(0, "|Dzien: Wtorek|(%d)",rounds);
}
else if(rounds == 3 || rounds == 10)
{
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0);
show_hudmessage(0, "|Dzien: Sroda|(%d)",rounds);
}
else if(rounds == 4 || rounds == 11)
{
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0);
show_hudmessage(0, "|Dzien: Czwartek|(%d)",rounds);
}
else if(rounds == 5 || rounds == 12)
{
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0);
show_hudmessage(0, "|Dzien: Piatek|(%d)",rounds);
}
else if(rounds == 6 || rounds == 13)
{
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0);
show_hudmessage(0, "|Dzien: Sobota|(%d)",rounds);
}
else if(rounds == 0 || rounds == 7 || rounds == 14)
{
set_hudmessage(255, 0, 0, 0.3, -1.0, 2, 0.5, 5.0);
show_hudmessage(0, "|Dzien: Niedziela|(%d)",rounds);
}
}
proszę
Użytkownik Nltj edytował ten post 18.08.2014 20:08