Raised This Month: $ Target: $400
 0% 

[L4D2/REQ] Looking for a plugin to print player loading time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Understarifal
Junior Member
Join Date: Aug 2019
Old 10-20-2019 , 04:12   [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #1

Hello, I'm looking for a plugin to print player loading time to chat.
Example: when a player was complete load in game, then print player total loading time to chat.
Does someone can help or any ideas? thanks.
Sorry, my English is not very well.

Last edited by Understarifal; 11-02-2019 at 05:31.
Understarifal is offline
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 10-22-2019 , 09:24   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #2

Not tested on L4D2.
Attached Files
File Type: sp Get Plugin or Get Source (loadingtime.sp - 226 views - 822 Bytes)
Kolapsicle is offline
Understarifal
Junior Member
Join Date: Aug 2019
Old 10-23-2019 , 04:06   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #3

Thank you for your help, it works fine.
Understarifal is offline
Understarifal
Junior Member
Join Date: Aug 2019
Old 11-02-2019 , 05:31   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #4

Hello, I try this plugin a lot of time, and find a question to ask.
The plugin works fine, but it will print player and AI load time every map. I want to print only one player and first loading time.
It's plugin print information:
[SM] xxx connected in 6.32 seconds.
[SM] connected in 0.00 seconds.
[SM] connected in 0.00 seconds.
[SM] connected in 0.00 seconds.
If it print finish, it's still print AI "[SM] connected in 0.00 seconds" in others time.
Can help me to fix it or someone help me to fix it? Thanks.
Sorry, my English is not very well.
Understarifal is offline
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 11-03-2019 , 00:26   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #5

I'm not sure who's going to see it, but this should print one message per map based on the first player's connection time.
Attached Files
File Type: sp Get Plugin or Get Source (loadingtime.sp - 151 views - 973 Bytes)
Kolapsicle is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 11-04-2019 , 02:08   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #6

Here's one that doesn't need an ArrayList just to track the time.

- The connection time starts when the client connects and ends when the admin check is finished.
- We call GetEngineTime() twice and subtract the first call from the second to get the difference.
Attached Files
File Type: sp Get Plugin or Get Source (loadingtime.sp - 184 views - 634 Bytes)
__________________
Psyk0tik is offline
Kolapsicle
Senior Member
Join Date: Oct 2014
Old 11-04-2019 , 03:03   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #7

Quote:
Originally Posted by Crasher_3637 View Post
Here's one that doesn't need an ArrayList just to track the time.

- The connection time starts when the client connects and ends when the admin check is finished.
- We call GetEngineTime() twice and subtract the first call from the second to get the difference.
I used an ArrayList to track userid's in case a client index shifts, or is this not the case here?
Kolapsicle is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 11-04-2019 , 03:24   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #8

In this case it doesn't matter, the way Crasher coded it covers that problem.
__________________
Silvers is offline
Understarifal
Junior Member
Join Date: Aug 2019
Old 11-04-2019 , 20:25   Re: [L4D2/REQ] Looking for a plugin to print player loading time
Reply With Quote #9

Thank you for your help, I have a queston to ask. Does someone can let loading time to print only once? Because loading time still print every map.
Sorry, my English is not very well.
Understarifal is offline
Reply



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:28.


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