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

Kz Cvar Checker - Fps radius


Post New Thread Reply   
 
Thread Tools Display Modes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-21-2009 , 09:06   Re: Kz Cvar Checker - Fps radius
Reply With Quote #11

Quote:
Originally Posted by ConnorMcLeod View Post
Ah yes, sorry, was for developer cvar.

So, just change the check != 101 to !(100 <= value <= 101)
how to do it right because there other cvars checks too -_-
__________________
xPaw is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 03-21-2009 , 18:22   Re: Kz Cvar Checker - Fps radius
Reply With Quote #12

Quote:
Originally Posted by AntiBots View Post
%.0f -> %.1f
Better to do %i and use floatround() since it was intended with 0 decimals.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
joyceteamo
Member
Join Date: Jan 2013
Old 01-29-2013 , 02:12   Re: Kz Cvar Checker - Fps radius
Reply With Quote #13

Xpaw you could edit the plugin .. By the limit fps_max 333 developer 1 and fps_modem 333? I would be very grateful!

PHP Code:
/*    Copyright © 2008, ConnorMcLeod 

    Check Kz Players Cvars is free software; 
    you can redistribute it and/or modify it under the terms of the 
    GNU General Public License as published by the Free Software Foundation. 

    This program is distributed in the hope that it will be useful, 
    but WITHOUT ANY WARRANTY; without even the implied warranty of 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    GNU General Public License for more details. 

    You should have received a copy of the GNU General Public License 
    along with Check Rates; if not, write to the 
    Free Software Foundation, Inc., 59 Temple Place - Suite 330, 
    Boston, MA 02111-1307, USA. 
*/ 

#include <amxmodx> 

#define PLUGIN "Check Kz Players Cvars" 
#define AUTHOR "ConnorMcLeod" 
#define VERSION "0.1.3" 

#define _LOG 

#define SVC_DISCONNECT    2 

#define NULL_FLOAT        0.000000 
#define MAX_FPSMAX        101.0 
#define MAX_SPEED        400.0 
new const g_szCvars[][] =           {"developer""fps_max" "fps_modem""cl_sidespeed""cl_forwardspeed""cl_backspeed"
new const 
Float:g_flCvarsValues[] = {NULL_FLOAT MAX_FPSMAX,  NULL_FLOAT,   MAX_SPEED   ,     MAX_SPEED    ,   MAX_SPEED   

new 
g_iCvarNum 

public plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
    
register_dictionary("kzcvars.txt"
    
g_iCvarNum sizeof(g_szCvars


public 
client_putinserver(id

    
set_task(0.1"FirstCheck"id


public 
FirstCheck(id

    for(new 
ii<g_iCvarNumi++) 
    { 
        
CheckClientCvar(idg_szCvars[i]) 
    } 


public 
Recheck(parm[]) 

    new 
id parm[0
    if( 
is_user_connected(id) ) 
    { 
        
CheckClientCvar(idg_szCvars[parm[1]], 1
    } 


CheckClientCvar(id, const szCvar[], iSecondCheck=0

    static 
recheck[1
    
recheck[0] = iSecondCheck 
    query_client_cvar
(idszCvar"ClientCvarResult"1recheck


public 
ClientCvarResult(id, const szCvar[], const szValue[], const recheck[]) 

    
#if defined _LOG 
        
static const szLogFile[] = "KzPlayersCvars.log" 
    
#endif 
    
if( equal(szValue"Bad CVAR request") ) 
    { 
        
#if defined _LOG 
            
log_to_file(szLogFile"%s is not a (catchable) client cvar"szCvar
        
#endif 
        
return 
    } 
     
    for(new 
ii<g_iCvarNumi++) 
    { 
        if( 
equal(szCvarg_szCvars[i]) ) 
        { 
            new 
Float:flMaxVal g_flCvarsValues[i
            if( 
str_to_float(szValue) != flMaxVal 
            { 
                if( 
recheck[0] ) 
                { 
                    
#if defined _LOG 
                        
new szName[32], szAuthid[20
                        
get_user_name(idszName31
                        
get_user_authid(idszAuthid19
                        
log_to_file(szLogFile"<%s><%s><%s><%s>"szNameszAuthidszCvarszValue
                    
#endif 
                    
new szReason[128
                    
formatex(szReason127"%L"id"KZCVAR_KICK_REASON"szCvarszValueflMaxValszCvar
                    
kick_user(idszReason
                } 
                else 
                { 
                    
client_cmd(id"%s %.0f;alias %s"szCvarflMaxValszCvar
                    new 
parms[2
                    
parms[0] = id 
                    parms
[1] = 
                    set_task
(0.1"Recheck"id+(32*i), parms2
                } 
            } 
            else if( !
recheck[0] ) 
            { 
                
client_cmd(id";alias %s"szCvar
            } 
            break 
        } 
    } 


kick_user(id, const szKickMsg[]) 

    
emessage_begin(MSG_ONESVC_DISCONNECT_id// oranguntanz 
    
ewrite_string(szKickMsg
    
emessage_end() 


Last edited by joyceteamo; 01-29-2013 at 02:27.
joyceteamo is offline
DrrunoX
Junior Member
Join Date: Nov 2012
Old 01-29-2013 , 07:15   Re: Kz Cvar Checker - Fps radius
Reply With Quote #14

Please guys, pass link of this plugin.
DrrunoX is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-29-2013 , 12:24   Re: Kz Cvar Checker - Fps radius
Reply With Quote #15

Quote:
Originally Posted by DrrunoX View Post
Please guys, pass link of this plugin.
https://forums.alliedmods.net/showpo...1&postcount=13
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
kileedyg2
BANNED
Join Date: Jul 2012
Old 02-13-2013 , 05:40   Re: Kz Cvar Checker - Fps radius
Reply With Quote #16

the best way to detect fps hacks w/o slowhacking and if client somehow finds out to hide cvars.

PHP Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init() {
    
register_plugin("Anti developer""v1""Serious Spot a.k.a kileedyg @ amxmodx.lt")
    
    
register_forward(FM_CmdStart"fw_CmdStart")
}

public 
fw_CmdStart(iduc_handle) {
    if (
get_uc(uc_handleUC_Msec) <10.0) { // frametime is below 0.01sec (more fps than 100)
        // if fps more than 100.0, action???
    
}

kileedyg2 is offline
Send a message via Skype™ to kileedyg2
vhz
New Member
Join Date: May 2012
Old 05-11-2015 , 10:31   Re: Kz Cvar Checker - Fps radius
Reply With Quote #17

How i can block fps in 99.5?
case when i change the value 101 to 99.5 server kick me, case i dont have 99 so i changed bad the settings..
vhz is offline
Freezo Begin
BANNED
Join Date: Mar 2014
Location: Morocco
Old 05-11-2015 , 11:34   Re: Kz Cvar Checker - Fps radius
Reply With Quote #18

I just copy this code .

Code:
new fps[33] new Float: systime[33] public client_PreThink(id){         new Float: gametime = get_gametime()         fps[id] = floatround(1.0/(gametime-systime[id]));         systime[id] = gametime; }

as you see new fps[33] is a global var , so just make a statement if in your events . . .

Last edited by Freezo Begin; 05-11-2015 at 11:35.
Freezo Begin 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 13:12.


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