Steam ID auto Kick

So ive been trying to use

[LUA]if not ply:SteamID = “STEAM_X:X:XXXXXXXXXX” then
ply:Kick(“You are not alloud in here!”)

But it does not seem to work, ow do i do this the proper way?

[lua]if ply:SteamID() ~= “STEAM_X:X:XXXXXXXXXX” then
ply:Kick(“You are not allowed in here!”)

Its still does not work, I’m trying to run this in

[LUA]function GM:PlayerInitialSpawn( ply )

What if you try this hook?

THanks for the help i tweeked it a bit and have it working