Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. #include <amxmodx>
  2. #include <amxmisc>
  3.  
  4. #define AUTHOR "Ever"
  5.  
  6. public plugin_init()
  7. {
  8. register_plugin("Wymuszanie FPS, interpu", "1.0", AUTHOR)
  9.  
  10. register_event("HLTV", "main", "a", "1=0", "2.0")
  11. }
  12.  
  13. public main()
  14. {
  15. new player[32], count;
  16. get_players(player, count)
  17.  
  18. new interp = get_cvar_num("amx_interp_style")
  19.  
  20. if(interp == 1 )
  21. {
  22. for (new i = 1; i <= count; i++)
  23. console_cmd (i, "rate 25000; wait; cl_updaterate 101; wait; cl_cmdrate 101; wait; ex_interp 0.01; wait; fps_max 399")
  24. }
  25.  
  26. else
  27. {
  28. for (new i = 1; i <= count; i++)
  29. {
  30. console_cmd(i, "rate 25000")
  31. server_cmd("wait")
  32.  
  33. console_cmd(i, "cl_updaterate 101")
  34. server_cmd("wait")
  35.  
  36. console_cmd(i, "cl_cmdrate 101")
  37. server_cmd("wait")
  38.  
  39. console_cmd(i, "ex_interp 0.01")
  40. server_cmd("wait")
  41.  
  42. console_cmd(i, "fps_max 399")
  43. }
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement