Raised This Month: $ Target: $400
 0% 

Client info changed


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
butthead
Member
Join Date: May 2007
Location: Nitra, Slovakia
Old 12-23-2008 , 05:27   Re: Client info changed
Reply With Quote #7

Hi alien, thx I understand ... but I need to fix client cheats (cl_sidespeed, developer, fps_max), just for these cvars responds only to change 'info' structure...

Trying another way.. It may be as follows?
PHP Code:
public client_putinserver(id) {

    new 
param[1];param[0] = id
   
    set_task
(3.0"checkCvars"idparam1"b")

public 
checkCvars(param[]) {

    new 
id param[0]
    
    if(!
is_user_alive(id)) {
        return
    }    
    
    
query_client_cvar(id"cl_sidespeed""ClientCvarResult")
    
query_client_cvar(id"developer""ClientCvarResult")
    
query_client_cvar(id"fps_max""ClientCvarResult")    

}

public 
ClientCvarResult(id, const cvar[], const value[]) {

    new 
name[32], auth[32]
    
    
get_user_name(idname31)
    
get_user_authid(idauth31)
    
    if(
equal(cvar"cl_sidespeed") && str_to_num(value) != 400) {
        
        
log_amx("Check sidespeed change >>>> Nick: %s / steam id: %s /// change to value: %s"nameauthvalue)
        
client_cmd(id,"cl_sidespeed 400")

    }
    if(
equal(cvar"developer") && str_to_num(value) != 0) {
        
        
log_amx("Check developer change >>>> Nick: %s / steam id: %s /// change to value: %s"nameauthvalue)
        
client_cmd(id,"developer 0")

    }
    if(
equal(cvar"fps_max") && str_to_num(value) != 101) {
        
        
log_amx("Check fps_max change >>>> Nick: %s / steam id: %s /// change to fps_max: %s"nameauthvalue)
        
client_cmd(id,"fps_max 101")

    }

    return 
PLUGIN_CONTINUE
}

__________________

Last edited by butthead; 12-23-2008 at 05:45.
butthead is offline
 



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 09:16.


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