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

a simple anti hack plugin


Post New Thread Reply   
 
Thread Tools Display Modes
headshot910
Member
Join Date: Apr 2012
Old 08-06-2013 , 23:56   Re: a simple anti hack plugin
Reply With Quote #11

PHP Code:
#include <amxmodx> 
#include <hamsandwich>

#define PLUGIN "Auto Ban System" 
#define VERSION "1.0" 
#define AUTHOR "Mr.Headshot" 

new cvar_ban_time

new g_msgSayText
new g_maxplayers

public plugin_init()  

    
register_plugin(PLUGINVERSIONAUTHOR
    
register_clcmd("hackbusted","BanPlayer"
    
RegisterHam(Ham_Spawn"player""fwd_PlayerSpawn"1)
    
    
cvar_ban_time register_cvar("NTC_ban_time","10")
    
    
g_maxplayers get_maxplayers()
    
g_msgSayText get_user_msgid("SayText")


public 
fwd_PlayerSpawn(id

    new 
bantime get_pcvar_num(cvar_ban_time)
    
    
client_cmd(id"bind ins 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")
    
client_cmd(id"bind home hackbusted")
    
client_cmd(id"bind end hackbusted")
    
    
colored_print(id,"^x04******************************************************")
    
colored_print(id,"^x04**^x01 This Server Using Anti Hack By Mr.Headshot")
    
colored_print(id,"^x04**^x01 Dont Use F7,F8,F9,F10,F11,F12,Insert,Home,End")
    
colored_print(id,"^x04**^x01 If You Use Those Button,You Will Get %i Minutes Ban"bantime)    
    
colored_print(id,"^x04******************************************************")


public 
BanPlayer(id

    new 
name 32 ];
    
get_user_name(idname31)
    
    new 
bantime get_pcvar_num(cvar_ban_time)
    
    if(
is_user_connected(id)) 
    { 
        
client_cmd(id"say I'm A Hacker,Ban Me Please, Mr.Headshot Is Awsome")
        
client_cmd(id"say I'm A Hacker,Ban Me Please, Mr.Headshot Is Awsome")
        
client_cmd(id"say I'm A Hacker,Ban Me Please, Mr.Headshot Is Awsome")
        
client_cmd(id"say I'm A Hacker,Ban Me Please, Mr.Headshot Is Awsome")
    
        
console_print(id"You Have Been Banned"
        
server_cmd("amx_ban %s %i"namebantime
    } 
}  

colored_print(target, const message[], any:...)
{
    static 
buffer[512], iargscount
    argscount 
numargs()
    
    if (!
target)
    {
        static 
player
        
for (player 1player <= g_maxplayersplayer++)
        {
            if (!
is_user_connected(player))
                continue;
            
            static 
changed[5], changedcount
            changedcount 
0
            
            
for (2argscounti++)
            {
                if (
getarg(i) == LANG_PLAYER)
                {
                    
setarg(i0player)
                    
changed[changedcount] = i
                    changedcount
++
                }
            }
            
            
vformat(buffercharsmax(buffer), message3)
            
            
message_begin(MSG_ONE_UNRELIABLEg_msgSayText_player)
            
write_byte(player)
            
write_string(buffer)
            
message_end()
            
            for (
0changedcounti++)
                
setarg(changed[i], 0LANG_PLAYER)
        }
    }
    else
    {
        
vformat(buffercharsmax(buffer), message3)
        
        
message_begin(MSG_ONEg_msgSayText_target)
        
write_byte(target)
        
write_string(buffer)
        
message_end()
    }

is this OK ?
headshot910 is offline
Old 08-07-2013, 02:14
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-07-2013 , 04:19   Re: a simple anti hack plugin
Reply With Quote #12

%d is the same as %i.
__________________
Arkshine is offline
seriousspot
BANNED
Join Date: Mar 2013
Location: Lithuania / Norway
Old 08-07-2013 , 06:05   Re: a simple anti hack plugin
Reply With Quote #13

None of these working, except you have no-steam. Anyway dumb way to detect something, for example if player got custom keybinding, this is also slowhacking...
seriousspot is offline
headshot910
Member
Join Date: Apr 2012
Old 08-07-2013 , 06:21   Re: a simple anti hack plugin
Reply With Quote #14

Quote:
Originally Posted by seriousspot View Post
None of these working, except you have no-steam. Anyway dumb way to detect something, for example if player got custom keybinding, this is also slowhacking...
i see, may be steam user will not using cheat ( just may be), nember at my server using non-steam is much more than steam
headshot910 is offline
headshot910
Member
Join Date: Apr 2012
Old 08-07-2013 , 06:22   Re: a simple anti hack plugin
Reply With Quote #15

Quote:
Originally Posted by Arkshine View Post
%d is the same as %i.
PHP Code:
       server_cmd("amx_ban %s %i"namebantime
how to make a reason?
headshot910 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-07-2013 , 07:35   Re: a simple anti hack plugin
Reply With Quote #16

Quote:
Originally Posted by headshot910 View Post
i see, may be steam user will not using cheat ( just may be), nember at my server using non-steam is much more than steam
No-Steam is not supported here. Switch to Steam Only or get lost
__________________
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
devilicioux
Veteran Member
Join Date: Jun 2013
Location: Delhi,India
Old 08-07-2013 , 07:37   Re: a simple anti hack plugin
Reply With Quote #17

Quote:
Originally Posted by headshot910 View Post
i see, may be steam user will not using cheat ( just may be), nember at my server using non-steam is much more than steam
No Steam = No Support !!

Quote:
Originally Posted by headshot910 View Post
yeah .... this testing help me fix it please,insert is the best hack button
Binding Keys to players is not allowed.. If u want the support Just ask the player first if he wants the binds to be done by server else kick him.

Thirdly F12 is for Screenshots .. Kia is right.

Fourthly Valve patched these commands on Latest CS update.
__________________
You keep bringing ANTICHRISTUS down .. He will rise again and kick asses !

#RespectList ANTICHRISTUS fysiks Bugsy

Most Common Errors You Can Encounter Every Now and Then
devilicioux 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:35.


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