Monthly Target: $400 Donations: $131
 32% 

[ANY] Play Time Rankings v0.5 (Updated 8/24/12)


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mitchell
~lick~
Join Date: Mar 2010
Location: noitacoL:
Plugin ID:
3143
Plugin Version:
0.5
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    3 
    Plugin Description:
    Adds a tag by the clients name, tag is configured and is determined by the playtime of the client.
    Old 08-09-2012 , 09: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:	7062
Size:	34.1 KB
ID:	107543  
    Attached Files
    File Type: cfg ranktime.cfg (456 Bytes, 608 views)
    File Type: sp Get Plugin or Get Source (playtime.sp - 601 views - 5.8 KB)
    File Type: smx playtime.smx (5.6 KB, 419 views)
    __________________

    Last edited by Mitchell; 01-22-2014 at 12:20.
    Mitchell is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 08-09-2012 , 09:36   Re: [Source 2009] Play Time Rankings
    Reply With Quote #2

    I've already found a couple bugs, i will be updating soon
    __________________
    Mitchell is offline
    Dj Sadin
    Junior Member
    Join Date: Jul 2012
    Old 08-09-2012 , 15:52   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #3

    Thank you so fucking much !!! <3
    Dj Sadin is offline
    Dj Sadin
    Junior Member
    Join Date: Jul 2012
    Old 08-09-2012 , 15:52   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #4

    is that 5 min our 5 hours?
    Dj Sadin is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 08-09-2012 , 17:01   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #5

    Quote:
    Originally Posted by Dj Sadin View Post
    is that 5 min our 5 hours?
    Oh my bad, all the configs are in minutes.
    __________________
    Mitchell is offline
    NameUser
    Senior Member
    Join Date: Apr 2012
    Location: Bay Area, California
    Old 08-09-2012 , 19:09   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #6

    Quote:
    Originally Posted by Mitchell View Post
    Oh my bad, all the configs are in minutes.
    Maybe add seperate configs for hours, months, years?
    __________________
    NameUser is offline
    Send a message via Skype™ to NameUser
    Jim E. Rustler
    BANNED
    Join Date: Jul 2012
    Old 08-09-2012 , 19:46   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #7

    Is this cumulative time in one connection? or overall?
    Jim E. Rustler is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 08-09-2012 , 23:26   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #8

    Quote:
    Originally Posted by Jim E. Rustler View Post
    Is this cumulative time in one connection? or overall?
    Overall


    Quote:
    Originally Posted by NameUser View Post
    Maybe add seperate configs for hours, months, years?
    Annnd what?
    Look at the example do

    Year: 365*24*60
    I dont understand why i would need to add another config when you could just do a little math.

    I added some thing about the config.
    __________________

    Last edited by Mitchell; 08-09-2012 at 23:29.
    Mitchell is offline
    Dj Sadin
    Junior Member
    Join Date: Jul 2012
    Old 08-09-2012 , 23:52   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #9

    Got Somebugs already i was on server tell the last one last minute
    i rejoin and the tag is still there but like in 20 mins i rejoin and it resets the minutes i played

    Last edited by Dj Sadin; 08-09-2012 at 23:53.
    Dj Sadin is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Location: noitacoL:
    Old 08-10-2012 , 01:51   Re: [Source 2009] Play Time Rankings v0.2
    Reply With Quote #10

    Quote:
    Originally Posted by Dj Sadin View Post
    Got Somebugs already i was on server tell the last one last minute
    i rejoin and the tag is still there but like in 20 mins i rejoin and it resets the minutes i played
    list your sm plugins list, and any error logs if you would, i havent encountered this problem yet, look into it tommorrow.
    __________________
    Mitchell is offline
    Reply


    Thread Tools
    Display Modes

    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 03:48.


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