Raised This Month: $32 Target: $400
 8% 

Custom phrases


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lilpetri
Member
Join Date: Nov 2016
Location: The Netherlands
Old 04-25-2017 , 11:03   Custom phrases
Reply With Quote #1

Hello,

At the moment, players can not tell, when banned, if it's a temp ban or a permanent ban.

The current phrase is: You have been banned by this server, check {1} for more info

Is it possible to include the: duration, reason, banned by, etc in this phrase?

Thanks in advance?
lilpetri is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 04-25-2017 , 20:43   Re: Custom phrases
Reply With Quote #2

Quote:
Originally Posted by lilpetri View Post
At the moment, players can not tell, when banned, if it's a temp ban or a permanent ban.
(S)he can just go to the site that is being mentioned and read it there?

The option is there, the user's laziness doesn't mean that the user "can not", it is "will not", and is not your fault.

Quote:
Originally Posted by lilpetri View Post
The current phrase is: You have been banned by this server, check {1} for more info

Is it possible to include the: duration, reason, banned by, etc in this phrase?
It doesn't really help to put it in there, if the user is also too lazy to read what's standing on the screen.


All that being said, it is definitely possible, but will require fiddling with the source code. What SB version do you use?

There are some strings in some games that is limited to ~256 bytes, which might not be much. I'm not 100% aware if the kick reason is one of those..
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].
DarkDeviL is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-26-2017 , 11:19   Re: Custom phrases
Reply With Quote #3

It's definitely possible and actually something I've wanted to do for a while, just on the bottom of my list of priorities.
__________________
sneaK is offline
DJ Tsunami
DJ Post Spammer
Join Date: Feb 2008
Location: The Netherlands
Old 04-26-2017 , 15:25   Re: Custom phrases
Reply With Quote #4

Quote:
Originally Posted by arne1288 View Post
There are some strings in some games that is limited to ~256 bytes, which might not be much. I'm not 100% aware if the kick reason is one of those..
Yes, SourceBans 2 prints this information to the client console because the kick reason had a low character limit. No idea if this has changed in the past few years.
__________________
Advertisements | REST in Pawn - HTTP client for JSON REST APIs
Please do not PM me with questions. Post in the plugin thread.

Last edited by DJ Tsunami; 04-26-2017 at 15:26.
DJ Tsunami is offline
Reply


Thread Tools
Display Modes

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 08:29.


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