AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Flat Titles (https://forums.alliedmods.net/showthread.php?t=288377)

Left_ 09-28-2016 11:33

[ANY] Flat Titles
 
3 Attachment(s)
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

Mitchell 09-28-2016 12:23

Re: [ANY] Flat Titles
 
Custom chat colors also uses a flat file to determine the player's tag, tag color, name color, and text color.

Left_ 09-28-2016 13:22

Re: [ANY] Flat Titles
 
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.

headline 09-28-2016 22:35

Re: [ANY] Flat Titles
 
Kv files for this would be nice. You could also do color in that, too.



btw add me on steam below

404UserNotFound 10-06-2016 23:04

Re: [ANY] Flat Titles
 
Quote:

Originally Posted by Left_ (Post 2457706)
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 (Post 2457692)
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.


All times are GMT -4. The time now is 20:03.

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