BHOP Blocker
Brak.
Standardowa.
http://www105.zippyshare.com/v/gDC3mGTg/file.html
#include <amxmodx>
#include <engine>
#include <hamsandwich>
new jump[33]
new cmd[30]
public plugin_init()
{
register_plugin("BHOP BLOCKER", "1.0", "CSowicze.pl")
RegisterHam(Ham_Player_Jump, "player", "Player_Jump")
new cmd2 = random_num(10000,9999999)
format(cmd,29,"jump%d",cmd2)
register_clcmd(cmd,"bhop")
}
public client_connect(id)
{
client_cmd(id,"bind space ^"cmd %s;+jump;wait;-jump^"",cmd)
jump[id] = 0
}
public bhop(id)
{
jump[id] = 1
if(task_exists(id)){
remove_task(id)
}
set_task(0.1,"bhop2",id)
return PLUGIN_HANDLED
}
public Player_Jump(id)
{
static iOldbuttons ; iOldbuttons = entity_get_int(id, EV_INT_oldbuttons)
if(jump[id]!=1)
{
if( !(iOldbuttons & IN_JUMP) )
{
entity_set_int(id, EV_INT_oldbuttons, iOldbuttons | IN_JUMP)
return HAM_HANDLED
}
}
return HAM_IGNORED
}
public bhop2(id)
{
jump[id] = 0
}