I've created anti-cheat scripts that make it impossible to hack on my gamemode, health, armour, weapons, teleport, vehicles, etc. However, my gamemode is designed to eliminate all uses of vending machines, fast food, pay n sprays, mod shops, etc. Even pausing or just any way you can avoid taking damage when someone has you pinned will result with the anti-cheat taking action against the player. The key is just to out smart those hackers...
The same way with DDos Attacks, IF I get how DDos Attacks work (Not TOO familar with it), then I have a solution to stop DDos Attackers in thier tracks & make it pointless for them to DDos the protected server. However, there is a reason I haven't gone into much detail about DDos Attacks: But if interested in coding a possible solution, just pm me from any offical admin account & I'll be more than happy to share my secrets