Advertisement
Guest User

info_hud2

a guest
May 10th, 2015
723
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. public plugin_init()
  4. {
  5. register_plugin("Informatii in hud", "1.0", "StefaN@CSX");
  6.  
  7. set_task(1.0, "info_hud",_,_,_,"b");
  8. }
  9.  
  10. public info_hud()
  11. {
  12. new hostname[62], map[32], timeleft = get_timeleft(), ora[10];
  13.  
  14. get_cvar_string("hostname", hostname, charsmax(hostname))
  15. get_mapname(map, charsmax(map))
  16. get_time("%H:%M:%S", ora, charsmax(ora))
  17.  
  18.  
  19. set_hudmessage(random_num(0, 50), random_num(0, 50), random_num(0, 50), -1.0, 0.02)
  20. show_hudmessage(0, "DNS: %s^n Harta: %s | Timp ramas: %d:%02d | Ora: %s", hostname, map, timeleft / 60, timeleft % 60, ora)
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement