Raised This Month: $ Target: $400
 0% 

a simple anti hack plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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 15:54.


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