AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block +attack2 (https://forums.alliedmods.net/showthread.php?t=184292)

Napoleon_be 05-03-2012 12:15

Block +attack2
 
How do i do it without slowhacking? Which is possible since i've seen it some times.

Exolent[jNr] 05-03-2012 12:22

Re: Block +attack2
 
You can block Secondary attack, or hook CmdStart and remove IN_ATTACK2 from buttons.

Napoleon_be 05-03-2012 12:28

Re: Block +attack2
 
PHP Code:

#include <amxmodx>
#include <fakemeta>


public plugin_init() {
    
register_plugin("No Jump & Duck""1.0""Dores")
    
register_forward(FM_CmdStart"CmdStart")
}

public 
CmdStart(idHandle) {
    static 
button
    button 
get_uc(HandleUC_Buttons)
    
    if (
button IN_ATTACK2) {
        
button &= ~IN_ATTACK2
    
}
    
    
set_uc(HandleUC_Buttonsbutton)


Something like this?

Exolent[jNr] 05-03-2012 12:33

Re: Block +attack2
 
That should do the trick.

Napoleon_be 05-03-2012 12:35

Re: Block +attack2
 
Quote:

Originally Posted by Exolent[jNr] (Post 1701242)
That should do the trick.

Thanks for your help.


All times are GMT -4. The time now is 00:26.

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