Today I will show you how to add a script to es_extended so that players must have Steam open to join the server.
- Here is the tiny script you need to put at the bottom of es_extended/server/main.lua:
AddEventHandler('playerConnecting', function(name, err)
local steam = false
for k,v in pairs(GetPlayerIdentifiers(source)) do
if v:find("steam:") then
steam = true
end
end
if not steam then
err("Steam is required to join the server!")
CancelEvent()
return
end
end)