Raised This Month: $ Target: $400
 0% 

How to detect map change?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mugwump
Senior Member
Join Date: May 2004
Old 09-17-2007 , 15:04   How to detect map change?
Reply With Quote #1

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

Thanks,
Mugwump
Mugwump is offline
Miczu
Member
Join Date: Jul 2007
Old 09-17-2007 , 15:13   Re: How to detect map change?
Reply With Quote #2

Half-Life_1_Game_Events
Miczu is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 09-17-2007 , 15:44   Re: How to detect map change?
Reply With Quote #3

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")
__________________
Still...lovin' . Connor noob! Hello

Last edited by Alka; 09-17-2007 at 15:47.
Alka is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-17-2007 , 20:23   Re: How to detect map change?
Reply With Quote #4

Code:
register_event("30", "changeMap", "a")
ConnorMcLeod is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 09-19-2007 , 05:49   Re: How to detect map change?
Reply With Quote #5

Also, isn't there a message, SVC_Intermission or something, that hooks when the scores are displayed before map change?
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-19-2007 , 11:59   Re: How to detect map change?
Reply With Quote #6

Yeah, it's the event i gave.
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 16:09.


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