Raised This Month: $51 Target: $400
 12% 

Problem with !ban time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sankkuq
Junior Member
Join Date: Nov 2013
Old 11-28-2015 , 17:43   Problem with !ban time
Reply With Quote #1

Reply With Quote #1
Sourcemod

So i have problem with this !ban playername 60 [something]

Is that correct command? because all the time when i use it to player it goes to permanent ban 0

What i did wrong?

Show's up on banned_user.cfg like this banid 0 [U:1:295797664] all the time

and console


L 11/28/2015 - 23:49:07: [basebans.smx] "Touhu joone<13><[U:1:295797664]><>" banned "Touhu joone<13><[U:1:295797664]><>" (minutes "0") (reason "10 bamse")
Dropped Touhu joone from server (10 bamse)
sankkuq is offline
hamilton5
Veteran Member
Join Date: Oct 2012
Location: USA
Old 11-29-2015 , 04:35   Re: Problem with !ban time
Reply With Quote #2

sm_ban
[SM] Usage: sm_ban <#userid|name> <minutes|0> [reason]

https://wiki.alliedmods.net/Admin_co...28sourcemod%29

you should of should precisely the command and the console output, those do not match what you have shown... it looks like your minutes are in the reason? Are you resetting inbetween, are you somewhere writeid'ing or writeip'ing ?

Last edited by hamilton5; 11-29-2015 at 04:37.
hamilton5 is offline
sankkuq
Junior Member
Join Date: Nov 2013
Old 11-29-2015 , 06:13   Re: Problem with !ban time
Reply With Quote #3

Yeah it is the problem my minutes are on reason and i'm using

!ban name 60 [something]

And time keeps going to reason of ban..

I have banlist and ipbanlist

And on server cfg
// Execute ban files
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip




L 11/29/2015 - 13:15:40: [basebans.smx] "Touhu joone<2><[U:1:295797664]><>" banned "Touhu joone<2><[U:1:295797664]><>" (minutes "0") (reason "1 [bamse]")
Dropped Touhu joone from server (1 [bamse])
Writing cfg/banned_user.cfg.

Last edited by sankkuq; 11-29-2015 at 06:21.
sankkuq is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 11-30-2015 , 08:43   Re: Problem with !ban time
Reply With Quote #4

What happens if you do

sm_ban "name" "60" "reason"

??
__________________
micazoid is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-30-2015 , 10:01   Re: Problem with !ban time
Reply With Quote #5

Are you using command like so? sm_ban Touhu joone 1 bamse
If so, there's the problem as SM is believing joone is the ban time.
To fix: sm_ban "Touhu joones" 1 bamse
WildCard65 is offline
cam0
Senior Member
Join Date: Feb 2015
Old 11-30-2015 , 14:20   Re: Problem with !ban time
Reply With Quote #6

Quote:
Originally Posted by WildCard65 View Post
Are you using command like so? sm_ban Touhu joone 1 bamse
If so, there's the problem as SM is believing joone is the ban time.
To fix: sm_ban "Touhu joones" 1 bamse
Also important to note that if this is in CS:GO, you can't use double quotes in the chatbox. You have to use the console (sm_ban) unless it's simple like !ban cam 30 ugly. You should really only need to enclose the name and reason in quotes, the length shouldn't be enclosed (if you enter a word for the length, it will interpret as 0).
__________________
cam0 is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 11-30-2015 , 15:06   Re: Problem with !ban time
Reply With Quote #7

Quote:
Originally Posted by cam0 View Post
Also important to note that if this is in CS:GO, you can't use double quotes in the chatbox. You have to use the console (sm_ban) unless it's simple like !ban cam 30 ugly. You should really only need to enclose the name and reason in quotes, the length shouldn't be enclosed (if you enter a word for the length, it will interpret as 0).
This can be band-aided by this plugin:
https://forums.alliedmods.net/showthread.php?t=271137
__________________
ddhoward is offline
micazoid
Veteran Member
Join Date: Oct 2010
Location: Munich - Germany
Old 12-01-2015 , 02:29   Re: Problem with !ban time
Reply With Quote #8

Quote:
Originally Posted by WildCard65 View Post
Are you using command like so? sm_ban Touhu joone 1 bamse
If so, there's the problem as SM is believing joone is the ban time.
To fix: sm_ban "Touhu joones" 1 bamse
Thats why I wrote my suggestion
__________________
micazoid 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 16:47.


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