ma The whole thing is that the newbies in hacks use CD HACK.
And in the CDHack is placed the alias who lie the Cheating Death that the hacker use Cheating Death client with the last version.
When this command: hlg_check "cd_version:CD Hack Detected" "b" is added to HLGuard it prevent using the CDHack and ban the player.
I want this but in a small plugin, not the whole HLGuard.
PS: Excuese me for my bad english :/
Is this will work:
#include <amxmodx>
#include <amxmisc>
#define PLUGINNAME "ALIAS BLOCK"
#define VERSION "NOT DECIDED YET"
#define AUTHOR "User32"
#define ALIAS_MAX 6
new g_iAliasUses[33]
public client_connect(id) g_iAliasUses[id] = 0
public client_disconnect(id) g_iAliasUses[id] = 0
public plugin_init() {
register_plugin(PLUGINNAME, VERSION, AUTHOR)
register_clcmd("cd_version", "cmdblock")
}
public cmdblock(id) {
g_iAliasUses[id]++
if(g_iAliasUses[id] >= ALIAS_MAX)
server_cmd("kick #%i ^"Do not use aliases!^"",get_user_userid(id))
client_print(id, print_chat, "[AMXX] Do not use aliases!")
client_print(id, print_console,"[AMXX] Do not use aliases!")
return PLUGIN_HANDLED
}
from http://forums.alliedmods.net/showthread.php?t=16618
Quote:
register_clcmd("cd_version", "cmdblock")
|
So if find cd_version anywhere, the plugin will kick the player, right?