I have a great script, but the problem is to run the function (map_times), the time code on the map, have 1 minute or less.
Code:
#include <amxmodx>
public plugin_init()
{
register_plugin("Test", "1.0", "Author")
}
public map_times()
{
...
}
How to do it?
But, I have a plugin - the extension of the map.
I need to get a new mp_timelimit before running the function.
For example:
Before the end of the map, there were 5 minutes.
I extended for 15 more minutes
Code:
set_pcvar_float(get_cvar_pointer("mp_timelimit"), get_pcvar_float(get_cvar_pointer("mp_timelimit")) + 20.0)
After that, the card is left to the end of 20 minutes.
And after 20 minutes, start function (map_times)