Advertisement
Guest User

riseofevo

a guest
Oct 18th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. #include <amxmodx>
  2.  
  3. public plugin_init() register_event("HLTV", "event_new_round", "a", "1=0", "2=0")
  4.  
  5. public event_new_round()
  6. {
  7. new players[32],num
  8. get_players(players,num,"ch")
  9. for(new i=0;i<num;i++)
  10. {
  11. new id=players[i]
  12.  
  13. print_cc(id, "!t# !nPornim Modul <!--= !gRISE OF DEATHRUN !n=--!>")
  14.  
  15. new nextmap[32],mapname[32]
  16. get_cvar_string("amx_nextmap", nextmap, 31)
  17. get_mapname(mapname, 31)
  18.  
  19. if (get_cvar_float("mp_timelimit"))
  20. {
  21. new timeleft = get_timeleft()
  22.  
  23. 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)
  24. else print_cc(id, "!g* !nNici o Limita a Timpului. Urmatoarea Harta: !t%s!n. Mapa curenta:!t %s", nextmap,mapname)
  25. }
  26. else print_cc(id, "!g* !nNici o Limita a Timpului. Urmatoarea Harta: !t%s!n. Mapa curenta:!t %s", nextmap,mapname)
  27. }
  28. }
  29.  
  30. print_cc(id, fmt[], any:...)
  31. {
  32. static saytext = 0, fake_user;
  33. if (!saytext)
  34. {
  35. saytext = get_user_msgid("SayText");
  36. fake_user = get_maxplayers() + 1;
  37. }
  38. new msg[192];
  39. vformat(msg, charsmax(msg), fmt, 3)
  40. replace_all(msg, sizeof(msg) - 1, "!g", "^x04");
  41. replace_all(msg, sizeof(msg) - 1, "!n", "^x01");
  42. replace_all(msg, sizeof(msg) - 1, "!t", "^x03");
  43. message_begin(id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, saytext, _, id);
  44. write_byte(id ? id : fake_user);
  45. write_string(msg);
  46. message_end();
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement