Raised This Month: $ Target: $400
 0% 

Problem on my plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
NikKOo31
Senior Member
Join Date: May 2013
Location: Home
Old 07-29-2014 , 16:38   Re: Problem on my plugin
Reply With Quote #1

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <engine>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new g_bBhop

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
// Add your code here...
    
register_clcmd("say /bhop","ToggleBHop")
}

public 
ToggleBHop(id)
{
    if(
get_user_flags(id) & ADMIN_IMMUNITY)
    {
        
g_bBhop ^= (1<<id-1)
        
client_print(idprint_chat"Bhop is %s for you"g_bBhop & (1<<id-1)? "Enabled":"Disabled")
    }
    return 
PLUGIN_HANDLED
}


public 
client_PreThink(id)
{
    if(
is_user_alive(id) && g_bBhop & (1<<id-1))
    {
        
entity_set_int(idEV_INT_oldbuttonsget_user_oldbutton(id) & ~IN_JUMP)
    }

__________________
Hey ^_^
NikKOo31 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 13:04.


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