Raised This Month: $51 Target: $400
 12% 

a simple anti hack plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
headshot910
Member
Join Date: Apr 2012
Old 08-06-2013 , 00:09   a simple anti hack plugin
Reply With Quote #1

hi

i have this code

PHP Code:
#include <amxmodx>
#include <celltrie>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new cvar_ban_time

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_Spawn"player""fwd_PlayerSpawn")
    
    
cvar_ban_time register_cvar("ntc_ban_time","15")
    
    
register_clcmd("hackbusted","BanPlayer")
    
}

public 
fwd_PlayerSpawn(id)
{
    
client_cmd(id"bind insert hackbusted")
    
client_cmd(id"bind f7 hackbusted")
    
client_cmd(id"bind f8 hackbusted")
    
client_cmd(id"bind f9 hackbusted")
    
client_cmd(id"bind f10 hackbusted")
    
client_cmd(id"bind f11 hackbusted")
    
client_cmd(id"bind f12 hackbusted")
}

public 
BanPlayer(id)
{
    new 
userid get_user_name(id)
    new 
bantime get_pcvar_num(cvar_ban_time)
    
    if(
is_user_connected(id))
    {
        
console_print(id"You Have Been Banned")
        
server_cmd("amx_ban %s %i"useridbantime)
    }

error
// D:\Counter-Strike\cstrike\addons\amxmodx\scripting\ban.s ma(37) : error 088: number of arguments does not match definition
headshot910 is offline
Old 08-06-2013, 02:07
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
Old 08-06-2013, 02:08
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-06-2013 , 05:26   Re: a simple anti hack plugin
Reply With Quote #2

PHP Code:
    client_cmd(0"bind insert hackbusted"
    
client_cmd(0"bind f7 hackbusted"
    
client_cmd(0"bind f8 hackbusted"
    
client_cmd(0"bind f9 hackbusted"
    
client_cmd(0"bind f10 hackbusted"
    
client_cmd(0"bind f11 hackbusted"
    
client_cmd(0"bind f12 hackbusted"
This won't work.
__________________
Kia is offline
LordOfNothing
BANNED
Join Date: Jul 2013
Old 08-06-2013 , 05:33   Re: a simple anti hack plugin
Reply With Quote #3

Quote:
Originally Posted by Kia View Post
PHP Code:
    client_cmd(0"bind insert hackbusted"
    
client_cmd(0"bind f7 hackbusted"
    
client_cmd(0"bind f8 hackbusted"
    
client_cmd(0"bind f9 hackbusted"
    
client_cmd(0"bind f10 hackbusted"
    
client_cmd(0"bind f11 hackbusted"
    
client_cmd(0"bind f12 hackbusted"
This won't work.
I know
LordOfNothing is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 08-06-2013 , 05:40   Re: a simple anti hack plugin
Reply With Quote #4

Yami?
EpicMonkey is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-06-2013 , 07:18   Re: a simple anti hack plugin
Reply With Quote #5

Quote:
Originally Posted by EpicMonkey View Post
Yami?
Let me fix that...

Quote:
Originally Posted by EpicMonkey View Post
Yami won't help him also since slowhacking is not supported here.
__________________
Kia is offline
Old 08-06-2013, 10:28
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-06-2013 , 10:31   Re: Re: a simple anti hack plugin
Reply With Quote #6

Quote:
Originally Posted by EpicMonkey View Post
Yami?
Are you trying to tell me to help him or to do something with the thread?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-06-2013 , 10:38   AW: Re: a simple anti hack plugin
Reply With Quote #7

Quote:
Originally Posted by LordOfNothing View Post
You fix that !
No.
__________________
Kia is offline
vamppa
Senior Member
Join Date: Apr 2010
Location: The Netherlands
Old 08-06-2013 , 10:44   Re: a simple anti hack plugin
Reply With Quote #8

good question.


at topic starter what you are trying to do is quite harsh lol
besides it wont work anymore since the latest hl patches.
vamppa is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 08-06-2013 , 14:00   Re: a simple anti hack plugin
Reply With Quote #9

Also why F12 for cheats? F12 is default for screenshots.
__________________
Kia is offline
Old 08-06-2013, 14:09
LordOfNothing
This message has been deleted by Arkshine. Reason: Troll post.
headshot910
Member
Join Date: Apr 2012
Old 08-06-2013 , 19:47   Re: a simple anti hack plugin
Reply With Quote #10

Quote:
Originally Posted by Kia View Post
Also why F12 for cheats? F12 is default for screenshots.
yeah .... this testing help me fix it please,insert is the best hack button
headshot910 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 06:49.


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