Raised This Month: $170 Target: $400
 42% 

Help attack delay


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anderpp
Junior Member
Join Date: Feb 2018
Old 03-19-2018 , 11:51   Help attack delay
Reply With Quote #1

It is a specific mod

I need help for complete this structure

A example:
PHP Code:
#include <amxmodx>
#include <engine>

#define PLUGIN "Prevent attack delay"
#define VERSION "1.0"
#define AUTHOR "author"

//time delay expressed in seconds 0.03
#define DELAY 0.03


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}

public 
client_PreThink(id)
{
    if (
get_user_weapon(id) == CSW_KNIFE)
    {    
        if(
get_user_button(id) & IN_ATTACK)
        {
            if (
attack_clicks? < DELAY)
            {
                
client_print(idprint_chat"OMG U Are Robot auto clicker?");
                return 
PLUGIN_HANDLED
            
}
            else if (
attack_clicks? > DELAY) {
                
client_print(idprint_chat"Ok possible Human accept clicker faster");
                return 
PLUGIN_CONTINUE
            
}
            else if (
attack_clicks? && attack_held_down?) {
                
client_print(idprint_chat"Possible human held down attack!");
                return 
PLUGIN_CONTINUE
            
}
        }
    }
    return 
PLUGIN_CONTINUE

anderpp is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 03-19-2018 , 12:05   Re: Help attack delay
Reply With Quote #2

I think that you gotta use get_gametime & get_user_oldbutton.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 03-19-2018 , 12:17   Re: Help attack delay
Reply With Quote #3

Quote:
Originally Posted by Relaxing View Post
Peeps might use autoclicking in order to have reduction of recoil and spread, but this request will totally make the game unplayable. In this case, I suggest you not to use certain plugins that changes the gameplay slightly enough to "emptie" your server.
Quote:
Originally Posted by instinctpt1 View Post
Absolutely Correct !
It will not just Block AUTOCLICKER but also will block players too who click too much by their own so yes , it will make the Game Unplayable

Better Use AIMBOT Detector, No SpreadDetector and you will be free from this Tension of Bot players with bot scripts ( If your aim with this autoclicker plugin was to stop them )
full thread / whole story
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
anderpp
Junior Member
Join Date: Feb 2018
Old 03-19-2018 , 13:36   Re: Help attack delay
Reply With Quote #4

Do not continue on that topic because it was the answers I expected, I really need help in this case. This is not AIMBOT ou SpreadDetector, is not specifically the game cs 1.6 and yes the MOD for Cs as already said.
I believe the posted structure is closer than I need.

What is the topic of sequencing?
anderpp is offline
anderpp
Junior Member
Join Date: Feb 2018
Old 03-19-2018 , 13:49   Re: Help attack delay
Reply With Quote #5

I made a specific citation:
if (get_user_weapon(id) == CSW_KNIFE)

So it's not about aimbot.

You have a example with get_gametime & get_user_oldbutton?
anderpp is offline
Relaxing
Veteran Member
Join Date: Jun 2016
Location: Catlands
Old 03-20-2018 , 07:56   Re: Help attack delay
Reply With Quote #6

As far as I've used knife, you can't spam with it.
__________________
Have A Relaxing Day | Wiki
aim_relaxing
Relaxing is offline
anderpp
Junior Member
Join Date: Feb 2018
Old 03-21-2018 , 01:28   Re: Help attack delay
Reply With Quote #7

SOLVED
anderpp is offline
Reply


Thread Tools
Display Modes

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 19:36.


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