if you could make the codes like
-haxon (Turn on the cheats)
-gold xxx (gives god)
-wood xxx (gives wood)
-invul (makes unit invulernable)
-vul (makes unit vulernable)
Here it is, unprotected and with a -gold and a -wood cheat.
I haven't been able to make -vuln and -invuln work but the triggers are there, I just can't find the thing that makes the selected unit rather then the triggering unit.
You should rename the map if you want to play online.
Untitled Trigger 001
Events
Player - Player 1 (Red) types a chat message containing -inv as An exact match
Conditions
Actions
Unit Group - Pick every unit in (Units in (Entire map) owned by (Triggering player)) and do (Unit - Make (Picked unit) Invulnerable)
But have all the players playing be in the events too.