Raised This Month: $ Target: $400
 0% 

Make Code to amx file? (anti bhop plugin)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
p3tsin
Senior Member
Join Date: Sep 2005
Location: Finland
Old 02-15-2007 , 06:59   Re: Make Code to amx file? (anti bhop plugin)
Reply With Quote #1

Code:
#include <amxmodx> #include <fakemeta> const bantime = 10 new detectcmd[32] new cv_bhopkick public plugin_init() {     register_plugin("Bhop Script","2.0","p3tsin")     formatex(detectcmd,31, "plop%d%d%d",random_num(0,99),random_num(0,99),random_num(0,99))     register_clcmd(detectcmd,"cmd_detected")     cv_bhopkick = register_cvar("amx_bhopkick","0")     register_forward(FM_PlayerPreThink,"fm_playerprethink",0) } public fm_playerprethink(id) {     if(is_user_alive(id)) {         if(!(pev(id,pev_flags)&FL_ONGROUND) && (!(pev(id,pev_button)&IN_JUMP) || pev(id,pev_oldbuttons)&IN_JUMP))             client_cmd(id, ";alias _special %s",detectcmd)     }     return FMRES_IGNORED } public cmd_detected(id) {     if(!(pev(id,pev_flags)&FL_ONGROUND) && (!(pev(id,pev_button)&IN_JUMP) || pev(id,pev_oldbuttons)&IN_JUMP)) {         static name[32], authid[36]         get_user_name(id, name,31)         get_user_authid(id, authid,35)         client_print(0,print_chat, "[AMXX] Bhop-script detected on %s (%s)",name,authid)         switch(get_pcvar_num(cv_bhopkick)) {             case 1: server_cmd("kick #%d bhop-script",get_user_userid(id))             case 2: server_cmd("banid %d ^"%s^";kick #%d bhop-script",bantime,authid,get_user_userid(id))         }     }     return PLUGIN_HANDLED }

__________________
plop
p3tsin 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 00:39.


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