AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   admincmd.amxx (https://forums.alliedmods.net/showthread.php?t=63899)

l33tcho 12-02-2007 15:18

admincmd.amxx
 
Hi, i'm a new AMXX user. I was using AMX 0.9.9. till now.
I am impressed with what AMXX has to offer but VERY pissed for one thing. I must admin that its possible to be my mistake but still i'll ask.
The admincmd.amxx as i see differs from the admincmd.amx.
The command i'm interested in is
amx_ban
So in AMX the command was as normal as it can :
amx_ban #ID
and there you go, you have banned the user permanently to his IP.
But what do i experience with AMXX?
typing amx_ban #ID gives me a hint to use amx_ban #ID [minutes] [reason] , ok no prob, but when i do that the user gets "BANNED" .. but no really , he just gets kicked with message for BAN and he joins the server immediately.
I have fixed my GeoIP so now i can resolve IPS.. so no reason to fail banning.
Through HLSW i can see the bans, but i dont see where they are listed, can you point me to that place?
I dont see why the server fails to ban with IP.
How to make amx_ban work only with "amx_ban #ID" (not to use min and reason) and still get auto-IPBAN from AMX...
Any ideas?

M249-M4A1 12-02-2007 20:53

Re: admincmd.amxx
 
amx_ban
amx_addban
amx_banip

l33tcho 12-03-2007 09:35

Re: admincmd.amxx
 
I know the commands but they dont work as good as they should...
I Mean.. i type amx_ban #ID and has no effect
Then type .. amx_ban #ID min and reason and the user is only kicked.. but no added to ban list

M249-M4A1 12-03-2007 10:56

Re: admincmd.amxx
 
You need to add the minutes to ban, like amx_banip M2 "0"

This bans M2's IP address for 0 minutes (permanent)

YamiKaitou 12-03-2007 14:23

Re: admincmd.amxx
 
Quote:

Originally Posted by l33tcho (Post 559432)
Then type .. amx_ban #ID min and reason and the user is only kicked.. but no added to ban list

A ban is only written to the banned file when it is permanent. All temp bans are stored in memory and are erased when the time expires or the server is restarted.

l33tcho 12-03-2007 15:01

Re: admincmd.amxx
 
Thanks ppl :) You really helped me!

Vet 12-04-2007 22:40

Re: admincmd.amxx
 
You could always modify the admincmd.sma to default to a permanent ban. Thus making the minutes parameter optional.

Code:


read_argv(1, target, 31)
read_argv(2, minutes, 7)
read_argv(3, reason, 63)
 
// added default of 0 minutes (Perm ban)
if (!minutes[0])
  copy(minutes, 3, "0")



All times are GMT -4. The time now is 11:08.

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