AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   a simple anti hack plugin (https://forums.alliedmods.net/showthread.php?t=222729)

headshot910 08-06-2013 00:09

a simple anti hack plugin
 
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

Kia 08-06-2013 05:26

Re: a simple anti hack plugin
 
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.

LordOfNothing 08-06-2013 05:33

Re: a simple anti hack plugin
 
Quote:

Originally Posted by Kia (Post 2006720)
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 :)

EpicMonkey 08-06-2013 05:40

Re: a simple anti hack plugin
 
Yami? :3

Kia 08-06-2013 07:18

Re: a simple anti hack plugin
 
Quote:

Originally Posted by EpicMonkey (Post 2006724)
Yami? :3

Let me fix that...

Quote:

Originally Posted by EpicMonkey (Post 2006724)
Yami won't help him also since slowhacking is not supported here.


YamiKaitou 08-06-2013 10:31

Re: Re: a simple anti hack plugin
 
Quote:

Originally Posted by EpicMonkey (Post 2006724)
Yami? :3

Are you trying to tell me to help him or to do something with the thread?

Kia 08-06-2013 10:38

AW: Re: a simple anti hack plugin
 
Quote:

Originally Posted by LordOfNothing (Post 2006882)
You fix that !

No.

vamppa 08-06-2013 10:44

Re: a simple anti hack plugin
 
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.

Kia 08-06-2013 14:00

Re: a simple anti hack plugin
 
Also why F12 for cheats? F12 is default for screenshots.

headshot910 08-06-2013 19:47

Re: a simple anti hack plugin
 
Quote:

Originally Posted by Kia (Post 2007058)
Also why F12 for cheats? F12 is default for screenshots.

yeah .... this testing :) help me fix it please,insert is the best hack button


All times are GMT -4. The time now is 15:54.

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