4 posts,
2 people · 776 views
Thread Rating: ★★★★★
| closedroutine-timing before real mapchange |
| Started by ghzero on 10-17-2007, 06:46 AM |
started this thread
Posts: 160Threads: 42
Joined: Sep 2007
10-17-2007, 06:46 AM
#1
hello,rnrnplease can you tell me whats a safe way for timing an routine that I want to execute before mapchange will done.. my script will make some jumps and set_task so it takes circa 10 secs(some treaded sql-inserts and changes). for a full server to finish. is it best only way to catch to timeleft ever x secs. to timing the start-point for the script?!
posted here
Posts: 623Threads: 57
Joined: Oct 2005
10-17-2007, 02:55 PM
#2
register_message( get_user_msgid("SVC_INTERMISSION"), "hook_mapchange" );rnrnIt hooks when the scores come up and playing is disabled.
started this thread
Posts: 160Threads: 42
Joined: Sep 2007
10-18-2007, 12:56 AM
#3
;7915']register_message( get_user_msgid("SVC_INTERMISSION"), "hook_mapchange" );rnrnIt hooks when the scores come up and playing is disabled.rnrnthank you for your answer. do you know how many time(secs.) will the routine have before the server will unload the amxx-plugins for mapchange ?! give it an serverside cvar for that time between start viewing the scoreboard and start loading(=time of unload of plugins?) ?!rnrnsome uses mapmanagers what will changelevel use to switch map before timeleft runs out..rnso I prefer this register for surely execute my lastscriptlines I want:rn
//hook when used deagsmapmanager for scripted changelevel before timeleft runs out..rn set_task(64.0, "task_LastRound", _, _, _, "d");//64secs.before mp_timelimit runs out call that rountine! bcoz 60 secs. before time runs out the mapmanage init the mapchange with countdown of 5 secs.
posted here
Posts: 623Threads: 57
Joined: Oct 2005
10-19-2007, 02:24 AM
#4
Look through the nextmap.amxx plugin - you'll probably find a way to throw it in there.

