How can I detect when a map changes?

How can I detect when a map changes so that I can run code once the map change is complete? This is while playing Half-Life 2 maps.

**[Gamemode.InitPostEntity

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.InitPostEntity)**