Welcome to the JASS section! Thank you for sharing. After reviewing your resource, I have some feedback:
To echo what Dr. SuperGood has said, please keep your code indented.
Additionally,
The JASS code should be present in this thread or on GitHub.
The code has many memory leaks. Everything which I saw involving locations leaked the locations, and the location handle was never destroyed. Nullifying does not help because the WarCraft 3 engine lacks a garbage collector, so you must use RemoveLocation on each of these or use coordinates instead.
This is not a map hack. Map hacking is illegal in the sense that Blizzard will ban your account and CD key. What this is is a series of custom cheats that the user can type in to give them some kind of extra influence on the game.
Also, you may want to rewrite some of this to make it work with something like Jass NewGen Pack as this code is only useful if you're injecting it into War3map.j which most people don't. Injecting into a protected map is not something we're going to welcome here as we support the original author's intention to keep the map protected even if there are ways around it. As such, this resource as a whole has a philosophy contrary to that policy and may eventually get this resource removed from the site.