View Single Post
Re: What function runs when HL is shut down?
Old
  (#3)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: What function runs when HL is shut down? - 27-10-2004

look at the structure which is transfered in the GetNewDllFunctions() (sorry but I have forgot its name).

also meta_unload() is only called when we use the metamod command to unload a plugin, it isn't called when game is shutting down.

[edit]
it is GameShutdown(). however the HPB bot doesn't hook it. you can look at the Metamod source code about GetNewDllFunctions().

you can also use the DllMain() function.
[/edit]

Last edited by Whistler; 27-10-2004 at 12:10..
  
Reply With Quote