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

Release Legacy SourceBans 1.4.11 (Updated 2014/02/17)


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 02-08-2012 , 09:15   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2781

Quote:
Originally Posted by desynced View Post
Is there any way when an admin bans someone, it doesnt automatically kick them? After the last week of one server getting alot of people using hacks, the admins would sort of like to ban them, then abuse them till they leave.

(Mirror Damage, Happy Player, Evil Vision, SetSpeed to 25, Gravity set to 999999, etc.)

Just status the server.. write down the SteamID and after they leave then put the ban on them thru the web panel.
Horsedick is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 02-08-2012 , 09:18   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2782

Quote:
Originally Posted by Peace-Maker View Post
In /includes/sb-callback.php search for
PHP Code:
$ret $r->rconCommand("sm_rehash"); 
and repeat that line with different commands ;)

aww awesome Peace.. so I just basically copied the same line right below that one and replaced the sm_rehash with sm_reloadscc

great!

Edit: Nope didn't work... I get this error in the server that user is in if I add them while they are in it which I have to unload and reload the simple-chat colors plugin to get it to work after that.

Quote:
21:12:14 L 02/08/2012 - 20:12:26: [SM] Native "CloseHandle" reported: Handle 38a7029d is invalid (error 1)
21:12:14 L 02/08/2012 - 20:12:26: [SM] Displaying call stack trace for plugin "simple-chatcolors.smx":
21:12:14 L 02/08/2012 - 20:12:26: [SM] [0] Line 180, C:\compiler\simple-chatcolors.sp::CheckPlayer()
21:12:14 L 02/08/2012 - 20:12:26: [SM] [1] Line 149, C:\compiler\simple-chatcolors.sp::Command_Reload()

Last edited by Horsedick; 02-08-2012 at 21:18.
Horsedick is offline
hasjduden
Member
Join Date: Jun 2011
Old 02-08-2012 , 12:07   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2783

Quote:
Originally Posted by mgunnett View Post
Have you verified that the admin has access to the server and has permissions?
Yes :/
hasjduden is offline
mgunnett
Member
Join Date: May 2008
Location: Somewhere in null...
Old 02-08-2012 , 19:48   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2784

Quote:
Originally Posted by hasjduden View Post
Yes :/
I probably should have asked this first, but are there any errors in the Sourcemod and Sourcebans Log files? Usually located in <game>/addons/sourcemod/logs/
__________________
[IMG]http://img209.**************/img209/2452/picture4ix9.jpg[/IMG]
My Plugins: Bhop Health
mgunnett is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 02-09-2012 , 03:48   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2785

Quote:
Originally Posted by Horsedick View Post
aww awesome Peace.. so I just basically copied the same line right below that one and replaced the sm_rehash with sm_reloadscc

great!

Edit: Nope didn't work... I get this error in the server that user is in if I add them while they are in it which I have to unload and reload the simple-chat colors plugin to get it to work after that.
Hm, that seems to be a problem with simple-chatcolors. Thinking of it - you'll have to delay the sm_reloadscc command until the sourcebans plugin fetched the updated admins list. You should probably do that with a small plugin.
PHP Code:
new Handle:g_hReloadSCC INVALID_HANDLE;
public 
OnPluginStart()
{
  
AddCommandListener("sm_rehash"Cmd_Rehash);
}

public 
Action:Cmd_Rehash(client, const String:command[], argc)
{
  if(
g_hReloadSCC != INVALID_HANDLE)
    
KillTimer(g_hReloadSCC);
  
g_hReloadSCC CreateTimer(5.0Timer_ReloadSCC);
  return 
Plugin_Continue;
}

public 
Action:Timer_ReloadSCC(Handle:timerany:data)
{
  
ServerCommand("sm_reloadscc");
  
g_hReloadSCC INVALID_HANDLE;
  return 
Plugin_Stop;

This assumes, that sourcebans will have the admins fetched within 5 seconds. I think that sounds reasonable

If you still got problems with sm_reloadscc, try adding
PHP Code:
g_aPlayers[client] = INVALID_HANDLE
in line 189.
__________________
Peace-Maker is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 02-09-2012 , 09:24   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2786

Ok so should I insert this code into simple chat colors or is that for a plugin of its own cause if I try to make that on its own I get an error.
Horsedick is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 02-09-2012 , 13:10   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2787

Wow, no reply to my message (#2771) for a week then all these?

Since my suggestion and bug-sightings seem virtually unread, is there a place I can add a feature request. Taken from my post:

Quote:
Originally Posted by 11530 View Post
... could you possibly make it so the ban reason is taken from the entire string after the 3rd argument if quotes aren't used?
11530 is offline
hasjduden
Member
Join Date: Jun 2011
Old 02-09-2012 , 14:59   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2788

Quote:
Originally Posted by mgunnett View Post
I probably should have asked this first, but are there any errors in the Sourcemod and Sourcebans Log files? Usually located in <game>/addons/sourcemod/logs/
Acutally there is!

Quote:
L 02/09/2012 - 15:05:51: [SM] Native "SQL_TQuery" reported: Invalid database Handle 0 (error: 4)
L 02/09/2012 - 15:05:51: [SM] Displaying call stack trace for plugin "sourcebans.smx":
L 02/09/2012 - 15:05:51: [SM] [0] Line 1398, D:\htdocs\sourcebans\trunk\game_upload\addons \sourcemod\scripting\sourcebans.sp:rocessQu eueCallback()
Whats wrong?
hasjduden is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 02-09-2012 , 15:06   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2789

Quote:
Originally Posted by hasjduden View Post
Acutally there is!



Whats wrong?
Something is not connecting to your database...check the webconfig file to make sure you have everything set..same with the databases.cfg file, also make sure the host has those ports open for it to work correctly and you can test that with the debug php file.
Horsedick is offline
hasjduden
Member
Join Date: Jun 2011
Old 02-09-2012 , 15:51   Re: SourceBans 1.4.9 (Updated 2011/11/18)
#2790

Fixed it! kty for your help. It was me that diddent allow incoming data from that host.

Thank you!
hasjduden is offline
Closed Thread



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:52.


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