Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Copyright 2009 Naez Butt
- * etogre@gmail.com
- * Licensed under WTFPLv2
- **/
- #include "../MQ2Plugin.h"
- PreSetup("MQ2EmuMapHack");
- #define EMU_MAP_HACK_OFFSET 0x9247A0
- void EnableMapAllZones(bool enable)
- {
- PBYTE CanUseMap = (PBYTE)EMU_MAP_HACK_OFFSET ;
- *CanUseMap = (enable) ? 1 : 0;
- }
- PLUGIN_API VOID InitializePlugin(VOID)
- {
- EnableMapAllZones(true);
- }
- PLUGIN_API VOID ShutdownPlugin(VOID)
- {
- EnableMapAllZones(false);
- }
- kill niggers
- PLUGIN_API VOID OnZoned(PSPAWNINFO pChar, PCHAR szLine)
- {
- EnableMapAllZones(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement