Raised This Month: $ Target: $400
 0% 

plugin hepl


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
player321
Junior Member
Join Date: Nov 2011
Old 11-25-2011 , 09:08   plugin hepl
Reply With Quote #1

hi to everyone
I edited this plugin but the plugin immediately kick players if they dont't satisfy the conditions , but I want to ask as in this picture:
http://slike.milf-cs.info/?slika=1322078162.jpg
Do you accept this?
1.Yes
2.No (then he will be kicked)
3.Yes and don't ask again




here is sma.

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Cvar checker"
#define VERSION "1.0"
#define AUTHOR "ButtH3ad"

#pragma semicolon 1

new g_Cheatlog[256];

public 
plugin_init() {
    
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
get_time("cheat_log_%d%m%y.log",g_Cheatlog,255);

    
register_forwardFM_StartFrame"forward_startframe");
}

public 
forward_startframe() {
     
    static 
players[32], numidstart_frames;

    
get_players(playersnum"ah");
     
    for (new 
0numi++) {

        
id players[i];
     
        
start_frames++;
          
        if(
start_frames 100) {
               
            if(!
is_user_alive(id))
                return 
FMRES_HANDLED;
              
            
query_client_cvar(id"developer""ClientCvarResult");
            
query_client_cvar(id"rate""ClientCvarResult");
            
query_client_cvar(id"fps_max""ClientCvarResult");
            
query_client_cvar(id"fps_modem""ClientCvarResult");
       
query_client_cvar(id"cl_pitchspeed""ClientCvarResult");
       
query_client_cvar(id"cl_sidespeed""ClientCvarResult");
       
query_client_cvar(id"cl_yawspeed""ClientCvarResult");
        
            
start_frames 1;
        }
    }
    return 
FMRES_IGNORED;
}

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

    if((
equal(cvar"developer") && str_to_num(value) != 0)
    || (
equal(cvar"rate") && str_to_num(value) != 25000)
    || (
equal(cvar"fps_max") && str_to_num(value) != 101)
    || (
equal(cvar"fps_modem") && str_to_num(value) != 0.0)
    || (
equal(cvar"cl_pitchspeed") && str_to_num(value) != 225)
    || (
equal(cvar"cl_sidespeed") && str_to_num(value) != 400)
    || (
equal(cvar"cl_yawspeed") && str_to_num(value) != 210)) {
    
        static 
Kick_Cheater[33], UserName[33], Auth[33];
        
        
get_user_name(idUserName32);
        
get_user_authid(idAuth32);
        
        
log_to_file(g_Cheatlog"Check %s change >>>> Nick: %s / steam id: %s /// change to value: %s"cvarUserName[id], Auth[id], value);
        
        
client_cmd(id,"developer 0");
        
client_cmd(id,"rate 25000");
        
client_cmd(id,"fps_max 101");
        
client_cmd(id,"fps_modem 0.0");
        
client_cmd(id,"cl_pitchspeed 225");    
        
client_cmd(id,"cl_sidespeed 400");
        
client_cmd(id,"cl_yawspeed 210");
    
        
Kick_Cheater[id]++ ;
        
        if(
Kick_Cheater[id] > 2) {
            
            
log_to_file(g_Cheatlog"Cheater kicked >>>> Nick: %s | %s"UserName[id], Auth[id]);
            
            
server_cmd("amx_kick #%d ^"Play with legal settings!^""get_user_userid(id));
            
            
set_hudmessage(255000.290.1506.012.0);
            
show_hudmessage(0"Player %s is CHEATER, changing default settings cvars : %s to value %s"UserName[id], cvarvalue);
            
            
Kick_Cheater[id] = 0;
        }        
    }
    
    return 
PLUGIN_CONTINUE;

Thanks in advance

Last edited by player321; 11-25-2011 at 09:19.
player321 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 10:46.


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