AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help attack delay (https://forums.alliedmods.net/showthread.php?t=306170)

anderpp 03-19-2018 11:51

Help attack delay
 
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



Relaxing 03-19-2018 12:05

Re: Help attack delay
 
I think that you gotta use get_gametime & get_user_oldbutton.

Relaxing 03-19-2018 12:17

Re: Help attack delay
 
Quote:

Originally Posted by Relaxing (Post 2579349)
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 (Post 2579352)
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 :shock:

Better Use AIMBOT Detector, No SpreadDetector and you will be free from this Tension of Bot players with bot scripts :3 ( If your aim with this autoclicker plugin was to stop them )

full thread / whole story

anderpp 03-19-2018 13:36

Re: Help attack delay
 
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 03-19-2018 13:49

Re: Help attack delay
 
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?

Relaxing 03-20-2018 07:56

Re: Help attack delay
 
As far as I've used knife, you can't spam with it.

anderpp 03-21-2018 01:28

Re: Help attack delay
 
SOLVED


All times are GMT -4. The time now is 01:32.

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