request: Anti bhop-script
Does anybody knows a good anti-bhop script like one on the xj srv? :confused:
[ Edited ]
hi,
#include
#include
#include
new somestring[32]
public plugin_init() {
register_plugin("AntiBHOP","1.0","p3ts1n")
new detectcmd[32]
format(detectcmd,31, "plop%d%d%d", random_num(0,99), random_num(0,99), random_num(0,99))
register_clcmd(detectcmd, "detected")
format(somestring,31, " alias _special %s",detectcmd)
}
public client_PreThink(id) {
if(!is_user_alive(id)) return PLUGIN_CONTINUE
new buttons = entity_get_int(id, EV_INT_button)
new oldbuttons = entity_get_int(id, EV_INT_oldbuttons)
if(buttons&IN_JUMP && !(oldbuttons&IN_JUMP))
client_cmd(id, "%s", somestring)
return PLUGIN_CONTINUE
}
public detected(id) {
new flags = entity_get_int(id, EV_INT_flags)
if(!(flags&FL_WATERJUMP) && !(flags&FL_ONGROUND) && entity_get_int(id, EV_INT_waterlevel) < 2) {
new name[32], steamid[34]
get_user_name(id, name,31)
get_user_authid(id, steamid,33)
set_hudmessage(255,0,0, 0.45, 0.50,0, 0.0, 5.0, 0.0, 0.5, 22 )
show_hudmessage(0,"[Antibhop] Bhop-script detected on %s (%s)", name,steamid)
server_cmd("kick #%d", get_user_userid(id))
}
return PLUGIN_HANDLED
}
mfg
[ Edited Mon Oct 02 2006, 03:10PM ]
anti-bhop script plugin by p3tsin <3
nice <3 :) thanks
anti-bhop script plugin by p3tsin <3
hmmm a need file *.sma [code] becouse a use older version amxx 1.71, and i must compile this file... :)
Read k4Sn's post a few posts up.
i think that no script to 'h1m1' is different from 'p3tsin' ;)... i thinking too much :P
You think wrong.
hi, can somebody translate the source of this plugin to amx please ?
#include
#include
new somestring[32]
public plugin_init() {
register_plugin("Anti-Bhop","1.0","p3ts1n")
new detectcmd[32]
format(detectcmd,31, "plop%d%d%d", random_num(0,99), random_num(0,99), random_num(0,99))
register_clcmd(detectcmd, "detected")
format(somestring,31, " alias _special %s",detectcmd)
}
public client_prethink(id) {
if(!is_user_alive(id)) return PLUGIN_CONTINUE
new buttons = Entvars_Get_Int(id, EV_INT_button)
new oldbuttons = Entvars_Get_Int(id, EV_INT_oldbuttons)
if(buttons&IN_JUMP && !(oldbuttons&IN_JUMP))
client_cmd(id, "%s", somestring)
return PLUGIN_CONTINUE
}
public detected(id) {
new flags = Entvars_Get_Int(id, EV_INT_flags)
if(!(flags&FL_WATERJUMP) && !(flags&FL_ONGROUND) && Entvars_Get_Int(id, EV_INT_waterlevel) < 2) {
new name[32], steamid[34]
get_user_name(id, name,31)
get_user_authid(id, steamid,33)
set_hudmessage(255, 0, 0, 0.02, 0.45, 1, 0.0, 5.0, 0.0, 0.5, 1)
show_hudmessage(0,"[AntiBhop]^nBhop-script detected on^n%s (%s)", name, steamid)
server_cmd("kick #%d", get_user_userid(id))
}
return PLUGIN_HANDLED
}
:)
[ Edited Sun Dec 03 2006, 02:42AM ]
thanks jeflefou
HLGuard
HLGuard sucks
HLGuard sucks
like that is it dEMolite
hlguard is bullshit
hi,
#include
#include
#include
new somestring[32]
public plugin_init() {
register_plugin("AntiBHOP","1.0","p3ts1n")
new detectcmd[32]
format(detectcmd,31, "plop%d%d%d", random_num(0,99), random_num(0,99), random_num(0,99))
register_clcmd(detectcmd, "detected")
format(somestring,31, " alias _special %s",detectcmd)
}
public client_PreThink(id) {
if(!is_user_alive(id)) return PLUGIN_CONTINUE
new buttons = entity_get_int(id, EV_INT_button)
new oldbuttons = entity_get_int(id, EV_INT_oldbuttons)
if(buttons&IN_JUMP && !(oldbuttons&IN_JUMP))
client_cmd(id, "%s", somestring)
return PLUGIN_CONTINUE
}
public detected(id) {
new flags = entity_get_int(id, EV_INT_flags)
if(!(flags&FL_WATERJUMP) && !(flags&FL_ONGROUND) && entity_get_int(id, EV_INT_waterlevel) < 2) {
new name[32], steamid[34]
get_user_name(id, name,31)
get_user_authid(id, steamid,33)
set_hudmessage(255,0,0, 0.45, 0.50,0, 0.0, 5.0, 0.0, 0.5, 22 )
show_hudmessage(0,"[Antibhop] Bhop-script detected on %s (%s)", name,steamid)
server_cmd("kick #%d", get_user_userid(id))
}
return PLUGIN_HANDLED
}
mfg
how to make that is shows IP adress too?
new szIP[33];
get_user_ip(id, szIP, 32, 1);
set_hudmessage(255,0,0, 0.45, 0.50,0, 0.0, 5.0, 0.0, 0.5, 22 )
show_hudmessage(0,"[Antibhop] Bhop-script detected on %s (%s - %s)", name,steamid,szIP)
god.. whered u get that fucked up version?
bhop-script2.sma
(had to upload it coz i cant indent code here) :/
could someone edit the p3tsin uploaded script that it bans to IP?
Please log in to post replies.