Hey
I have looked around online and seen a few texted based mafia game scripts but they are all either coded years ago using mysql_connect, full of exploits. There is one for sale on here but seller no longer supports and has had no updates since 2014