Guest User

Untitled

a guest
May 3rd, 2010
423
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. /*  
  2.  *  Copyright 2009 Naez Butt
  3.  *  Licensed under WTFPLv2    
  4. **/
  5.  
  6. #include "../MQ2Plugin.h"
  7. PreSetup("MQ2EmuMapHack");
  8.  
  9. #define EMU_MAP_HACK_OFFSET                     0x9247A0
  10.  
  11. void EnableMapAllZones(bool enable)
  12. {
  13.     PBYTE CanUseMap = (PBYTE)EMU_MAP_HACK_OFFSET ;
  14.     *CanUseMap = (enable) ? 1 : 0;
  15. }
  16.  
  17. PLUGIN_API VOID InitializePlugin(VOID)
  18. {
  19.     EnableMapAllZones(true);
  20. }
  21.  
  22. PLUGIN_API VOID ShutdownPlugin(VOID)
  23. {
  24.     EnableMapAllZones(false);
  25. }
  26.   kill niggers
  27. PLUGIN_API VOID OnZoned(PSPAWNINFO pChar, PCHAR szLine)
  28. {
  29.     EnableMapAllZones(true);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment