AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Show a BIND (https://forums.alliedmods.net/showthread.php?t=26315)

BloodyNuker 03-30-2006 19:54

Show a BIND
 
I can show a bind of a player? for example show what have binded in w
(bind w "+forward") :?

Twilight Suzuka 03-30-2006 20:35

No.

BloodyNuker 03-30-2006 21:31

and i can show if player have got any alias?

capndurk 03-30-2006 22:06

I don't think so, why?

BloodyNuker 03-31-2006 09:53

bad people :cry: , 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? :wink:


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") }

MattOG 03-31-2006 10:25

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

[ --<-@ ] Black Rose 03-31-2006 10:26

if user has already defined the alias ( wen not on your server ), the plugin wont work.

v3x 03-31-2006 10:40

Quote:

Originally Posted by amxx.cfg ftw
// Set in seconds how fast players can chat (chat-flood protection)
amx_flood_time 0.75


MattOG 03-31-2006 10:51

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.

mysticssjgoku4 03-31-2006 10:57

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?


All times are GMT -4. The time now is 16:33.

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