bu mu üstün kanka OPASFJMMOPMASFJMMOPŞŞMASFJJMOPĞŞJŞMOPĞJMŞASFJMMOASFJMPĞJM
local function OnPlayerConnecting(name, _, deferrals)
local player = source
local isIdtypeAlreadyInUse = false
local isIdtypeAlreadyInUse2 = false
local idtype
if Config.VerifyBoth then
local idtype2
end
local identifiers = GetPlayerIdentifiers(player)
deferrals.defer()
Wait(0)
deferrals.update(string.format('Bağlantın kontrol ediliyor...', name))
if Config.VerifyBoth then
for _, v in pairs(identifiers) do
if string.find(v, 'steam') then
idtype = v
break
end
end
for _, v in pairs(identifiers) do
if string.find(v, 'license') then
idtype2 = v
break
end
end
else
for _, v in pairs(identifiers) do
if string.find(v, Config.VerificationMethod) then
idtype = v
break
end
end
end
Wait(2500)
deferrals.update(string.format('Sunucuda olup olmadığını kontrol ediyoruz....', name))
if Config.VerifyBoth then
isIdtypeAlreadyInUse = IsIdtypeInUse(idtype, 'steam')
isIdtypeAlreadyInUse2 = IsIdtypeInUse(idtype2, 'license')
else
isIdtypeAlreadyInUse = IsIdtypeInUse(idtype, Config.VerificationMethod)
end
Wait(2500)
if Config.VerifyBoth then
if isIdtypeAlreadyInUse or isIdtypeAlreadyInUse2 then
deferrals.done('Zaten sunucudasın?
')
if Config.EnableDiscordLogs then
local dcsend = {
{
['title']= Config.DiscordTitle,
['color'] = Config.DiscordColor,
['description'] = 'Oyuncu İdentifier: **'..idtype..' / '..idtype2..'**',
['footer']= {
['text']= 'ra1derAntiDB',
},
}
}
PerformHttpRequest(Config.DiscordWebhookLink, function(err, text, headers) end, 'POST', json.encode({ username = Config.DiscordUserName, embeds = dcsend}), { ['Content-Type'] = 'application/json' })
end
else
deferrals.done()
-- Add any additional defferals here you may need for example queue system!
end
else
if isIdtypeAlreadyInUse then
deferrals.done('Zaten Sunucudasın?')
if Config.EnableDiscordLogs then
local dcsend = {
{
['title']= Config.DiscordTitle,
['color'] = Config.DiscordColor,
['description'] = 'Oyuncu Identifier: **'..idtype..'**',
['footer']= {
['text']= 'ra1derAntiDB',
},
}
}
PerformHttpRequest(Config.DiscordWebhookLink, function(err, text, headers) end, 'POST', json.encode({ username = Config.DiscordUserName, embeds = dcsend}), { ['Content-Type'] = 'application/json' })
end
else
deferrals.done()
-- Add any additional defferals here you may need for example queue system!
end
end
end
AddEventHandler('playerConnecting', OnPlayerConnecting)
function IsIdtypeInUse(idtype, vmethod)
local players = GetPlayers()
for _, player in pairs(players) do
local identifiers = GetPlayerIdentifiers(player)
for _, id in pairs(identifiers) do
if string.find(id, vmethod) then
local playerIdtype = id
if playerIdtype == idtype then
return true
end
end
end
end
return false
end of bu halis mi knk bunu yazarken pardon başka bir şeyden copy paste ederken yorulmadın mı ben bu kadar ilkel low iq kod düzeneği görmedim...