Raised This Month: $ Target: $400
 0% 

Problem on my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Eviatar Mor
Senior Member
Join Date: Jun 2014
Location: israel
Old 07-29-2014 , 08:03   Problem on my plugin
Reply With Quote #1

hey,
i find this mod:
https://forums.alliedmods.net/showthread.php?t=128984

and i edit hem to this:

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

public plugin_init() {
register_clcmd("say /enablebhop","client_PreThink")
register_clcmd("say /disablebhop","client_PreThink1")
}

public 
client_PreThink(id)
{
    if(
is_user_alive(id))
    {
        if(
get_user_flags(id) & ADMIN_IMMUNITY)
        {
            
            new 
oldbuttons get_user_oldbutton(id);
        
            
            
oldbuttons &= ~IN_JUMP;
            
entity_set_int(idEV_INT_oldbuttonsoldbuttons);
        }
    }
}  

public 
client_PreThink1(id)
{
    if(
is_user_alive(id))
    {
        if(
get_user_flags(id) & ADMIN_IMMUNITY)
        {
    
    
    }
    }

but i dont know what i need to do to disable bhop when i type /disablebhop...
thanks about the help.
sorry about my bad english...

Last edited by Eviatar Mor; 07-29-2014 at 08:04.
Eviatar Mor is offline
 


Thread Tools
Display Modes

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 13:03.


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