Running functions on mp_timelimit
For example, I have a hard mp_timelimit = 20 in server.cfg
ow to make the launch map_times() in plagin After having passed the 19 mint on card? PHP Code:
PHP Code:
PHP Code:
|
Re: Running functions on mp_timelimit
This is done in mapchooser.sma (It's for 129 seconds remaining; you would use 60). Look there to see how to do it.
|
Re: Running functions on mp_timelimit
I downloaded on the Internet, and in the script that I have, I can not understand how it works ...
Decided to write)) So I did this: Quote:
Map lasts 20 minutes. Players lost her 19 minutes. and start voting. I have a well as the plug-in, which prolongs the playing time, namely "mp_timelimit". For example, players played 15 minutes (up to 4 minutes of the vote), I extended the map for 15 minutes. And it must be voted nachel after 19 minutes. Ie if the card is left to the end of 1 minute. |
Re: Running functions on mp_timelimit
Copied directly from mapchooser.sma (literally, hence why it is not spaced correctly, you should fix the spacing yourself).
PHP Code:
|
Re: Running functions on mp_timelimit
Game server I have not one, and each of them, get_timeleft () is a different meaning.
And with such a script as you have, I failed to do so, so that when the end of the card remains 1 minute, start voting. Offers can be so rude? Code:
#include <amxmodx> |
Re: Running functions on mp_timelimit
|
Re: Running functions on mp_timelimit
Your code is sent every 15 minutes using a function. This means that the function will start at 15, 30, 45, 60 ... minutes.
And I need the function starts, when the end of the map remains 1 minute. Quote:
|
Re: Running functions on mp_timelimit
Quote:
|
Re: Running functions on mp_timelimit
Then what is the best script?
It is best to check every 15 seconds? or check once in about 1293 seconds. |
Re: Running functions on mp_timelimit
And what if somebody changes the timeleft mid-map? Or if the current map gets extended? How will you account for those situations? While 15 seconds may be a bit frequent, only checking it once opens your script up to errors
|
| All times are GMT -4. The time now is 08:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.