View Single Post
Author Message
Left_
New Member
Join Date: Sep 2016
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 - 350 views - 3.0 KB)
File Type: smx flat-titles.smx (6.0 KB, 331 views)
File Type: txt flat-titles.txt (228 Bytes, 377 views)

Last edited by Left_; 09-28-2016 at 11:34.
Left_ is offline