i think rcon is useless to ban people as it is only till the server restarts. Ban by IP is also not the best because IPs change and you can easy get a new one. You need to require steam running because it wouldnt make much sense to have this plugin else.
In citmp-server.yml change the line from
DisableAuth: true
to
DisableAuth: false
and add - steamidban to “AutoStartResources:”
Example of the blacklist/ban array in “server.lua”:
local blacklist = {
"1100001000ee0",
"1100001000e0e"
}
Steamids can be found if you connect to your server via a rcon tool and type “status”
HUGHE thanks to @Mr.Scammer because he was providing the original script which bans/blacklists players by IP but it was untested. He helped me alot with questions i had and i am sure he will also help you!
IF new identifiers get added, shouldnt have them keys like [2], [3] etc? and not put in the same string as [1] ?
I dont know what the output of GetPlayerIdentifiers(source) is but i am sure even if i dont remove the “steam:” part and you add new identifier in the same [1] key, i need to edit my code because then i would have to search for “steam:” first.
are you logget into steam while trying to connect? If yes, try multiple times or just press enter.
Its a bug or error that does not come from the plugin.
Seems to blacklist players but there is no notification to the player, just keeps sitting on a loading screen. Which is fine they are banned I could care less what they do lol but just would rather the message pop up so they can appeal on our site.