Raised This Month: $ Target: $400
 0% 

Problem on my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Eviatar Mor
Senior Member
Join Date: Jun 2014
Location: israel
Old 07-29-2014 , 15:04   Re: Problem on my plugin
Reply With Quote #6

Quote:
Originally Posted by MrKiller2010 View Post
here:
PHP Code:
#include <amxmodx>
#include <engine>

new g_bBhop33 ]

new 
szName33 ]

public 
plugin_init() 
{
    
register_clcmd("say /enablebhop","EnableCommand")
    
register_clcmd("say /disablebhop","DisableCommand")
}

public 
EnableCommand(id)
{
    if(!(
get_user_flags(id) & ADMIN_IMMUNITY))
    {
    
client_print(idprint_chat"This Command Only For Admins")
    return 
PLUGIN_HANDLED
    
}
    
g_bBhopid ] = true
    
    get_user_name
(idszNamecharsmax(szName)) 
    
client_print(idprint_chat"%s U Enabled Bhop"szName)
    return 
PLUGIN_HANDLED
}

public 
DisableCommand(id)
{
    if(!(
get_user_flags(id) & ADMIN_IMMUNITY))
    {
    
client_print(idprint_chat"This Command Only For Admins")
    return 
PLUGIN_HANDLED
    
}
    
    
g_bBhopid ] = false
    get_user_name
(idszNamecharsmax(szName))
    
client_print(idprint_chat"%s U Disabled Bhop"szName)
    return 
PLUGIN_HANDLED
}

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

when i type /enablebhop or /disablebhop i not see any message..
Eviatar Mor 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 13:04.


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