Raised This Month: $ Target: $400
 0% 

timeleft yields rounds left


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 07-11-2010 , 14:24   timeleft yields rounds left
Reply With Quote #1

I'd like to try to edit the timeleft.sma so that if mp_timelimit 0, it will output "No time limit. X rounds remaining" (where X is mp_maxrounds minus the number of rounds played).

I was trying to look at the roundsleft plugin in conjunction with the timeleft AMX plugin and try to consolidate them into one, but I couldn't figure out how to do that right.
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-11-2010 , 16:31   Re: timeleft yields rounds left
Reply With Quote #2

You hook new round then count each time it is called. Then just do mp_maxrounds - number of rounds counted when you print it in timeleft.
__________________
fysiks 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 07:07.


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