I got some questions for you. Do you want us to do everything for you? in that case, we need whole plugin, because if it doesn't connect, then you would have to add IF statements before every connection.
If you're asking for help in a sense of doing things yourself and just need some directions given, then read this:
https://forums.alliedmods.net/showthread.php?t=132686 and if you got more questions left, feel free to ask.