AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to detect map change? (https://forums.alliedmods.net/showthread.php?t=60964)

Mugwump 09-17-2007 15:04

How to detect map change?
 
Is there an event that I can hook to detect when a map change is about to happen?

Thanks,
Mugwump

Miczu 09-17-2007 15:13

Re: How to detect map change?
 
Half-Life_1_Game_Events

Alka 09-17-2007 15:44

Re: How to detect map change?
 
lol ?! I can predict...wow, you can't! You can hook amx_map command for a instant change map, or set a task with 1~2 sec before mapchange by timeleft:
Code:

set_task(2.0, "my_task", MY_TASK_ID, "", 0, "d")

ConnorMcLeod 09-17-2007 20:23

Re: How to detect map change?
 
Code:
register_event("30", "changeMap", "a")

Wilson [29th ID] 09-19-2007 05:49

Re: How to detect map change?
 
Also, isn't there a message, SVC_Intermission or something, that hooks when the scores are displayed before map change?

ConnorMcLeod 09-19-2007 11:59

Re: How to detect map change?
 
Yeah, it's the event i gave.


All times are GMT -4. The time now is 16:10.

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