Raised This Month: $ Target: $400
 0% 

[EDIT] Auto Bhop


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 12-17-2011 , 16:41   [EDIT] Auto Bhop
Reply With Quote #1

Can you edit that ConnorMcLeod's mod not to slow you down auto bhop? :

PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>

public plugin_init()
{
        
register_plugin"Auto Bhop""0.0.1""ConnorMcLeod" )

        
RegisterHamHam_Player_Jump"player""Player_Jump" )
}

public 
Player_Jump(id)
{
        static 
iOldbuttons iOldbuttons entity_get_intidEV_INT_oldbuttons )
        if( 
iOldbuttons IN_JUMP )
        {
                
entity_set_intidEV_INT_oldbuttonsiOldbuttons & ~IN_JUMP )
        }


Last edited by Lolz0r; 12-23-2011 at 16:02.
Lolz0r is offline
Lolz0r
Veteran Member
Join Date: Nov 2010
Location: Balgaria
Old 12-23-2011 , 16:07   Re: [EDIT] Auto Bhop
Reply With Quote #2

After I tested other plugins in the end it happened like this:

PHP Code:
#include <amxmodx>
#include <engine>
#include <hamsandwich>

#define MAX_PLAYERS 32
new g_bAliveMAX_PLAYERS ]

public 
plugin_init()
{
    
register_plugin"Auto Bhop""0.0.1""ConnorMcLeod" )

    
RegisterHamHam_Spawn"player""Check_Alive")
    
RegisterHamHam_Killed"player""Check_Alive")
        
RegisterHamHam_Player_Jump"player""Player_Jump" )
}

public 
Check_Aliveid )
{
    
g_bAliveid ] = is_user_aliveid )
}

public 
Player_Jumpid )
{
    if(    !
g_bAliveid ]
    ||    
entity_get_intidEV_INT_waterlevel ) >= 2
    
||    !( entity_get_intidEV_INT_flags ) & FL_ONGROUND )    )
    {
        return
    }

    static 
iOldButtons iOldButtons entity_get_intidEV_INT_oldbuttons )
    if( 
iOldButtons IN_JUMP )
    {
            
entity_set_intidEV_INT_oldbuttonsiOldButtons & ~IN_JUMP )

            static 
Float:fVelocity]
            
entity_get_vectoridEV_VEC_velocityfVelocity )

            
fVelocity] = 268.32815729997476356910084024775
            entity_set_vector
idEV_VEC_velocityfVelocity )
        }

I wan't you just to have a look and see how it is.

Last edited by Lolz0r; 12-23-2011 at 16:08.
Lolz0r 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 20:57.


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