Raised This Month: $ Target: $400
 0% 

Make Code to amx file? (anti bhop plugin)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
riz
Junior Member
Join Date: Feb 2007
Old 02-14-2007 , 10:59   Make Code to amx file? (anti bhop plugin)
Reply With Quote #1


Hello i tried to make this code/plugin to a amxx file.

This is what i have;

////////////////////////////////////////////////////////////////////////////////

#include <amxmod>
#include <Vexd_Utilities>

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
}

//////////////////////////////////////////////////////////////////////////////////
-_-


I used notepad to copy the text and paste into another amxx file
but it didnt work that way!
Maybe someone can tell me how to do it or make one for me?
i would be very thankfull
/Riz
riz is offline
 



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