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

[Request L4D2] Time counter (Maps, Campaign and Player)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zbeer
SourceMod Donor
Join Date: Aug 2010
Old 03-18-2011 , 01:27   [Request L4D2] Time counter (Maps, Campaign and Player)
Reply With Quote #1

I did not found anything like that. If there is, I'm sorry.

Itīs very usual the players asking in my coop server:

- How long we are playing, trying to finish this map (or campaign)?

So..., I would like to request a simple plugin (maybe not too much) with three commands only:

-time_map
to show the total time since the the first round started (i.e. c4m3_sugarmill_b), even if the round was restarted when all are dead.

and (if possible)
-time_campaign
Basically the same, but showing the total time since the first map of campaign (i.e. c2m1_highway), till the current map.

-time_me or time_player
to show the total time since you have joinned the server (summing all maps etc).

If all this stuff is hard to do, having only the first command will be great.

Well, that's it.

Thanks in advance!
Zbeer is offline
Zbeer
SourceMod Donor
Join Date: Aug 2010
Old 04-19-2011 , 15:38   Re: [Request L4D2] Time counter (Maps, Campaign and Player)
Reply With Quote #2

Bump!
Zbeer is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 04-21-2011 , 13:58   Re: [Request L4D2] Time counter (Maps, Campaign and Player)
Reply With Quote #3

PHP Code:
sm_timemap     // Time since map started.
sm_timetotal    // Time since player was in the server
sm_playtime    // ^^ 
Feel free to improve as this is all I'll do. Theres probably a plugin like this already (I didn't search).


Time since first campaign (when they change campaign during a game) is not included. I don't know how to detect when it's a new campaign.

EDIT: Increased string buffer size.
Attached Files
File Type: sp Get Plugin or Get Source (sm_playtime.sp - 818 views - 2.6 KB)
__________________

Last edited by Silvers; 04-22-2011 at 04:03.
Silvers is offline
Zbeer
SourceMod Donor
Join Date: Aug 2010
Old 04-23-2011 , 12:24   Re: [Request L4D2] Time counter (Maps, Campaign and Player)
Reply With Quote #4

Thank you so much for this Silvers!
Zbeer 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 04:53.


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