Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local t = vgui
- local c = table
- local i = {}
- local l = {}
- local r = {}
- function LoadAdminTable()
- i = {
- {
- Name = GetTranslation("Kicker"),
- Action = "rlrp_kick",
- Input = GetTranslation("Raison du kick :"),
- Rank = 4
- },
- {
- Name = GetTranslation("Bannir"),
- Action = "reallife_showbanmenu",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Tuer"),
- Action = "rlrp_kill",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("ESP Start"),
- Action = "rlrp_esp",
- Input = nil,
- Rank = 5
- },
- {
- Name = GetTranslation("ESP Stop"),
- Action = "rlrp_unesp",
- Input = nil,
- Rank = 5
- },
- {
- Name = GetTranslation("Donner argent"),
- Action = "rlrp_give_money",
- Input = GetTranslation("Montant : "),
- Rank = 5
- },
- {
- Name = GetTranslation("Definir argent"),
- Action = "rlrp_set_money",
- Input = GetTranslation("Montant : "),
- Rank = 5
- },
- {
- Name = GetTranslation("Retirer argent"),
- Action = "rlrp_take_money",
- Input = GetTranslation("Montant : "),
- Rank = 5
- },
- {
- Name = GetTranslation("Donner arme"),
- Action = "rlrp_give_weapon",
- Input = GetTranslation("Arme : "),
- Rank = 4
- },
- {
- Name = GetTranslation("Freezer"),
- Action = "rlrp_freeze",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Unfreezer"),
- Action = "rlrp_unfreeze",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Invisible"),
- Action = "rlrp_invis",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Visible"),
- Action = "rlrp_uninvis",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Teleporter le joueur"),
- Action = "rlrp_tp",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("God"),
- Action = "rlrp_godmode",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("UnGod"),
- Action = "rlrp_ungodmode",
- Input = nil,
- Rank = 4
- },
- {
- Name = "Stealth Mode ON",
- Action = "rlrp_stealthon",
- Input = nil,
- Rank = 4
- },
- {
- Name = "Stealth Mode OFF",
- Action = "rlrp_stealthoff",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Se teleporter vers le joueur"),
- Action = "rlrp_teleporttoplayer",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Blacklister"),
- Action = "rlrp_startblacklist",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Reanimer"),
- Action = "rlrp_reanimate",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Demote"),
- Action = "rlrp_demoteplayer",
- Input = nil,
- Rank = 4
- },
- {
- Name = "Screenshot",
- Action = "rlrp_screenplayer",
- Input = nil,
- Rank = 4
- },
- {
- Name = GetTranslation("Retirer le permis d'un joueur"),
- Action = "rlrp_removedrivinglicence",
- Input = nil,
- Rank = 4
- },
- {
- Name = "Autoriser l'utilisation d'arme en voiture",
- Action = "rlrp_allowweaponvehicle",
- Input = nil,
- Rank = 5
- },
- {
- Name = GetTranslation("Interdire l'utilisation d'arme en voiture"),
- Action = "rlrp_disallowweaponvehicle",
- Input = nil,
- Rank = 5
- },
- {
- Name = GetTranslation("Définir le rank pour le job actuel"),
- Action = "rlrp_setjobrank",
- Input = "Score : ",
- Rank = 5
- },
- {
- Name = "Espionner le joueur",
- Action = "rlrp_spyplayer",
- Input = "Temps de rafraichissement",
- Rank = 4
- }
- }
- l = {
- {
- Name = "Maintenance critique",
- Action = "rlrp_lockserver",
- Rank = 4
- },
- {
- Name = GetTranslation("Redemarrer"),
- Action = "rlrp_restart",
- Rank = 4
- },
- {
- Name = GetTranslation("Nettoyer les decals"),
- Action = "rlrp_cleardecals",
- Rank = 4
- },
- {
- Name = GetTranslation("Radar"),
- Action = "rlrp_startradar",
- Rank = 4
- },
- {
- Name = GetTranslation("Stopper radar"),
- Action = "rlrp_stopradar",
- Rank = 4
- },
- {
- Name = GetTranslation("Supprimer les voitures HS"),
- Action = "rlrp_clearcars",
- Rank = 4
- },
- {
- Name = GetTranslation("Afficher les logs"),
- Action = "rlrp_showlog",
- Rank = 4
- },
- {
- Name = GetTranslation("Ne plus afficher les logs"),
- Action = "rlrp_stoplog",
- Rank = 4
- },
- {
- Name = GetTranslation("Arreter le feu"),
- Action = "rlrp_stopfire",
- Rank = 4
- },
- {
- Name = "Respawn NPC",
- Action = "rlrp_npcrespawn",
- Rank = 4
- },
- {
- Name = GetTranslation("Activer l'IA"),
- Action = "rlrp_enableia",
- Rank = 5
- },
- {
- Name = GetTranslation("Désactiver l'IA"),
- Action = "rlrp_disableia",
- Rank = 5
- },
- {
- Name = "Screenshot Global (Dangeureux)",
- Action = "rlrp_screenshot_server",
- Rank = 4
- },
- {
- Name = "Faire danser tout ses pedays",
- Action = "rlrp_dance",
- Rank = 5
- },
- {
- Name = "Recharger les objects",
- Action = "rlrp_updateshopdb",
- Rank = 4
- },
- {
- Name = "Reinitialiser le montant des malettes",
- Action = "reallife_suitcasereset",
- Rank = 4
- }
- }
- r = {
- {
- Reason = e('<B/+8%"$0b*7A.+4#4', "z0JNHPLGXBOYaXBXOQ"),
- Time = 120
- },
- {
- Reason = e('%<V]Y$-"', "cN382MAN"),
- Time = 1440
- },
- {
- Reason = e("(<'1'\\#RTRU3<&1&$&", "kSIUR5W7t32AYUBORC"),
- Time = 60
- },
- {
- Reason = e("5Q'%&#=p=&+$;A\"\\GP", "v0UNOOQPKIGKU5C555"),
- Time = 1440
- },
- {
- Reason = e("3?6!Y?%", "rQQM8VV"),
- Time = 0
- },
- {
- Reason = e("%=5S>(25e3L<]", "kXBsrATPEa9P8"),
- Time = 2880
- },
- {
- Reason = e("%<*4%&2", "lRYAIRW"),
- Time = 60
- },
- {
- Reason = e('>9!P"=$7)6', "xKD5COVRZB"),
- Time = 360
- },
- {
- Reason = e("/,#Gu%846", "cCJ4UkWff"),
- Time = 120
- },
- {
- Reason = e("2>&54Y%\\%/", "bLIEGyn5IC"),
- Time = 2880
- },
- {
- Reason = e(':7%(Kg8"Q', "jEJXk4MP7"),
- Time = 1440
- },
- {
- Reason = e("=W=P$S$K7/EH'70U#!Q3[L9;W", "o6S7AsE9ZJe8BYT4MUqR88PT9"),
- Time = 1440
- },
- {
- Reason = e(")G#;T!YP9/", "z7BVtW63XC"),
- Time = 1440
- },
- {
- Reason = e('`W[+"\'"d2+B4c")\\PV;-iU[M\'=$', "266JQTGDBD6GCRL247UYI489NRJ"),
- Time = 1440
- },
- {
- Reason = e(":;G;j.+[!O2\\L#&-%<yA%K'", "iT5OJOY6DoV9lMSAIYY1D9S"),
- Time = 1440
- },
- {
- Reason = e("834?X\"%PCG.0=;F'2',\"Y4Q1S&&!Q86x>(", "uRAI9KV5c2ZYQR5FFNCLyP4BsEGO0MNXlx"),
- Time = 30
- },
- {
- Reason = e("\"Q',*YT^?1", "o4SMM897QV"),
- Time = 360
- },
- {
- Reason = e('((*?&(S1C4(*""+%<q0W5r#\\"%%K?', "xGFVEA6CcRZOGQCJHQE9PRU3KQP9Z"),
- Time = 360
- },
- {
- Reason = e("v$7U0!E", "5LR4DD7"),
- Time = 0
- },
- {
- Reason = e("b)#L5TR(A%hR7F7#6>S655=ES*t.#6<zB?PFf7?T^1?", "0LE9Ft6MaVO3E4RWSLsWEGX6sYSKWDYZ2M95FBQt3DM"),
- Time = 360
- },
- {
- Reason = e("'!;G7#1z,)Y*E'#E?(\"M$", "qNR3BQTZHH7YeKFeQMZ8W"),
- Time = 10080
- },
- {
- Reason = e("7?R#X)),-", "dO3NxJAMY"),
- Time = 60
- },
- {
- Reason = e("x<6',>s12E5=!Q;F/'8n(=Y]U=<JD\"UV</_7", "2SCBYLSAW7AHS3Z2JRJNXX794SHj1Lu3JJ1C"),
- Time = 60
- },
- {
- Reason = e("77&:[3q'<*1>4Y)\\$!.1V/3", "sXSX7VQDSGAJQyZ5ITBE7AV"),
- Time = 0
- }
- }
- end
- function GetPlayerOrder()
- local e = PlayerTable or {}
- c.Empty(e)
- for n, t in pairs(player.GetAll()) do
- c.insert(e, {
- SteamID = t:SteamID(),
- Name = t:GetNWString("Name")
- })
- end
- c.SortByMember(e, "Name", function(t, e) return t > e end)
- return e
- end
- net.Receive("RealLife_AdminPanel", function()
- if (LocalPlayer():IsModerator()) then
- LoadAdminTable()
- local n = t.Create(e(")/>%\\)", "miLD1L"))
- n:SetSize(400, 330)
- n:Center()
- n:SetTitle(GetTranslation("Panel d'administration"))
- n:SetDraggable(true)
- n:SetSizable(false)
- n:ShowCloseButton(true)
- n:MakePopup()
- local o = t.Create(e("<13:6Q6?)*+)\\;", "xaAUF4DKPyCL9O"))
- o:SetParent(n)
- o:SetPos(5, 30)
- o:SetSize(385, 285)
- local a = t.Create(e("%:*Y\\]6>*9", "ajK791zWYM"))
- a:EnableVerticalScrollbar(true)
- a:SetPos(300, 100)
- a:SetSize(260, 240)
- a:EnableHorizontal(false)
- a:SetPadding(9)
- for o, n in pairs(i) do
- if (LocalPlayer():IsModerator() and n.Rank == 4) or (LocalPlayer():IsAdmin()) then
- local t = t.Create(e('q7!F$"W', "5uT2PM9"))
- t:SetSize(90, 25)
- t:SetText(n.Name)
- t.DoClick = function()
- local o = DermaMenu()
- for a, t in ipairs(GetPlayerOrder()) do
- o:AddOption(t.Name, function()
- if (n.Input ~= nil) then
- if (n.Action == e("FX5@,Q%9", "44G0s3DW")) then
- Input(n.Input, n.Action, t.SteamID, true)
- else
- Input(n.Input, n.Action, t.SteamID)
- end
- else
- RunConsoleCommand(n.Action, t.SteamID)
- end
- end)
- end
- o:Open()
- end
- a:AddItem(t)
- end
- end
- local n = t.Create(e("%:*Y\\]6>*9", "ajK791zWYM"))
- n:EnableVerticalScrollbar(true)
- n:SetPos(300, 100)
- n:SetSize(260, 240)
- n:EnableHorizontal(false)
- n:SetPadding(9)
- for l, a in pairs(l) do
- if (LocalPlayer():IsModerator() and a.Rank == 4) or (LocalPlayer():IsAdmin()) then
- local t = t.Create(e('q7!F$"W', "5uT2PM9"))
- t:SetSize(90, 25)
- t:SetText(a.Name)
- t.DoClick = function()
- Derma_Query(e("(&\\J@,BB26%.R+!@u;7>EQ,.QOR", "iT9j9C7bACWKrRN5ULVP1qXAqur") .. a.Name .. " ?", e("v7/7P5!", "5XAQ9GL"), e("7,`q@", "ni3Qa"), function()
- RunConsoleCommand(a.Action)
- end, "NO !", function() end)
- end
- n:AddItem(t)
- end
- end
- o:AddSheet(GetTranslation(e('vS8!:_>I0(FX%>?$0"$', "16KUS0PiTM5xOQJAEPW")), a, e("^>Z[:=/28T94E@/B^17", "9K3tITCYQ7VZ6oH01DG"), false, false)
- o:AddSheet(GetTranslation(e("#Q>C&)[F&Ek<&BNQ'D", "d4M7OF5fB0KOC084R6")), n, e('P0<eB\\*_"3?%%]-&1-"9', "7EUJ15F4KPPKVrZTTCAQ"), false, false)
- end
- end)
- function Input(S, r, l, i)
- local n = t.Create(e(")/>%\\)", "miLD1L"))
- n:SetSize(300, 140)
- n:Center()
- n:SetTitle(GetTranslation(e("'*:#>P!5G;0(.!", "fNWJP9RA5ZDAAO")))
- n:SetDraggable(true)
- n:SetSizable(false)
- n:ShowCloseButton(true)
- n:MakePopup()
- local o = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- o:SetPos(30, 60)
- o:SetWide(235)
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(30, 30)
- a:SetColor(Color(255, 255, 255, 255))
- a:SetFont(e("P3)X&\\;", "4VO9S0O"))
- a:SetText(S)
- a:SizeToContents()
- if (i) then
- Wang = t.Create(e("#zFZ7V4;;%=", "g437U3FlZKZ"), n)
- Wang:SetPos(201, 80)
- Wang:SetMinMax(0, 240)
- Wang:SetDecimals(0)
- local t = t.Create(e("*-QQ-X", "na03H4"), n)
- t:SetPos(30, 83)
- t:SetColor(Color(255, 255, 255, 255))
- t:SetFont(e("P3)X&\\;", "4VO9S0O"))
- t:SetText(GetTranslation(e("64:#^36&^-(,&", "wPWJ0ltG0yAAC")))
- t:SizeToContents()
- end
- local t = t.Create(e('q7!F$"W', "5uT2PM9"), n)
- t:SetPos(100, 100)
- t:SetSize(90, 25)
- t:SetText(e("o7+;6*C", "9VGRRO1"))
- t.DoClick = function(e)
- if (i) then
- RunConsoleCommand(r, l, o:GetValue(), Wang:GetValue())
- else
- RunConsoleCommand(r, l, o:GetValue())
- end
- n:Close()
- end
- end
- function SpyPlayer(t, e, n)
- if (t:IsAdmin()) then
- for a, e in pairs(player.GetAll()) do
- if (e:SteamID() == n[1]) then
- t.Spying = true
- e.IsSpyed = true
- end
- end
- end
- end
- concommand.Add(e(">\\K=+!%B", "L09MtDV2"), SpyPlayer)
- function ScannerOn(e, t, t)
- if (e:IsModerator()) then
- LocalPlayer().Radar = true
- end
- end
- concommand.Add(e("!^722$,1A%G0%#G", "S2EBmWXP3Q5QAB5"), ScannerOn)
- function ScannerOff(e, t, t)
- if (e:IsModerator()) then
- LocalPlayer().Radar = false
- end
- end
- concommand.Add(e("F#$F*77$6+6R$>", "4OV6uDCKFYW6EL"), ScannerOff)
- function UnSpyPlayer(e, n, t)
- if (e:IsAdmin()) then
- for n, e in pairs(player.GetAll()) do
- if (e:SteamID() == t[1]) then
- e.IsSpyed = false
- end
- end
- end
- end
- concommand.Add(e("3<&$%$?\\B>", "APTTzQQ91N"), UnSpyPlayer)
- local o
- function UpdateBanValue(n, e, t)
- e = e + 1
- local e = (n * (t * e))
- o:SetValue(e)
- end
- net.Receive(e("\"<)/&<-2817$.X&7='*", "pYHCjUKWgsVJc9HVZBX"), function(n)
- LoadAdminTable()
- local S = 1440
- local l = 1
- local T = toint(net.ReadString())
- local s = net.ReadString()
- if (LocalPlayer():IsModerator()) then
- local i = e("61!~?", "scs1m")
- for t, e in pairs(player.GetAll()) do
- if (e:SteamID() == s) then
- i = e:GetNWString("Name")
- end
- end
- local n = t.Create(e(")/>%\\)", "miLD1L"))
- n:SetSize(350, 320)
- n:Center()
- n:SetTitle(e("1TW<.^1=U12XI.'+8534", "c16Pb7WXusS6icFEYRVF"))
- n:SetDraggable(true)
- n:SetSizable(false)
- n:ShowCloseButton(true)
- n:MakePopup()
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(37, 50)
- a:SetText(GetTranslation(e(";:>.%8bHE", "qUKKPJBre")))
- a:SizeToContents()
- local a = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- a:SetPos(80, 47)
- a:SetWide(250)
- a:SetText(i)
- a:SetEditable(false)
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(30, 80)
- a:SetText(e("0-U7^='TOW", "cY0V3tctuw"))
- a:SizeToContents()
- local a = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- a:SetPos(80, 77)
- a:SetWide(250)
- a:SetText(s .. " - " .. T .. e("t77]r1kmW)3?+Oh", "TUV3ZBBM1FFQOoI"))
- a:SetEditable(false)
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(40, 110)
- a:SetText(GetTranslation(e("l];C6Vhm", "88V3EvRM")))
- a:SizeToContents()
- o = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- o:SetPos(80, 107)
- o:SetWide(100)
- o:SetNumeric(true)
- o:SetEditable(true)
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(185, 110)
- a:SetText(GetTranslation(e("5,=&7!;", "XESSCDH")))
- a:SizeToContents()
- local a = t.Create(e("5v:>!+-W:", "q5USCDo8B"), n)
- a:SetPos(80, 137)
- a:SetSize(250, 20)
- a:SetValue("")
- for t, e in pairs(r) do
- a:AddChoice(e.Reason)
- end
- local i = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- i:SetPos(80, 167)
- i:SetWide(250)
- i:SetText("")
- a.OnSelect = function(t, t, e, t)
- for n, t in pairs(r) do
- if (t.Reason == e) then
- S = t.Time
- UpdateBanValue(S, T, l)
- i:SetText(e)
- end
- end
- end
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(40, 140)
- a:SetText(GetTranslation(e("'5;G-[NcJ", "uTR4B5nYj")))
- a:SizeToContents()
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(12, 170)
- a:SetText(e('-,&E5B5V,"!*QV', "lYR7PbG7EQNDql"))
- a:SizeToContents()
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(36, 196)
- a:SetText(GetTranslation("Gravité :"))
- a:SizeToContents()
- local a = t.Create(e("5v:>!+-W:", "q5USCDo8B"), n)
- a:SetPos(80, 195)
- a:SetSize(250, 20)
- a:SetValue(GetTranslation("Modéré"))
- a:AddChoice(GetTranslation(e('7"6]&"', "zKX8SP")))
- a:AddChoice(GetTranslation("Modéré"))
- a:AddChoice(GetTranslation(e('#"X%7', "dP9SR")))
- a:AddChoice(GetTranslation(e("..2%,_?", "kVFWI2Z")))
- a.OnSelect = function(n, n, t, n)
- if (t == GetTranslation("Modéré")) then
- l = 1
- elseif (t == GetTranslation(e('7"6]&"', "zKX8SP"))) then
- l = .5
- elseif (t == GetTranslation(e('#"X%7', "dP9SR"))) then
- l = 2
- elseif (t == GetTranslation(e("..2%,_?", "kVFWI2Z"))) then
- l = 4
- end
- UpdateBanValue(S, T, l)
- end
- local a = t.Create(e("*-QQ-X", "na03H4"), n)
- a:SetPos(8, 223)
- a:SetText(GetTranslation(e("\"(>;.'F&1*REIX", "aGSVKI2GXX7esx")))
- a:SizeToContents()
- local a = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- a:SetPos(80, 223)
- a:SetWide(250)
- a:SetText("")
- a:SetTall(50)
- a:SetText("")
- a:SetMultiline(true)
- local t = t.Create(e('q7!F$"W', "5uT2PM9"), n)
- t:SetSize(320, 30)
- t:SetPos(10, 280)
- t:SetText(e("0.6>$@", "rOXPM2"))
- t.DoClick = function(t)
- RunConsoleCommand(e("E(1A9('W!5R!2K", "7DC1fJF9QY3XW9"), s, o:GetValue(), i:GetValue(), a:GetValue())
- n:Close()
- end
- end
- end)
- function BlackListPlayer(n, a, i)
- if (n:IsModerator()) then
- local function l(l, i)
- local n = t.Create(e(")/>%\\)", "miLD1L"))
- n:SetSize(250, 150)
- n:Center()
- n:SetTitle(GetTranslation(e("`\\^4AT\"1x2#U3?(1'?", "493D2tFTXPO4PTDXTK")))
- n:SetDraggable(true)
- n:SetSizable(false)
- n:ShowCloseButton(true)
- n:MakePopup()
- local a = t.Create(e("`Z'&#$", "36NBFV"), n)
- a:SetPos(10, 27)
- a:SetWide(240)
- a:SetMin(0)
- a:SetMax(1440 * 30)
- a:SetValue(0)
- a:SetDecimals(0)
- local o = t.Create(e("*-QQ-X", "na03H4"), n)
- o:SetPos(15, 65)
- o:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- o:SetText(GetTranslation(e("b=CT9VP#L", "2X19X85M8")))
- a.OnValueChanged = function(n, t)
- if t < 1 then
- o:SetText(GetTranslation(e("b=CT9VP#L", "2X19X85M8")))
- o:SizeToContents()
- else
- o:SetText(MinutesToDate(t))
- o:SizeToContents()
- end
- end
- local o = t.Create(e("*-QQ-X", "na03H4"), n)
- o:SetPos(10, 90)
- o:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- o:SetText(GetTranslation(e("'5;G-[NcJ", "uTR4B5nYj")))
- local o = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- o:SetPos(70, 90)
- o:SetWide(170)
- local t = t.Create(e('q7!F$"W', "5uT2PM9"), n)
- t:SetText(GetTranslation(e("2#3Z>*_1.V0", "pOR9UF6BZ3B")))
- t:SetWide(230)
- t:SetPos(10, 120)
- t.DoClick = function(t)
- RunConsoleCommand(e(':5B";$^R")$8:B', "HY0RdF23ABHQI6"), l, i, a:GetValue(), o:GetValue())
- n:Close()
- end
- end
- local n = t.Create(e(")/>%\\)", "miLD1L"))
- n:SetSize(190, 130)
- n:Center()
- n:SetTitle(GetTranslation("Selectionnez l'équipe"))
- n:SetDraggable(true)
- n:SetSizable(false)
- n:ShowCloseButton(true)
- n:MakePopup()
- BlackListList = t.Create(e("%:*Y\\]6>*9", "ajK791zWYM"), n)
- BlackListList:SetPos(10, 27)
- BlackListList:SetSize(170, 91)
- BlackListList:SetSpacing(1)
- BlackListList:EnableHorizontal(false)
- BlackListList:EnableVerticalScrollbar(famlse)
- for a, o in pairs(team.GetAllTeams()) do
- if (a > 1 and a < 1e3) then
- local e = t.Create(e('q7!F$"W', "5uT2PM9"))
- e:SetText(o.Name)
- e.DoClick = function(e)
- l(i[1], a)
- n:Close()
- end
- BlackListList:AddItem(e)
- end
- end
- end
- end
- concommand.Add("rlrp_startblacklist", BlackListPlayer)
- CreateClientConVar(e("$-!V/0>Y*<:$1", "PBF1CUa8NQITH"), 1, true, false)
- hook.Add(e("p&>>-&_C", "8sznLO17"), e("&V&?,5RY", "q7JSDT12"), function()
- if LocalPlayer():IsModerator() and LocalPlayer().Spying then
- for n, t in pairs(player.GetAll()) do
- if ConVarExists(e("$-!V/0>Y*<:$1", "PBF1CUa8NQITH")) and GetConVar(e("$-!V/0>Y*<:$1", "PBF1CUa8NQITH")):GetInt() == 1 and t.IsSpyed then
- local n = (t:GetPos() + Vector(0, 0, 80)):ToScreen()
- draw.DrawText(t:Nick(), e("4(1#1r$#$D+3p06", "fdcsn6AEE1GG2YQ"), n.x, n.y, Color(255, 0, 0, 255), 1)
- end
- end
- end
- end)
- net.Receive(e('5\\;E&W=]01?"5', "f4T2g9I4SYZCA"), function(n)
- local a = net.ReadTable()
- local n = t.Create(e(")/>%\\)", "miLD1L"))
- n:SetSize(1024, 300)
- n:Center()
- n:SetTitle(e(".48;6?,7,D=>7", "oZLRUWIVXdqQP"))
- n:SetDraggable(true)
- n:SetSizable(true)
- n:ShowCloseButton(true)
- n:MakePopup()
- local t = t.Create(e("p<19F5$=?", "4pXJ2cMXH"), n)
- t:SetPos(10, 25)
- t:SetSize(1e3, 270)
- t:SetMultiSelect(false)
- t:AddColumn("Name")
- t:AddColumn(e("s\\],:Y,4", "153MH0IG"))
- for e, n in pairs(a) do
- t:AddLine(e, n)
- end
- end)
- net.Receive(e("(,9Z?8U'0b.+G#5(bW\",&", "zIX6sQ3Bo1FD0aTF26LIJ"), function(n)
- local d = net.ReadTable()
- local G = net.ReadTable()
- local r = {
- Extreme = {
- Faults = {GetTranslation("Ban Permanent")},
- Min = 0,
- Max = 0
- },
- High = {
- Faults = {GetTranslation(e("%SK<8-=L,@6L(8%P", "f29WQAQla5Z8AHI5")), GetTranslation(e('v$/R,#6\\K,=\\<2-)?h.BT?9;%"', "0VJ7GJZ0djO9YAEFKHC78KPKIG")), GetTranslation(e(",ZP!'J0TR568h9'I#\"I-:", "z59UR8Ut6TXKHUBimG1XI")), GetTranslation(e("!1YA7#>6]mF?!>Z=+!+6", "qC61DhWZ1M0PMQ4IJHYS")), GetTranslation("Ne parle pas français"), GetTranslation(e("5DBJ/E6,GM<z_8310", "t168JePM29YZ8JRGU"))},
- Min = 2880,
- Max = 30240
- },
- Medium = {
- Faults = {GetTranslation(e(")3L#!/Z!60K`$2.>,0&3Y.P+==$P", "dV8BFN7HXWd0KEKLKQKZ7IpGRHV4")), GetTranslation(e(").0=7$C=R9,%++-:/0(V$Wh?,\\);", "cAEXBVcM7KXPYILNJEZvA9HZZ9GO")), GetTranslation(e('(51"-9!=\\-@P]:>];', "nGTGFPMQsk258IV2O")), GetTranslation("NLR"), GetTranslation(e("8,6='@,1", "qBEHK4IB")), GetTranslation(e("s=)!;9!0+'", "5OLDzKSUXS")), GetTranslation(e(":+<?F815Q", "jYSO5kDG7")), GetTranslation(e(";];+;[?\\q.S(V,?<429<", "x2UON2K9QJ2F1IJNQGJY")), GetTranslation(e('k;T"5G&C?\\YPR"X#&', "9Z9CF4CcZ2y11V1LH")), GetTranslation("Refus de s'arrêter après un mur"), GetTranslation(e('<B/+8%"$0b*7A.+4#4', "z0JNHPLGXBOYaXBXOQ")), GetTranslation(e('19<,UF*1h.6_&p*RT"#*+PxB#!F', "bVNXu3DTHOD2CPN7tLVFG5X2BS2")), GetTranslation("Referme porte après crochettage/charge"), GetTranslation(e("'B<90w%7/1", "w0SIC5IXLZ")), GetTranslation("Autre faute modérée")},
- Min = 360,
- Max = 5760
- },
- Low = {
- Faults = {GetTranslation(e('-P4(=)4lX<N7\\+(L/.6"', "n1FCTEXL1R8X0DF8NGDG")), GetTranslation(e('(#9*(X/+\\RL`-O"96./]4>LU21U5#', "eFMKO9BB25c0B8GKQOB4ZYl3SX7YF")), GetTranslation(e("7?R#X)),-", "dO3NxJAMY")), GetTranslation(e("t;_<D'7PK-*&!\":F3@<", "7T1X1NC5kLMASGI5Z6Y")), GetTranslation(e("/,#Gu%846", "cCJ4UkWff")), GetTranslation(e(":X&ZE3G'5)<I<2Ki)%&#,=E5,b-X;S$+:*(7", "t7Hz7V4WPJHiXW8IJDHBYEeQIBI1H0QXICGY")), GetTranslation(e(")G#;T!YP9/", "z7BVtW63XC")), GetTranslation(e('1#&35;8)/M%-7CS"Z?\\U', "wQCVENVJGmMBE0sT3S00")), GetTranslation("Barricades non réglementaire"), GetTranslation(e(';=$8"/QR\\QV5R', "tHFTKJq69qyX7")), GetTranslation(e("2&0C'f%U\"7)Q(>&$::)", "sSD1BFC4WCLqEWHAOHL"))},
- Min = 5,
- Max = 360
- }
- }
- local a = r.Low
- local n = player.GetAll()[1]
- local n = t.Create(e(")/>%\\)", "miLD1L"))
- n:SetSize(400, 450)
- n:Center()
- n:SetTitle(GetTranslation(e("v+:A=6_,,$X=)<", "4JTapW1MKA5XGH")))
- n:SetDraggable(true)
- n:SetSizable(true)
- n:ShowCloseButton(true)
- n:MakePopup()
- local o = t.Create(e("*-QQ-X", "na03H4"), n)
- o:SetPos(20, 40)
- o:SetText(GetTranslation(e('"=31*#O`4Uv', "rNVDNLo2duL")) .. " " .. G.Name)
- o:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- o:SizeToContents()
- local o = t.Create(e("*-QQ-X", "na03H4"), n)
- o:SetPos(20, 75)
- o:SetText(GetTranslation(e("#?<=oV2L5#F1&kH", "wFLXO2WlSB3ECKr")))
- o:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- o:SizeToContents()
- local S = t.Create(e("5v:>!+-W:", "q5USCDo8B"), n)
- S:SetPos(120, 71)
- S:SetSize(250, 20)
- S:SetValue(GetTranslation(e(":!^0E8V", "wH0U0J3")))
- S:AddChoice(GetTranslation(e(":!^0E8V", "wH0U0J3")))
- S:AddChoice(GetTranslation("Modérée"))
- S:AddChoice(GetTranslation(e('")S!9D6', "oH9DL6S")))
- S:AddChoice(GetTranslation(e("..2%,_?", "kVFWI2Z")))
- local o = t.Create(e("*-QQ-X", "na03H4"), n)
- o:SetPos(20, 105)
- o:SetText(GetTranslation(e("(/>@'?Hx", "zNW3HQhB")))
- o:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- o:SizeToContents()
- local l = t.Create(e("5v:>!+-W:", "q5USCDo8B"), n)
- l:SetPos(120, 101)
- l:SetSize(250, 20)
- l:SetValue(a.Faults[1])
- for t, e in pairs(a.Faults) do
- l:AddChoice(e)
- end
- local o = t.Create(e("*-QQ-X", "na03H4"), n)
- o:SetPos(20, 130)
- o:SetText(GetTranslation(e("=S+P6Y2?%^^Mb", "y6X3D0BKL10mX")))
- o:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- o:SizeToContents()
- local s = t.Create(e('r8U3A2:"G3', "6l0K5wTV5J"), n)
- s:SetPos(120, 130)
- s:SetWide(250)
- s:SetText("")
- s:SetTall(50)
- s:SetText("")
- s:SetMultiline(true)
- local o = t.Create(e("*-QQ-X", "na03H4"), n)
- o:SetPos(20, 185)
- o:SetText(GetTranslation(e("05'?6A!VI*U<G^", "dPJOEaE3iH4Rgd")))
- o:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- o:SizeToContents()
- local o = t.Create(e("`Z'&#$", "36NBFV"), n)
- o:SetPos(120, 180)
- o:SetWide(280)
- o:SetMin(a.Min)
- o:SetMax(a.Max)
- o:SetValue(a.Min)
- o:SetDecimals(0)
- local T = t.Create(e("*-QQ-X", "na03H4"), n)
- T:SetPos(20, 215)
- T:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- local i = t.Create(e("*-QQ-X", "na03H4"), n)
- i:SetPos(20, 245)
- i:SetText(GetTranslation("Nombre de bans ayant la même raison : "))
- i:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- i:SizeToContents()
- local function C()
- local t = 0
- local e = 0
- local n = 0
- for o, a in pairs(d) do
- if c.HasValue(r.High.Faults, a.raison) then
- t = t + 1
- elseif c.HasValue(r.Medium.Faults, a.raison) then
- e = e + 1
- elseif c.HasValue(r.Low.Faults, a.raison) then
- n = n + 1
- end
- end
- return {
- Low = n,
- Medium = e,
- High = t
- }
- end
- local c = C()
- local C = t.Create(e("*-QQ-X", "na03H4"), n)
- C:SetPos(20, 270)
- C:SetText(GetTranslation(e('&V(8<SvS<S0P_"wYP-."!ER}BGDTXSVD', "h9EZN6V7YsR11QW49CKWS6rUivtqqsld")) .. c.Low)
- C:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- C:SizeToContents()
- local C = t.Create(e("*-QQ-X", "na03H4"), n)
- C:SetPos(20, 290)
- C:SetText(GetTranslation("Nombre de bans moderés (+20%) : ") .. c.Medium)
- C:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- C:SizeToContents()
- local C = t.Create(e("*-QQ-X", "na03H4"), n)
- C:SetPos(20, 310)
- C:SetText(GetTranslation(e("$#*[(1z==nU%4\"O'80W3A$LazkZJltXD", "jLG9ZTZYXN7DZQoJYZ2F3WlIQXjoETbd")) .. c.High)
- C:SetFont(e("$+<6*)(1UD584(7+-'", "vgnfumMW41YLyMSBXJ"))
- C:SizeToContents()
- local function C()
- for t, e in pairs(d) do
- if e.raison == l:GetValue() then
- i:SetColor(Color(200, 0, 0))
- i:SetText(GetTranslation("Nombre de bans ayant la même raison : ") .. e.count)
- i:SizeToContents()
- return
- end
- end
- i:SetText(GetTranslation("Nombre de bans ayant la même raison : ") .. "0")
- i:SizeToContents()
- i:SetColor(Color(0, 200, 0))
- end
- local function i(e)
- return e + (c.Low * (e * .1)) + (c.Medium * (e * .2)) + (c.High * (e * .3))
- end
- local function c()
- o:SetMin(a.Min)
- o:SetMax(a.Max)
- o:SetValue(a.Min)
- l:Clear()
- l:SetValue(a.Faults[1])
- for t, e in pairs(a.Faults) do
- l:AddChoice(e)
- end
- C()
- end
- o.OnValueChanged = function(t, e)
- T:SetText(MinutesToDate(i(e)))
- T:SizeToContents()
- end
- l.OnSelect = function(e, e, e, e)
- C()
- end
- S.OnSelect = function(n, n, t, n)
- if (t == GetTranslation(e(":!^0E8V", "wH0U0J3"))) then
- a = r.Low
- elseif (t == GetTranslation("Modérée")) then
- a = r.Medium
- elseif (t == GetTranslation(e('")S!9D6', "oH9DL6S"))) then
- a = r.High
- elseif (t == GetTranslation(e("..2%,_?", "kVFWI2Z"))) then
- a = r.Extreme
- end
- c()
- end
- C()
- T:SetText(MinutesToDate(i(o:GetValue())))
- T:SizeToContents()
- local a = t.Create(e('q7!F$"W', "5uT2PM9"), n)
- a:SetText(GetTranslation(e("0.6>$@", "rOXPM2")))
- a:SetPos(20, 400)
- a:SetSize(180, 30)
- a.DoClick = function()
- net.Start(e('+41]:="46*8*/G\\@', "yQP1vTDQihYDz492"))
- net.WriteTable({
- SteamID = G.SteamID,
- BanTime = toint(i(o:GetValue())),
- Reason = l:GetValue(),
- Description = s:GetValue()
- })
- net.SendToServer()
- n:Close()
- end
- local t = t.Create(e('q7!F$"W', "5uT2PM9"), n)
- t:SetText(GetTranslation(e("34Y84.&", "rZ7MXKT")))
- t:SetPos(200, 400)
- t:SetSize(180, 30)
- t.DoClick = function()
- RunConsoleCommand(e("+%?G/&[2(?$6]", "YIM7pS5TZZAL8"), G.SteamID)
- n:Close()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement