Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- public plugin_init() register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
- public event_new_round()
- {
- new players[32],num
- get_players(players,num,"ch")
- for(new i=0;i<num;i++)
- {
- new id=players[i]
- print_cc(id, "!t# !nPornim Modul <!--= !gRISE OF DEATHRUN !n=--!>")
- new nextmap[32],mapname[32]
- get_cvar_string("amx_nextmap", nextmap, 31)
- get_mapname(mapname, 31)
- if (get_cvar_float("mp_timelimit"))
- {
- new timeleft = get_timeleft()
- if (timeleft > 0) print_cc(id, "!n[!gi!n] Timp Ramas: !t%d:%02d !n. Urmatoarea Harta: !g%s!n. Mapa curenta:!t %s",(timeleft / 60), (timeleft % 60), nextmap,mapname)
- else print_cc(id, "!g* !nNici o Limita a Timpului. Urmatoarea Harta: !t%s!n. Mapa curenta:!t %s", nextmap,mapname)
- }
- else print_cc(id, "!g* !nNici o Limita a Timpului. Urmatoarea Harta: !t%s!n. Mapa curenta:!t %s", nextmap,mapname)
- }
- }
- print_cc(id, fmt[], any:...)
- {
- static saytext = 0, fake_user;
- if (!saytext)
- {
- saytext = get_user_msgid("SayText");
- fake_user = get_maxplayers() + 1;
- }
- new msg[192];
- vformat(msg, charsmax(msg), fmt, 3)
- replace_all(msg, sizeof(msg) - 1, "!g", "^x04");
- replace_all(msg, sizeof(msg) - 1, "!n", "^x01");
- replace_all(msg, sizeof(msg) - 1, "!t", "^x03");
- message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, saytext, _, id);
- write_byte(id ? id : fake_user);
- write_string(msg);
- message_end();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement