View Single Post
Author Message
Mitchell
~lick~
Join Date: Mar 2010
Old 08-09-2012 , 08:30   [ANY] Play Time Rankings v0.5 (Updated 8/24/12)
Reply With Quote #1

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:
Spoiler
Attached Thumbnails
Click image for larger version

Name:	240_screenshots_2012-08-09_00002.jpg
Views:	10009
Size:	34.1 KB
ID:	107543  
Attached Files
File Type: cfg ranktime.cfg (456 Bytes, 1175 views)
File Type: sp Get Plugin or Get Source (playtime.sp - 1060 views - 5.8 KB)
File Type: smx playtime.smx (5.6 KB, 804 views)

Last edited by Mitchell; 01-22-2014 at 11:20.
Mitchell is offline