AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Play Time Rankings v0.5 (Updated 8/24/12) (https://forums.alliedmods.net/showthread.php?t=192348)

Mitchell 08-09-2012 08:30

[ANY] Play Time Rankings v0.5 (Updated 8/24/12)
 
4 Attachment(s)
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 :D

https://forums.alliedmods.net/attach...1&d=1344516228


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

Mitchell 08-09-2012 08:36

Re: [Source 2009] Play Time Rankings
 
I've already found a couple bugs, i will be updating soon :D

Dj Sadin 08-09-2012 14:52

Re: [Source 2009] Play Time Rankings v0.2
 
Thank you so fucking much !!! <3

Dj Sadin 08-09-2012 14:52

Re: [Source 2009] Play Time Rankings v0.2
 
is that 5 min our 5 hours? :P

Mitchell 08-09-2012 16:01

Re: [Source 2009] Play Time Rankings v0.2
 
Quote:

Originally Posted by Dj Sadin (Post 1767873)
is that 5 min our 5 hours? :P

Oh my bad, all the configs are in minutes.

NameUser 08-09-2012 18:09

Re: [Source 2009] Play Time Rankings v0.2
 
Quote:

Originally Posted by Mitchell (Post 1767911)
Oh my bad, all the configs are in minutes.

Maybe add seperate configs for hours, months, years?

Jim E. Rustler 08-09-2012 18:46

Re: [Source 2009] Play Time Rankings v0.2
 
Is this cumulative time in one connection? or overall?

Mitchell 08-09-2012 22:26

Re: [Source 2009] Play Time Rankings v0.2
 
Quote:

Originally Posted by Jim E. Rustler (Post 1768023)
Is this cumulative time in one connection? or overall?

Overall


Quote:

Originally Posted by NameUser (Post 1768006)
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.

Dj Sadin 08-09-2012 22:52

Re: [Source 2009] Play Time Rankings v0.2
 
Got Somebugs already :P 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

Mitchell 08-10-2012 00:51

Re: [Source 2009] Play Time Rankings v0.2
 
Quote:

Originally Posted by Dj Sadin (Post 1768177)
Got Somebugs already :P 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.


All times are GMT -4. The time now is 14:38.

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