Thanks for downloading!

Display configuration options are at the top of /lua/autorun/client/cl_playertitle.lua
Storage configuration options are at the top of /lua/autorun/server/sqldata.lua

Storage and display configuration are seperate for security reasons, unless you want to send every client your SQL password. ;)
To disallow certain groups to use titles, just don't allow them to use the command in Ulib's groups.txt.

commands:

ulx settitle <player> <title> - Allows the user to set other player's titles.
ulx title <title> - Allows user to set their own title.
ulx mytitle - Tells you your current title.


If you intend to use MySQL, you need to add a table 'titles' to your database. To do so execute the following query on your database. Please note that this is correct syntax for MySQL 5.0.51a-community, you might have to edit this somewhat:

CREATE TABLE IF NOT EXISTS `titles` (
  `id` int(20) NOT NULL auto_increment,
  `steamid` varchar(20) default NULL,
  `title` varchar(40) default NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=11 ;


Credits:

Screen location script copied from MrPresident's anti-AFK script. Later modified somewhat to include alpha calculations and title display etc.
Spbogie for the suggestion of a query handler function to allow both mySQL and SQLite.
Thanks to Pfc. Johnson for helping me test and debug!
Also thanks to the people in the GmodSauce Sandbox server for their patience with my frequent resets, especially Paulendy, Hamit and Thizm.


CHANGELOG:

v1.2
	- [ADDED] Added check to see if player was ragdolled/jailed/turned into a melon. Names are hidden during this time to prevent them from showing up at wierd locations.

v1.1
	- [CHANGED] Name changed for Team Ulysses. Sorry guys, my mistake!
	- [CHANGED] Added mySQL configuration options instead of hardcoding connection details.
	- [ADDED] Added support for SQLite.
	- [ADDED] Added SQL subroutine to handle queries.

v1.0 
	- Initial release.
