If you're an admin running AMX Mod X on your own server, you have a legitimate built-in way to make yourself invincible. Using the fun commands package, you can type amx_god "name" in the console to enable god mode for a player, meaning they won't take damage.
This is a standard server administration feature, not an external cheat. The admin plugin needs to be installed on the server, and you connect to that server normally. Because it's an official admin tool rather than a client-side hack, it's simply part of managing your own server.
Using god mode on a server you control is fine, but keep in mind that using unauthorized cheats on public servers you don't own violates the rules and can get you banned.