Raised This Month: $ Target: $400
 0% 

Very simple plugin for custom checks


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mrrr
Member
Join Date: Jun 2007
Old 10-23-2007 , 05:30   Very simple plugin for custom checks
Reply With Quote #1

Hi everybody :-)

I need one plugin. Its very simple !

I want to check everybody in server for this alias:

"something:this is something" "b"

Here is the full syntax:
"<alias>:<description>" "<flags>"

I copy this from HLGuard (hlg_custom.cfg)
But i don't want the whole HLGuard for this little thing.

So i want to check everybody in server for that alias and if it found, the player with it, to be banned.


------------------------------------
Here is the command in HLGuard:
hlg_check "cd_version:CD Hack Detected" "b"

And this is the alias: "cd_version:CD Hack Detected" "b"

Please help

Last edited by Mrrr; 10-23-2007 at 06:19.
Mrrr is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-23-2007 , 06:05   Re: Very simple plugin for custom checks
Reply With Quote #2

That remembers me when i was banned from a server by HLGuard for this alias :

alias bhop "say http://fidosrevenge.com/bhop/"


Keep in mind that an alias is just a name, aka :

alias bad_name "bad_alias"

make the same as :

alias good_name "bad_alias"
ConnorMcLeod is offline
Old 10-23-2007, 06:23
Mrrr
This message has been deleted by Mrrr. Reason: Doble post :/
Mrrr
Member
Join Date: Jun 2007
Old 10-23-2007 , 06:23   Re: Very simple plugin for custom checks
Reply With Quote #3

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?

Last edited by Mrrr; 10-23-2007 at 06:40.
Mrrr is offline
Mrrr
Member
Join Date: Jun 2007
Old 10-23-2007 , 09:33   Re: Very simple plugin for custom checks
Reply With Quote #4

I test it, but it wasn't work.

Can you give me some code ?
Mrrr 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 02:00.


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