This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Timeleft Modifier


Post New Thread Reply   
 
Thread Tools Display Modes
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 07-25-2011 , 07:23   Re: Timeleft Modifier
Reply With Quote #11

I think its better to just make:

tm_time -5
tm_time 5

instead of add & remove
__________________
Retired.
Xalus is offline
Honors
Member
Join Date: Jul 2011
Old 07-25-2011 , 08:02   Re: Timeleft Modifier
Reply With Quote #12

@fysiks : Okay, I will test it later.

@Xalus : Why not. Maybe I will do what you said.

EDIT : I have tested that :

mp_timelimit 20 (timeleft 19:47)
tm_remove 20 --> so the timeleft is lower than 0
say timeleft --> No time limit.

All without the " if( newTimeLimit <= 0 ) " check.

So, this check is needed.

Xalus, I edit my plugin this evening to add your idea.

Last edited by Honors; 07-25-2011 at 08:24.
Honors is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 07-26-2011 , 03:22   Re: Timeleft Modifier
Reply With Quote #13

useless.?
Shadymn is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-26-2011 , 06:00   Re: Timeleft Modifier
Reply With Quote #14

Quote:
Originally Posted by Honors View Post
EDIT : I have tested that :

mp_timelimit 20 (timeleft 19:47)
tm_remove 20 --> so the timeleft is lower than 0
say timeleft --> No time limit.

All without the " if( newTimeLimit <= 0 ) " check.

So, this check is needed.
Clearly you didn't listen to me. Although, that is another case to consider. In that case I would not do anything and print to the user something like "That will remove the timelimit from your server and the map length will no longer be based on time".
__________________

Last edited by fysiks; 07-26-2011 at 06:04.
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-11-2011 , 06:46   Re: Timeleft Modifier
Reply With Quote #15

- Check if nextmap is valid before you change it, as an alternative, you could set timelimit to 1 minute so the server would change the map itself.
- Use cmd_access stock from amxmisc.inc to check users rights, will then work from dedicated and listenserver.
- I think you could increase szNum size to 4, hundreds should be ok.

In add and remove function :
- function, you don't need to retrive iNum and iTimeLimit before all checks have been passed.
- Lower szAuthID size to 32
- Cache get_timeleft value
- consider show_activity stock from amxmisc.inc


Moved to unapproved forum for now, to clean up the new plugin submission.
PM me as soon as you made changes so the plugin can be resubmitted.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
RaTza
New Member
Join Date: Nov 2011
Old 11-16-2011 , 13:28   Re: Timeleft Modifier
Reply With Quote #16

hy,how can i make this plugin to set at a certain hour the timeleft cvar? Like if is 00:00 set timelimit 0 and if is 08:00 am set timelimit 35
RaTza is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-16-2011 , 20:12   Re: Timeleft Modifier
Reply With Quote #17

Quote:
Originally Posted by RaTza View Post
hy,how can i make this plugin to set at a certain hour the timeleft cvar? Like if is 00:00 set timelimit 0 and if is 08:00 am set timelimit 35
Use Task Scheduler.
__________________
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-16-2011 , 23:42   Re: Timeleft Modifier
Reply With Quote #18

Author is inactive since he released this plugin.
Moved to unapprove forum for now.

PM me when you are active again.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 02:48.


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