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

[SOLVED] How do I block this script (Video)


Post New Thread Reply   
 
Thread Tools Display Modes
The Professional
Member
Join Date: Nov 2015
Location: İstanbul
Old 12-15-2016 , 12:38   Re: [Help] How do I block this script (Video)
Reply With Quote #12

I think this fps hack... If so, does this work?

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

public plugin_init() 
{
    
register_plugin"query cvar test" "1.0" "vamp" );
    
register_event"ItemPickup""age_check_all_users_cvars""b");
}
public 
client_putinserver(id
{
   
check_specific_user_cvars(id);
   return 
PLUGIN_CONTINUE;
}
public 
age_cvar_check_fps_max(id, const szCvar, const szValue[]) 
{          
   new 
Float:fValue str_to_float(szValue);
   if( 
fValue 125.0 ) {  
   new 
name[32];
   
get_user_name(id,name,31);
   
client_print(0,print_chat,"Ehll - %s has been kicked for having more then 125 fps !"name);
   
server_cmd("kick #%d for having more then 125 fps !"get_user_userid(id));
  }
}
public 
Netcvarid , const cvar[], const szrValue[])
{
   
client_printprint_chat "value=%s" szrValue );  
}
public 
check_specific_user_cvars(id
{
   
query_client_cvarid "fps_max" "age_cvar_check_fps_max" );
   
query_client_cvarid "fps_modem" "age_cvar_check_fps_max" );
   
query_client_cvarid "cl_cmdrate" "Netcvar" );
   return 
PLUGIN_CONTINUE;
}
public 
age_check_all_users_cvars () 
{
   new 
players[32], numplayersid;
   
get_players playersnumplayers );
   for ( new 
i=0i<numplayersi++ ) {
   
id=players[i];
   
check_specific_user_cvarsid );
  }

__________________
The Professional is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-15-2016 , 13:35   Re: [Help] How do I block this script (Video)
Reply With Quote #13

I never used query cvars so i don't really know how to use them efficiently
Probably the best would be to check on client connect/putinserver and on client info changed for the cvars

Let's hope a mod comes around and throws us a bone
__________________
Depresie is offline
Old 12-15-2016, 14:37
The Professional
This message has been deleted by The Professional.
Old 12-15-2016, 15:21
The Professional
This message has been deleted by The Professional.
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 16:01.


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