First off, your hack would need some way of communicating, aka Client serer communication, so basically say you run the server, when a player logs on to your hack, using the client, have that client log the username they use, and send it to server, and log that to a text file, now inside your hack loop, read the player data logged to the text file into an array, and read the player names in your lobby to an array and constantly compare them, if a player name in your lobby matches a player name using your hack(aka the logged text file), have the server(you), send a pre proggrammed command to your client, that when the client receives this, the client nullifys itself, aka you can close the client socket, this will kick the user from using your hack, or you can just set all the hacks on that client off. (its not exactly what you want, but it works)