@tankenabard unfortunately no. The best advice I can give you is to look at others code.
Get a couple of simple mods, the simpler the better, then see what it takes to get a simple mod going.
Then find a mod or map that disables certain units - that will show you how it's done.
Then all you need is to apply and tweak the code to your needs and wants <-- that's the part nobody can help you with