Hard coded ban

Ok so i’m trying to make a hard ban for someone in which they are unable to be unbanned by admins or whatever, and i came up with the code below, i have put my steamid in it and put it on my server to start with but it seems not to work, i’d be very greatful for a working version of what i’ve tried to do.

Thanks.


if Player:SteamID() == STEAM_0:1:71671665 then
	Player:Ban( 0, true )

(i’ve been putting this in my lua/autorun/server directory if that is any significance to my error)

Use CheckPassword.

[lua]
game.ConsoleCommand("banid 0 STEAM_0:1:71671665
")
[/lua]

Alittle off topic, but why are you unable to trust the staff of your server?
Seems like a greater problem is happening here.

Sorry if I’m a noob but shouldn’t the steam id be in quotes

if Player:SteamID() == “STEAM_0:1:71671665” then
Player:Ban( 0, true )