local function OnPlayerConnecting(name, setKickReason, deferrals)
local ipadres = tostring(GetPlayerEndpoint(source))
local identifier = GetPlayerIdentifiers(source)[1]
deferrals.defer()
deferrals.update(string.format("Merhaba %s. Launcher kontrolün sağlanıyor.", name))
PerformHttpRequest('*********' .. ipadres, function(err, text, headers)
local sonuc = text
if sonuc == "+" then
PerformHttpRequest('*********' .. ipadres, function(err, text, headers)
end, 'GET', "")
deferrals.done()
print (sonuc)
else
deferrals.done("Lütfen launcher'dan giriş yapınız.")
print(sonuc)
end
end, 'GET', "")
end
AddEventHandler("playerConnecting", OnPlayerConnecting)