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(PLUGIN, VERSION, AUTHOR)
// 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(id, print_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(id, EV_INT_oldbuttons, get_user_oldbutton(id) & ~IN_JUMP)
}
}
__________________