Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-10-2012 , 19:28   Re: [Source 2009] Play Time Rankings v0.2
Reply With Quote #11

Note that if you try to use this with Custom Chat Colors (for whatever reason, I don't know why you would) and apply a tag with CCC, both tags will appear (I think, haven't tested). Whichever plugin gets the forward first will have its tag first.

Edit: Actually, this will not work with CCC due to both registering the same forward.

Mitchell: Care to rename the forward?

Edit 2:
PHP Code:
for(new client 1client MaxClientsclient++) 
should be
PHP Code:
for(new client 1client <= MaxClientsclient++) 
or else there's a chance that you'll miss a client.

Edit 3: This can support all games if you don't use the custom colors. Might want to update it so that it can work on anything.
__________________

Last edited by Dr. McKay; 08-10-2012 at 19:35.
Dr. McKay is offline
m20072
Junior Member
Join Date: Feb 2011
Old 08-12-2012 , 14:56   Re: [Source 2009] Play Time Rankings v0.2
Reply With Quote #12

Very nice mod do you sell mods too? if so hook me up with your steam profile so ill add you
m20072 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-12-2012 , 15:48   Re: [Source 2009] Play Time Rankings v0.2
Reply With Quote #13

Quote:
Originally Posted by m20072 View Post
Very nice mod do you sell mods too? if so hook me up with your steam profile so ill add you
My Steam profiel is MitchDizzle_


And Dr.McKay, i just removed the forward, i noticed that it actually wasn't even used..

Last edited by Mitchell; 08-12-2012 at 16:01.
Mitchell is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 08-15-2012 , 18:29   Re: [ANY] Play Time Rankings v0.3
Reply With Quote #14

Looks good to me!

I forgot about OnClientCookiesCached.
__________________

Last edited by Dr. McKay; 08-15-2012 at 19:09.
Dr. McKay is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-15-2012 , 18:44   Re: [ANY] Play Time Rankings v0.3
Reply With Quote #15

Quote:
Originally Posted by Dr. McKay View Post
Looks good to me!
Would recommend you cache the variables and the clients team due to the reoccuring timer every second looping through every player in-game. Especially since you call GetClientTeam 3x in the same line. Your playtime_version cvar has no business being cheat flagged, you sneaky sneaky you - Apparently this is okay now, my mistake. Error checking would be nice (not required) in case you have an end-user that can't read instructions and tries to run the plugin without config files, something like SetFailState("Hey dumbass. Read instructions.") if you're felling fancy. And most importantly, you'll want to see if a client's cookies are loaded prior to issuing anything (AreClientCookiesCached), accounting for late load (OnClientCookiesCached) if cookies load after OnClientPutInServer, and have a boolean state reflecting this so you don't save cookies if a client disconnects prior to having their data loaded. Without doing this, you'll have clients losing data left and right, especially running something like SourceBans or any plugin with multiple queries.
__________________

Last edited by thetwistedpanda; 08-15-2012 at 18:57.
thetwistedpanda is offline
SHAREN
Senior Member
Join Date: Dec 2011
Old 08-19-2012 , 15:57   Re: [ANY] Play Time Rankings v0.3
Reply With Quote #16

how to take time out of hlstatsx?
SHAREN is offline
Send a message via Skype™ to SHAREN
Mitchell
~lick~
Join Date: Mar 2010
Old 08-23-2012 , 10:23   Re: [ANY] Play Time Rankings v0.3
Reply With Quote #17

I will be updating this soon, as of right now there might be a few bugs if the server has plugins that override clientprefs.
Mitchell is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 08-24-2012 , 09:33   Re: [ANY] Play Time Rankings v0.5 (Updated 8/24/12)
Reply With Quote #18

Updated V0.5
Fixed alot of bugs, it should be very stable now, thanks for the tips Panda
Mitchell is offline
m20072
Junior Member
Join Date: Feb 2011
Old 08-28-2012 , 14:11   Re: [ANY] Play Time Rankings v0.5 (Updated 8/24/12)
Reply With Quote #19

It will be very nice if you could make an option to make the text color (the message you type) in the color of your rank tag <3

Last edited by m20072; 08-28-2012 at 14:12.
m20072 is offline
deltadude
SourceMod Donor
Join Date: Mar 2010
Old 11-14-2012 , 06:49   Re: [ANY] Play Time Rankings v0.5 (Updated 8/24/12)
Reply With Quote #20

also agree the chat color option would be great too.
Would be even more amazing if it assigned a flag for each rank too
id pay for that.
__________________

Last edited by deltadude; 11-14-2012 at 07:49.
deltadude 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 13:55.


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