Raised This Month: $ Target: $400
 0% 

Show a BIND


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BloodyNuker
Member
Join Date: Jan 2006
Old 03-30-2006 , 19:54   Show a BIND
Reply With Quote #1

I can show a bind of a player? for example show what have binded in w
(bind w "+forward")
BloodyNuker is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-30-2006 , 20:35  
Reply With Quote #2

No.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
BloodyNuker
Member
Join Date: Jan 2006
Old 03-30-2006 , 21:31  
Reply With Quote #3

and i can show if player have got any alias?
BloodyNuker is offline
capndurk
Senior Member
Join Date: Feb 2006
Old 03-30-2006 , 22:06  
Reply With Quote #4

I don't think so, why?
__________________
I have left these forums because a certain respected member has been acting immaturely lately and has decided that I am not welcome in this community.
capndurk is offline
BloodyNuker
Member
Join Date: Jan 2006
Old 03-31-2006 , 09:53  
Reply With Quote #5

bad people , in the server execute a "alias" which calls to another alias that calls to the first alias, this generates a "LOOP" and the server is left 100% use of CPU "lag", and quit all people (timed out)

the alias says for example say /showscores or say /rank

alias "ggg" "say /rank;say /rank;say /rank;say /rank; ggg2"
alias "ggg2" "say /rank;say /rank;say /rank;say /rank; ggg"

i need detect this hack, I think create a cvar client named alias
because if player say in console alias, i kick player, i can do this?
or i can show if have got an alias?


Code:
#include <amxmodx> #include <amxmisc> new Plugin_Author[] = "<*[ZOO]*> - Lobo"; new Plugin_Version[] = "V 1.0"; new Plugin_Name[] = "Detect bad alias, Server - Plugin" #define MSG_GLOBAL public plugin_init() { register_plugin(Plugin_Name,Plugin_Version,Plugin_Author); register_clcmd("alias","detect",0,": .") } public detect(id) { if( !is_user_connected(id) ) { return PLUGIN_HANDLED; } client_cmd(id,"echo ^"*** no use alias ***^";disconnect") }
BloodyNuker is offline
MattOG
Senior Member
Join Date: May 2005
Old 03-31-2006 , 10:25  
Reply With Quote #6

You would be better off making an "anti-spam/flood" plugin, which kick/bans someone if they spam the chat/console commands.
__________________

+Karma If I helped
MattOG is offline
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 03-31-2006 , 10:26  
Reply With Quote #7

if user has already defined the alias ( wen not on your server ), the plugin wont work.
[ --<-@ ] Black Rose is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 03-31-2006 , 10:40  
Reply With Quote #8

Quote:
Originally Posted by amxx.cfg ftw
// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 0.75
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
MattOG
Senior Member
Join Date: May 2005
Old 03-31-2006 , 10:51  
Reply With Quote #9

Quote:
Originally Posted by v3x
Quote:
Originally Posted by amxx.cfg ftw
// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 0.75
yeah, but that just stops the chat from showing until the time-limit is reached, then the line is printed again. It would reduce the load on the server, but not deal with the problem, which is, the nub with the dodgy alias.

What I was talking about is making something which, after he triggers the flood protection say 3 or 4 times consecutively, it kicks/bans him. Solving the problem.
__________________

+Karma If I helped
MattOG is offline
mysticssjgoku4
Veteran Member
Join Date: Jan 2005
Location: Chicago Heights, IL
Old 03-31-2006 , 10:57  
Reply With Quote #10

Quote:
Originally Posted by v3x
Quote:
Originally Posted by amxx.cfg ftw
// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 0.75
What does chat flood have to do with alias detection?

BTW, that plugin above would block every alias no matter what it does if it even works.

Correct me if I'm wrong, but I believe it wouldn't really work.....
Because an alias can start like this and then it doesn't directly use the alias command, but instead a +command action.

Code:
bind "x" "+hack"
alias +hack "say I hack"
alias -hack "say I dont hack"
To tell you the truth, why not just use a get_user_info command?

Code:
new arg[32], arg2[32] read_argv(1,arg,31) read_argv(2,arg2,31) new target = cmd_target(id,arg,1) if(!target) return PLUGIN_HANDLED new command[32] format(command,"bind %s",arg2) new bind_x[32] get_user_info(target,command,bind_x,31) client_print(id,print_console,"Targets Key: %s",binx_x) return PLUGIN_HANDLED

Would that not work?
__________________

mysticssjgoku4 is offline
Send a message via AIM to mysticssjgoku4 Send a message via MSN to mysticssjgoku4
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 16:33.


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