Fix SteamID Spoofer on your server (lua file)
Yea I had some fun with the steamid spoofer but its time to fix it now,
If you own a server and you wish to patch the steamid spoofer issue coz garry cant code shit, Do the following:
Make a lua file and put the code below in lua/autorun/server
Copy this code below and put it in the lua file
Code:
// No thanks garry
// Anti SteamID Spoofer by da senator
util.AddNetworkString("nothxgarry_authme");
net.Receive( "nothxgarry_authme", function( len, pl )
local thereClaimedID = net.ReadString();
if(thereClaimedID != pl:SteamID()) then
print("NoThxGarry: Player " .. pl:Nick() .. " Tried Spoofing There SteamID to " .. thereClaimedID);
pl:Kick("SteamID Authentication Mismatch, Please rejoin if you think this is a mistake. Mismatch Information: SteamID Sync Failure (You were claiming your SteamID Was " .. thereClaimedID.. " But the server says its " .. pl:SteamID() .. ")");
end
end )
timer.Create("CheckID", 10,0, function()
for k,v in next, player.GetAll() do
v:SendLua([[net.Start("nothxgarry_authme"); net.WriteString(LocalPlayer():SteamID()); net.SendToServer();]]);
end
end)
Cya
Shouts to MeepDarknessMeep for getting angry that I patched his pasta exploit in under a big 60 seconds loool