Raised This Month: $12 Target: $400
 3% 

[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
Plugin ID:
3143
Plugin Version:
0.5
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    1 
    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 , 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:	9997
Size:	34.1 KB
ID:	107543  
    Attached Files
    File Type: cfg ranktime.cfg (456 Bytes, 1170 views)
    File Type: sp Get Plugin or Get Source (playtime.sp - 1053 views - 5.8 KB)
    File Type: smx playtime.smx (5.6 KB, 785 views)

    Last edited by Mitchell; 01-22-2014 at 11:20.
    Mitchell is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 08-09-2012 , 08: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 , 14: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 , 14: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
    Old 08-09-2012 , 16: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 , 18: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 , 18: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
    Old 08-09-2012 , 22: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 22:29.
    Mitchell is offline
    Dj Sadin
    Junior Member
    Join Date: Jul 2012
    Old 08-09-2012 , 22: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 22:53.
    Dj Sadin is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 08-10-2012 , 00: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 09:13.


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