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

[ANY] Flat Titles


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Left_
New Member
Join Date: Sep 2016
Plugin ID:
5368
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
 
Plugin Description:
Flat file titles, no databases required.
Old 09-28-2016 , 11:33   [ANY] Flat Titles
Reply With Quote #1

This is my first plugin for learning plugin scripting so pls go easy.
From what I saw there were a lot of title plugins which used databases to store their titles along with other things. And since I couldn't be stuffed with setting up a database for my server I wrote my own plugin which uses flat file structure, hence the name.

Also if any experienced programmer would like to help point out anything which should be done differently that would be nice.

General feedback would be awesome too.

Description
Concatenates a title in front of a players name in chat. Doesn't require a database to setup and easy to use.

Installation
Place flat-titles.smx into sourcemod/plugins
Place flat-titles.txt into sourcemod/data

Feature list
Titles
No databases
Easy to manage titles

Dependencies
Chat-Processor

Changelog
Code:
1.0  (29-9-16)

-Initial Release
TODO:
-Optimize code?
-Add support to change title colours (hard coded orange atm)
-Add ability to use console/chat commands to add titles
e.g. sm_addtitle <name> <title> <colour>
-Add ability to change title from console/chat
-Add regex support to loosen titles format
-Add support for groups
-Add suffixes

Priority is in order of list
Attached Files
File Type: sp Get Plugin or Get Source (flat-titles.sp - 344 views - 3.0 KB)
File Type: smx flat-titles.smx (6.0 KB, 322 views)
File Type: txt flat-titles.txt (228 Bytes, 370 views)

Last edited by Left_; 09-28-2016 at 11:34.
Left_ is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 09-28-2016 , 12:23   Re: [ANY] Flat Titles
Reply With Quote #2

Custom chat colors also uses a flat file to determine the player's tag, tag color, name color, and text color.
Mitchell is offline
Left_
New Member
Join Date: Sep 2016
Old 09-28-2016 , 13:22   Re: [ANY] Flat Titles
Reply With Quote #3

well, rip

I guess I'll still work on this since it's all a learning experience regardless, getting feedback here would be nice anyway.
Left_ is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 09-28-2016 , 22:35   Re: [ANY] Flat Titles
Reply With Quote #4

Kv files for this would be nice. You could also do color in that, too.



btw add me on steam below

Last edited by headline; 09-28-2016 at 22:36.
headline is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 10-06-2016 , 23:04   Re: [ANY] Flat Titles
Reply With Quote #5

Quote:
Originally Posted by Left_ View Post
well, rip

I guess I'll still work on this since it's all a learning experience regardless, getting feedback here would be nice anyway.
Don't give up on this, and here's why:

Quote:
Originally Posted by Mitchell View Post
Custom chat colors also uses a flat file to determine the player's tag, tag color, name color, and text color.
But that's for Simple Chat-Processor, this is for Drixevel's Chat-Processor. Chat-Processor does a lot of things differently than SCP does.
404UserNotFound 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 01:01.


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