AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ban a Player? (https://forums.alliedmods.net/showthread.php?t=130925)

mottzi 06-29-2010 05:30

Ban a Player?
 
Hello,

hello i tried:

PHP Code:

server_cmd("amx_ban #%i 1"id

for banning the ID for 1 minute but it doesnt work


Can you tell me how to ban somebody for 1 minute?

mottzi 06-29-2010 06:58

Re: Ban a Player?
 
So, i found this code:

PHP Code:

server_cmd("amx_ban #%d 30"get_user_userid(id))
        
server_exec() 


it banns me but i can simply join the server again and im not banned, why?

#8 SickneSS 06-29-2010 09:04

Re: Ban a Player?
 
because u are ussing your id,u must create a new id or a target I think

Brreaker 06-29-2010 09:29

Re: Ban a Player?
 
use either addban either banip, it's just more usefull, also you can also find if a user is admin on your server and use the ban command from his console xD

YamiKaitou 06-29-2010 10:06

Re: Ban a Player?
 
If you are using the amx_ban command and have not upgraded to 1.8.2 or implemented the fix yourself, then that would explain it.


All times are GMT -4. The time now is 14:53.

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