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

Too Late To Ban


Post New Thread Reply   
 
Thread Tools Display Modes
sipster19
Senior Member
Join Date: Mar 2011
Old 03-16-2014 , 13:32   Re: Too Late To Ban
Reply With Quote #71

The reason I wanted there not to be a back button when you type !tltb was because that is the first menu that you see. It would not make sense to have a back button. However if you type !admin, player commands, ban disconnected player and pick a player, it makes sense to have a back button here because you just paginated through them. Is there a way to detect if you came in through sm_admin? Then it would have a back button but !tltb wouldn't. Maybe through an if statement? Then TltbAdminMenuHandler wouldn't have to call a different menu.

Code:
if (sm_admin):
		/* Allow navigation back and forth */
		SetMenuExitBackButton(menu, true);
If there's not, I think it wouldn't be very hard to create a boolean.

- Although this feature isn't entirely necessary, it would be nice to have.

Last edited by sipster19; 03-16-2014 at 14:38.
sipster19 is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-16-2014 , 15:25   Re: Too Late To Ban
Reply With Quote #72

Right, the problem here is that the menu is created once when a player disconnects and is kept and not closed until the next player disconnects. So you can't just do it the way you posted. In the attached version a few posts back i've abused the MenuAction_Start action to change the menu option flags to show/hide the back button right before the menu is rendered. The only small downside is you might get a back button, if you've selected a player in the !ltltb menu, another admin opens the menu through the admin menu and you go back to the player list. buuut, i don't care.
__________________
Peace-Maker is offline
sipster19
Senior Member
Join Date: Mar 2011
Old 03-16-2014 , 16:12   Re: Too Late To Ban
Reply With Quote #73

Okay, thanks for your efforts. I didn't mean for this to be such a hassle over some back buttons. :/

Last edited by sipster19; 03-16-2014 at 16:19.
sipster19 is offline
Moscow1234
Member
Join Date: Mar 2014
Location: California
Old 04-26-2014 , 20:36   Re: Too Late To Ban
Reply With Quote #74

Does it work on TF2?
Moscow1234 is offline
Moscow1234
Member
Join Date: Mar 2014
Location: California
Old 04-27-2014 , 19:31   Re: Too Late To Ban
Reply With Quote #75

There's one problem is that once it installed the tltb_ban_options.txt it has something like this:


"TooLateToBan"
{
"BanTime"
{
"Permanent"
{
"time" "0"
}
"10 Minutes"
{
"time" "10"
}
"30 Minutes"
{
"time" "30"
}
"1 Hour"
{
"time" "60"
}
"1 Day"
{
"time" "1440"
}
"1 Week"
{
"time" "10080"
}
"1 Month"
{
"time" "302400"
}
}
"BanReason"
{
"Abusive"
{
"reason" "Abusive"
}
"Lamer"
{
"reason" "Lamer"
}
"Team Killing"
{
"reason" "Team Killing"
}
"Exploit"
{
"reason" "Exploit"
}
"Cheat"
{
"reason" "Cheat"
}
}
}
Moscow1234 is offline
NeonHeights
Member
Join Date: Dec 2012
Old 08-22-2014 , 13:54   Re: Too Late To Ban
Reply With Quote #76

This plugin isnt working on my servers since yesterdays update
__________________
NeonHeights is offline
AwesomeX
Member
Join Date: Jul 2013
Old 08-22-2014 , 14:49   Re: Too Late To Ban
Reply With Quote #77

Confirmed, no longer working. I need a fix.
AwesomeX is offline
Creampuffyness
Senior Member
Join Date: Jun 2009
Old 08-22-2014 , 19:32   Re: Too Late To Ban
Reply With Quote #78

Quote:
Originally Posted by AwesomeX View Post
Confirmed, no longer working. I need a fix.
Update to the latest Sourcemod update and it will.
__________________
Creampuffyness is offline
AwesomeX
Member
Join Date: Jul 2013
Old 08-22-2014 , 22:10   Re: Too Late To Ban
Reply With Quote #79

I'm running 1.6.2 though?
AwesomeX is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 08-22-2014 , 23:06   Re: Too Late To Ban
Reply With Quote #80

Quote:
Originally Posted by AwesomeX View Post
I'm running 1.6.2 though?
Are you running the latest snapshot?

http://www.sourcemod.net/snapshots.php
__________________
ddhoward 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 10:09.


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