You could try and edit some of the following, grab code from them, read them etc. and make it your own. Just don’t release without all perms.
https://forum.cfx.re/t/release-simple-disclaimer/24540
This has the server kick function you want