AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Bhop On/Off (https://forums.alliedmods.net/showthread.php?t=173642)

jackas 12-08-2011 10:46

Bhop On/Off
 
PHP Code:

#include <amxmodx> 
#include <fakemeta> 
#include <hamsandwich> 

#define VERSION "0.0.1"
#define PLUGIN "Simple AutoBhop"

new g_bitAutoBhop
#define ClearUserAutoBhop(%0)    g_bitAutoBhop &= ~(1<<(%0&31))
#define HasUserAutoBhop(%0)    g_bitAutoBhop & 1<<(%0&31)
#define ToggleUserAutoBhop(%0)    g_bitAutoBhop ^= 1<<(%0&31)

public plugin_init () 
{
    
register_plugin(PLUGINVERSION"ConnorMcLeod")
    
register_clcmd("say /bhop " "ClCmd_AutoBhop"
    
RegisterHam(Ham_Player_Jump "player" "Ham_CBasePlayer_Jump_Pre"


public 
client_putinserver id 

    
ClearUserAutoBhopid )


public 
ClCmd_AutoBhopid 

    if( 
is_user_alive(id) ) 
    { 
        
ToggleUserAutoBhopid )
    } 


public 
Ham_CBasePlayer_Jump_Pre id 
{
    if( 
HasUserAutoBhopid ) && is_user_alive(id) )
    {
        
set_pev(idpev_oldbuttonspev(idpev_oldbuttons) & ~IN_JUMP
    }


I want to add client commands to On/Off Individual (self) Bhop
On Bhop : /bhop
Off Bhop : /offbhop

jackas 12-10-2011 05:14

Re: Bhop On/Off
 
Any one ?

bibu 12-10-2011 05:44

Re: Bhop On/Off
 
And you're the guy who is saying everyone to read the forum rules right?

jackas 12-10-2011 06:15

Re: Bhop On/Off
 
Quote:

Originally Posted by bibu (Post 1610695)
And you're the guy who is saying everyone to read the forum rules right?

I bump coz from last 2 days i got only 43 views :(

drekes 12-10-2011 07:37

Re: Bhop On/Off
 
It doesn't matter how many views you get.
2 weeks is 2 weeks.

jackas 12-27-2011 06:12

Re: Bhop On/Off
 
Bump!


All times are GMT -4. The time now is 20:57.

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