Restrict FPS of specific player
Hello everyone. I have rather peculiar problem. There is a guy on my server who is playing on very high fps and he is doing something called SGS (stand-up ground strafing) and some sort of parachute shenaningans.
He is ruining experience for some of the players and I want to force limit his FPS to 100. I've made an attempt to make a plugin that stops him, but for some reason whenever he joins it also automatically kicks everyone whose fps is above 100. But in this case he is the only threat actor here so I only care that he has 100 FPS max. Here is the code I've made: PHP Code:
|
Re: Restrict FPS of specific player
You're executing query_client_cvar() on all players instead of the threath itself. Don't loop through all player, just target the threat itself and act accordingly.
PHP Code:
|
Re: Restrict FPS of specific player
cvars can be faked, instead there are better ways to check for high fps.
|
Re: Restrict FPS of specific player
@deprale show us your cards
|
Re: Restrict FPS of specific player
I have changed my code, there are no useless loops anymore:
PHP Code:
|
Re: Restrict FPS of specific player
The script has 2 methods. Feel free to use or cannibalize.
https://github.com/djearthquake/amxx...eck_finale.sma |
Re: Restrict FPS of specific player
query_client_cvar not is very reliable I read it for there
|
Re: Restrict FPS of specific player
in client_PreThink, measure the time between current think and last think to get accurate player fps
|
All times are GMT -4. The time now is 15:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.