Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- public plugin_init()
- {
- register_plugin("Informatii in hud", "1.0", "StefaN@CSX");
- set_task(1.0, "info_hud",_,_,_,"b");
- }
- public info_hud()
- {
- new hostname[62], map[32], timeleft = get_timeleft(), ora[10];
- get_cvar_string("hostname", hostname, charsmax(hostname))
- get_mapname(map, charsmax(map))
- get_time("%H:%M:%S", ora, charsmax(ora))
- set_hudmessage(random_num(0, 50), random_num(0, 50), random_num(0, 50), -1.0, 0.02)
- show_hudmessage(0, "DNS: %s^n Harta: %s | Timp ramas: %d:%02d | Ora: %s", hostname, map, timeleft / 60, timeleft % 60, ora)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement