Raised This Month: $ Target: $400
 0% 

Bhop On/Off


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jackas
Senior Member
Join Date: Feb 2011
Old 12-08-2011 , 10:46   Bhop On/Off
Reply With Quote #1

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
__________________
For our new family member's in alliedmods
Quote:
Originally Posted by bo0m View Post
Ok, there are a couple ways to find this, here are about 5:
1. Search
2. Search again
3. If you don't find it, then search again.
4. After searching the 3rd time, search again
5. Then when you are tired of searching, just search some more!!!!

Last edited by jackas; 12-08-2011 at 10:47.
jackas is offline
 



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