Player Rank Time
Description:
Requested
here, and i really liked the idea, so i decided to make it, i already had half the code done, and some of the tag applies goes to Dr.McKay, since i used his method of the color config, and input
Requirements:
Requires the
Simple Chat Processor (redux) plugin.
Installation:
Install Simple Chat Processor (redux).
put playtime.smx into /addons/sourcemod/plugins
put ranktime.cfg into /addons/sourcemod/configs
If you want to late-load, do sm_rcon sm plugins load playtime
or just restart your server
Configuring:
ranktime.cfg:
Code:
"PlayTime >= 10" //Tag Name before player (You will have to add the brackets: [ ] if you want cleaner chats :))
{
"color" "#FF0000" //Color hex code NOTE THIS IS SOURCE 2009 ONLY, but you can use: 'T' = Teamcolor, 'G' = Green, 'O' = Olive, corresponding to the color on the engine
"playtime" "10" // in Minutes, if you want any other time, just times it, there is 60 minutes in a hour, and 24 hours in a day, ~30 days in a month, and 365 days a year.
}
Please not that it will stop the check if it has already found a number that the play time is under.
So with that being said make 0 at the way bottom.
Credits:
Dr.McKay -
Custom Chat Color's Tag Apply code (with some minor edits and tweaks)
Experimental Branch:
https://github.com/MitchDizzle/Play-...gs/tree/PTR-01
This has a few additions to it, but unlike the one here on the forums it will
Changelog: