Raised This Month: $ Target: $400
 0% 

jump loopings


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kielor
Senior Member
Join Date: Jan 2009
Location: Russia, Novosibirsk
Old 05-25-2010 , 02:52   jump loopings
Reply With Quote #1

Ok, I'm making antibhophack plugin.
Currently I've made correctly only one type of detections out of two possible.

Second is looping aka _special aka (whatever or kzh by default)_loopx.
At the moment I'm using this code to detect it:
PHP Code:
public fwdCmdStart(iduc_handleseed)
{
    if(
is_user_alive(id) && is_user_connected(id))
    {
        static 
iButtonss_iOldButtons[33], s_iFrameCounter[33], s_iScrollCounter[33];
        
iButtons get_uc(uc_handleUC_Buttons);
        
        if(
s_iOldButtons[id] & IN_JUMP && !(iButtons IN_JUMP))
            
s_iFrameCounter[id] = 0;
        else if(
iButtons IN_JUMP && !(s_iOldButtons[id] & IN_JUMP) && <= s_iFrameCounter[id] && s_iFrameCounter[id] <= 5)
            
s_iScrollCounter[id]++;
        
        if(
s_iScrollCounter[id] >= 10)
        {
            
s_iScrollCounter[id] = 0;
            new 
szName[32];
            
get_user_name(idszName31);
            
client_print(0print_chat"** Bhop hack detected on %s! Reason: jump loopings(poss _special or kzh_loopx)."szName);
            
//kick_user(id, "Bhop hack detected!");
        
}
        
        if(
s_iFrameCounter[id] >= 40s_iScrollCounter[id] = 0;
        
        
s_iOldButtons[id] = iButtons;
        
s_iFrameCounter[id]++;
    }

But this detects it if I jump with scroll.. What is wrong with that?
__________________
try using +karma if i helped you...
kielor is offline
Send a message via ICQ to kielor Send a message via Skype™ to kielor
 



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 05:28.


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