Raised This Month: $105 Target: $400
 26% 

Custom Player Taglines


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   v3x (159)
nhdriver4
Senior Member
Join Date: Nov 2005
Old 03-22-2006 , 23:12   Custom Player Taglines
Reply With Quote #1

Custom Player Taglines
Version 0.5

Description
A tagline is a line of text that is displayed when a user connects. It can be defined by each individual user. Currently the script is configured to let anyone with reserved access to the server to make a tag. This can be changed by a simple tweak of the access level.

This plugin supports both SQLx and FILE usage.

Origional idea from the TGNS server.

Be sure to
- Enable in your amxmodx/configs/plugins.ini file!!
- Modify your /configs/sql.cfg file if you plan on using SQL!!
- Create the taglines.ini file in your /configs folder!!
- Place the library file in your amxmodx/data/lang folder!!


Commands
- amx_tag <your tag> Sets your tagline ( Note that the tagline should be "in quotes")
- amx_tagon 0/1 Toggles the display of your tagline

To do
- Nothing now.


Compatibility
This script was confirmed working with the following:
Windows HLDS
MetaMod v1.19 / MetaMod v1.19p28
AMXMODX v1.76c
MySQL 4.0.25


Changelog
Code:
v0.1
- Initial release
v0.2
- The tagline display can be toggled on and off by the user at any time
- Database errors return more feedback
v0.3
- Better error checking on the SQL querys
- Add an option to use a text file instead of SQL
- Fixed and tested the tag toggle checking
v0.3b
- When using the file method, all lines are now parsed
v0.3c
- Code optimized further
v0.4
- Fixed bugs with file usage
- Updated to use sqlx (No more lag for remote sql servers!)
- Code optimized
v0.5
- Added requested feature to not show taglines on map change.
Attached Files
File Type: txt tagline.txt (578 Bytes, 1323 views)
File Type: sma Get Plugin or Get Source (tagline.sma - 2217 views - 10.9 KB)
__________________

Last edited by nhdriver4; 01-26-2007 at 01:51. Reason: Update to v0.5
nhdriver4 is offline
Send a message via AIM to nhdriver4
nhdriver4
Senior Member
Join Date: Nov 2005
Old 03-23-2006 , 17:32  
Reply With Quote #2

Anyone care to comment or make suggestions?
__________________
nhdriver4 is offline
Send a message via AIM to nhdriver4
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-23-2006 , 17:57  
Reply With Quote #3

Suggestions.

1) Use the ML capabilities of AMXX instead of hardcoding all your text.
2) Add an option to use a text file instead of SQL.
3) Instead of utilizing client_authorized, use client_putinserver as it happens later.
Brad is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-23-2006 , 18:21  
Reply With Quote #4

Very nice idea. I'm not sure yet if I should use this plugin (for admins only) since fakenicking while recording demos of suspicious players will become impossible.
__________________
Janet Jackson is offline
nhdriver4
Senior Member
Join Date: Nov 2005
Old 03-23-2006 , 18:28  
Reply With Quote #5

Brad, ML = Multi Language? I'm not fluent in any other languages, so I'm not sure that can be accomplished. I'll work on the file database, but I havn't been able to figure out how to parse a text file and return the correct results. I keep working on that. Using client_putinserver instead of client_authorized.

Janet, so a user toggle on/off option would help?
__________________
nhdriver4 is offline
Send a message via AIM to nhdriver4
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-23-2006 , 18:49  
Reply With Quote #6

http://wiki.amxmodx.org/index.php/Ad...ingual_Support


and for rough translations use http://www.freetranslator.com
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-23-2006 , 19:00  
Reply With Quote #7

Don't worry about translations to other languages. Just having the English in there is good enough.
Brad is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-23-2006 , 19:24  
Reply With Quote #8

You can always request translations, many plugin authors do that. Using an online translator however sounds like a bad idea to me, unless you want to have a good laugh at the result.
Quote:
Originally Posted by nhdriver4
Janet, so a user toggle on/off option would help?
If that would work per user...great !
__________________
Janet Jackson is offline
pendragon
Senior Member
Join Date: Mar 2004
Location: In a bubble
Old 03-23-2006 , 20:01  
Reply With Quote #9

Quote:
Originally Posted by Janet Jackson
Very nice idea. I'm not sure yet if I should use this plugin (for admins only) since fakenicking while recording demos of suspicious players will become impossible.
I have to concur with our booby-licious friend here...great idea - for non admins.
__________________
pendragon is offline
Send a message via ICQ to pendragon Send a message via AIM to pendragon Send a message via MSN to pendragon
nhdriver4
Senior Member
Join Date: Nov 2005
Old 03-23-2006 , 21:54  
Reply With Quote #10

Updated:
Quote:
Originally Posted by Brad
Use the ML capabilities of AMXX instead of hardcoding all your text.
Instead of utilizing client_authorized, use client_putinserver as it happens later.
I am aware of the eror when the server first boots up. After a map change or restart, the plugin operates just fine. I cant figure that one out. Anyone?
-Got it, nevermind.
__________________
nhdriver4 is offline
Send a message via AIM to nhdriver4
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 04:18.


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