As the common saying goes: "god(s) help those who help themselves", if the gods could help someone, it'd be only in accordance with that individual's wholesome kamma. Someone who kills, cheats, or engages in various misconducts shouldn't expect to get "help" no matter how frequent and sincere s/he prays:
>From [AN 5.57][1]: "There are these five facts that one should reflect on often, whether one is a woman or a man, lay or ordained. Which five?

>"'I am subject to aging, have not gone beyond aging.' This is the first fact that one should reflect on often, whether one is a woman or a man, lay or ordained.

>"'I am subject to illness, ... death, ...

>"<strong>'I am the owner of my actions, heir to my actions, born of my actions, related through my actions, and have my actions as my arbitrator. Whatever I do, for good or for evil, to that will I fall heir.'</strong> ...

>"These are the five facts that one should reflect on often, whether one is a woman or a man, lay or ordained.

[1]: http://www.accesstoinsight.org/tipitaka/an/an05/an05.057.than.html