0x688 said:What? You can just listen to the detach event as the game exits.
NarutoUA said:Detour hook on ExitProcess
Ok, thank you.springfield said:Ah, i think the game shutdown events don't get called if you use sa-mp /q or /quit. Both call on ExitProcess eventually which will call on your DllMain with DLL_PROCESS_DETACH.