Raised This Month: $51 Target: $400
 12% 

200 fps = kick


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stefanos
Senior Member
Join Date: May 2020
Old 10-04-2020 , 16:30   200 fps = kick
Reply With Quote #1

if plugin detects that player in one moment have more than 200 fps, he immediately got kicked with reason "Do not use more fps than 100(fps_max 100)"
Stefanos is offline
Mankled
Senior Member
Join Date: Oct 2019
Old 10-04-2020 , 19:56   Re: 200 fps = kick
Reply With Quote #2

Quote:
Originally Posted by Stefanos View Post
if plugin detects that player in one moment have more than 200 fps, he immediately got kicked with reason "Do not use more fps than 100(fps_max 100)"
why some server dont allow to use more than 100 fps?
Mankled is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-04-2020 , 22:49   Re: 200 fps = kick
Reply With Quote #3

Quote:
Originally Posted by Stefanos View Post
if plugin detects that player in one moment have more than 200 fps, he immediately got kicked with reason "Do not use more fps than 100(fps_max 100)"
Spoiler


Code:
#include amxmodx new iFps_kick; public plugin_init() {     register_plugin("FPS kick", "1.0", "SPiNX");     iFps_kick = register_cvar("fps_kick","200") } public client_command(id) {     if(is_user_connected(id) && !is_user_bot(id) )         query_client_cvar(id, "fps_max", "cvar_result_func"); } public cvar_result_func(id, const cvar[], const value[]) {     if(equali(cvar,"fps_max") && str_to_num(value) > get_pcvar_num(iFps_kick) || !is_str_num(value) )         server_cmd("kick #%d Your %s is %i. Do not use over %i", get_user_userid(id), cvar, str_to_num(value), get_pcvar_num(iFps_kick)); }
__________________

Last edited by DJEarthQuake; 04-25-2023 at 11:12. Reason: updated
DJEarthQuake is offline
amirwolf
Senior Member
Join Date: Feb 2019
Location: Iran
Old 10-10-2020 , 15:49   Re: 200 fps = kick
Reply With Quote #4

Hello
How can I kick fps below 30?
__________________
amirwolf is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-10-2020 , 18:50   Re: 200 fps = kick
Reply With Quote #5

Change > to <. Then the kick message to under instead of over.
__________________
DJEarthQuake is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-10-2020 , 22:36   Re: 200 fps = kick
Reply With Quote #6

Couldn't someone have their fps_max set to 1000 or something, but only get 60? I don't think it's valid to use fps_max since that does not give you their actual FPS.
__________________
Bugsy is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-10-2020 , 23:15   Re: 200 fps = kick
Reply With Quote #7

Exactly. Showing up with fps_max 1000 and fps_override 0.

The script stops the precursor of setting it to go that high or low in the first place.
__________________

Last edited by DJEarthQuake; 03-22-2021 at 10:01.
DJEarthQuake is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:02.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode