Advertisement
Noneatme

Untitled

Jun 22nd, 2013
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 13.18 KB | None | 0 0
  1. -- Decompiled using luadec 2.1 UNICODE by sztupy (http://winmo.sztupy.hu) and viruscamp
  2. -- Command line was: dec/client.luac
  3.  
  4. ShowFraktionsettingWindow_func = function(bikerstatus, triadenstatus, atzenstatus, terrorstatus, mafiastatus, rang0, rang1, rang2, prank, fraktion)
  5.   if not getElementData(lp, "ElementClicked") then
  6.     showCursor(true)
  7.     setElementData(lp, "ElementClicked", true)
  8.   end
  9.   if Fraktionstatus then
  10.     destroyElement(Fraktionstatus)
  11.   end
  12.   Fraktionstatus = guiCreateWindow(5, 4, 541, 394, "Fraktionssettings", false)
  13.   guiWindowSetSizable(Fraktionstatus, false)
  14.   guiSetProperty(Fraktionstatus, "CaptionColour", "FFF5CB09")
  15.   StatusA = guiCreateLabel(18, 28, 185, 30, "Angels of Death : " .. bikerstatus, false, Fraktionstatus)
  16.   if bikerstatus == "Krieg" then
  17.     guiLabelSetColor(StatusA, 255, 0, 0)
  18.   elseif bikerstatus == "Handel" then
  19.     guiLabelSetColor(StatusA, 0, 255, 0)
  20.   else
  21.     guiLabelSetColor(StatusA, 255, 255, 255)
  22.   end
  23.   guiLabelSetHorizontalAlign(StatusA, "center", false)
  24.   guiLabelSetVerticalAlign(StatusA, "center")
  25.   StatusB = guiCreateLabel(18, 68, 185, 30, "Triaden : " .. triadenstatus, false, Fraktionstatus)
  26.   if triadenstatus == "Krieg" then
  27.     guiLabelSetColor(StatusB, 255, 0, 0)
  28.   elseif triadenstatus == "Handel" then
  29.     guiLabelSetColor(StatusB, 0, 255, 0)
  30.   else
  31.     guiLabelSetColor(StatusB, 255, 255, 255)
  32.   end
  33.   guiLabelSetHorizontalAlign(StatusB, "center", false)
  34.   guiLabelSetVerticalAlign(StatusB, "center")
  35.   StatusC = guiCreateLabel(18, 108, 185, 30, "Los Aztecas : " .. atzenstatus, false, Fraktionstatus)
  36.   if atzenstatus == "Krieg" then
  37.     guiLabelSetColor(StatusC, 255, 0, 0)
  38.   elseif atzenstatus == "Handel" then
  39.     guiLabelSetColor(StatusC, 0, 255, 0)
  40.   else
  41.     guiLabelSetColor(StatusC, 255, 255, 255)
  42.   end
  43.   guiLabelSetHorizontalAlign(StatusC, "center", false)
  44.   guiLabelSetVerticalAlign(StatusC, "center")
  45.   StatusD = guiCreateLabel(18, 148, 185, 30, "Terroristen : " .. terrorstatus, false, Fraktionstatus)
  46.   if terrorstatus == "Krieg" then
  47.     guiLabelSetColor(StatusD, 255, 0, 0)
  48.   elseif terrorstatus == "Handel" then
  49.     guiLabelSetColor(StatusD, 0, 255, 0)
  50.   else
  51.     guiLabelSetColor(StatusD, 255, 255, 255)
  52.   end
  53.   guiLabelSetHorizontalAlign(StatusD, "center", false)
  54.   guiLabelSetVerticalAlign(StatusD, "center")
  55.   StatusE = guiCreateLabel(18, 188, 185, 30, "Mafia : " .. mafiastatus, false, Fraktionstatus)
  56.   if mafiastatus == "Krieg" then
  57.     guiLabelSetColor(StatusE, 255, 0, 0)
  58.   elseif mafiastatus == "Handel" then
  59.     guiLabelSetColor(StatusE, 0, 255, 0)
  60.   else
  61.     guiLabelSetColor(StatusE, 255, 255, 255)
  62.   end
  63.   guiLabelSetHorizontalAlign(StatusE, "center", false)
  64.   guiLabelSetVerticalAlign(StatusE, "center")
  65.   if prank >= 4 then
  66.     if fraktion ~= 2 then
  67.       MafiaKrieg = guiCreateButton(213, 188, 72, 31, "Krieg", false, Fraktionstatus)
  68.       guiSetProperty(MafiaKrieg, "NormalTextColour", "FFFF0000")
  69.       MafiaHandel = guiCreateButton(377, 189, 72, 31, "Handel", false, Fraktionstatus)
  70.       guiSetProperty(MafiaHandel, "NormalTextColour", "FF00FA00")
  71.       MafiaFrieden = guiCreateButton(295, 189, 72, 31, "Frieden", false, Fraktionstatus)
  72.       guiSetProperty(MafiaFrieden, "NormalTextColour", "FFFFFFFF")
  73.       addEventHandler("onClientGUIClick", MafiaKrieg, function()
  74.         showCursor(false)
  75.         setElementData(lp, "ElementClicked", false)
  76.         destroyElement(Fraktionstatus)
  77.         local fraktion = 2
  78.         local status = "Krieg"
  79.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  80.       end, false)
  81.       addEventHandler("onClientGUIClick", MafiaFrieden, function()
  82.         showCursor(false)
  83.         setElementData(lp, "ElementClicked", false)
  84.         destroyElement(Fraktionstatus)
  85.         local fraktion = 2
  86.         local status = "Frieden"
  87.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  88.       end, false)
  89.       addEventHandler("onClientGUIClick", MafiaHandel, function()
  90.         showCursor(false)
  91.         setElementData(lp, "ElementClicked", false)
  92.         destroyElement(Fraktionstatus)
  93.         local fraktion = 2
  94.         local status = "Handel"
  95.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  96.       end, false)
  97.     end
  98.     if fraktion ~= 4 then
  99.       TerrorKrieg = guiCreateButton(213, 148, 72, 31, "Krieg", false, Fraktionstatus)
  100.       guiSetProperty(TerrorKrieg, "NormalTextColour", "FFFF0000")
  101.       TerrorHandel = guiCreateButton(377, 148, 72, 31, "Handel", false, Fraktionstatus)
  102.       guiSetProperty(TerrorHandel, "NormalTextColour", "FF00FA00")
  103.       TerrorFrieden = guiCreateButton(295, 148, 72, 31, "Frieden", false, Fraktionstatus)
  104.       guiSetProperty(TerrorFrieden, "NormalTextColour", "FFFFFFFF")
  105.       addEventHandler("onClientGUIClick", TerrorKrieg, function()
  106.         showCursor(false)
  107.         setElementData(lp, "ElementClicked", false)
  108.         destroyElement(Fraktionstatus)
  109.         local fraktion = 4
  110.         local status = "Krieg"
  111.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  112.       end, false)
  113.       addEventHandler("onClientGUIClick", TerrorFrieden, function()
  114.         showCursor(false)
  115.         setElementData(lp, "ElementClicked", false)
  116.         destroyElement(Fraktionstatus)
  117.         local fraktion = 4
  118.         local status = "Frieden"
  119.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  120.       end, false)
  121.       addEventHandler("onClientGUIClick", TerrorHandel, function()
  122.         showCursor(false)
  123.         setElementData(lp, "ElementClicked", false)
  124.         destroyElement(Fraktionstatus)
  125.         local fraktion = 4
  126.         local status = "Handel"
  127.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  128.       end, false)
  129.     end
  130.     if fraktion ~= 7 then
  131.       AtzenKrieg = guiCreateButton(213, 107, 72, 31, "Krieg", false, Fraktionstatus)
  132.       guiSetProperty(AtzenKrieg, "NormalTextColour", "FFFF0000")
  133.       AtzenFrieden = guiCreateButton(295, 107, 72, 31, "Frieden", false, Fraktionstatus)
  134.       guiSetProperty(AtzenFrieden, "NormalTextColour", "FFFFFFFF")
  135.       AtzenHandel = guiCreateButton(377, 107, 72, 31, "Handel", false, Fraktionstatus)
  136.       guiSetProperty(AtzenHandel, "NormalTextColour", "FF00FA00")
  137.       addEventHandler("onClientGUIClick", AtzenKrieg, function()
  138.         showCursor(false)
  139.         setElementData(lp, "ElementClicked", false)
  140.         destroyElement(Fraktionstatus)
  141.         local fraktion = 7
  142.         local status = "Krieg"
  143.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  144.       end, false)
  145.       addEventHandler("onClientGUIClick", AtzenFrieden, function()
  146.         showCursor(false)
  147.         setElementData(lp, "ElementClicked", false)
  148.         destroyElement(Fraktionstatus)
  149.         local fraktion = 7
  150.         local status = "Frieden"
  151.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  152.       end, false)
  153.       addEventHandler("onClientGUIClick", AtzenHandel, function()
  154.         showCursor(false)
  155.         setElementData(lp, "ElementClicked", false)
  156.         destroyElement(Fraktionstatus)
  157.         local fraktion = 7
  158.         local status = "Handel"
  159.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  160.       end, false)
  161.     end
  162.     if fraktion ~= 3 then
  163.       TriadenKrieg = guiCreateButton(213, 67, 72, 31, "Krieg", false, Fraktionstatus)
  164.       guiSetProperty(TriadenKrieg, "NormalTextColour", "FFFF0000")
  165.       TriadenFrieden = guiCreateButton(295, 66, 72, 31, "Frieden", false, Fraktionstatus)
  166.       guiSetProperty(TriadenFrieden, "NormalTextColour", "FFFFFFFF")
  167.       TriadenHandel = guiCreateButton(377, 66, 72, 31, "Handel", false, Fraktionstatus)
  168.       guiSetProperty(TriadenHandel, "NormalTextColour", "FF00FA00")
  169.       addEventHandler("onClientGUIClick", TriadenKrieg, function()
  170.         showCursor(false)
  171.         setElementData(lp, "ElementClicked", false)
  172.         destroyElement(Fraktionstatus)
  173.         local fraktion = 3
  174.         local status = "Krieg"
  175.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  176.       end, false)
  177.       addEventHandler("onClientGUIClick", TriadenFrieden, function()
  178.         showCursor(false)
  179.         setElementData(lp, "ElementClicked", false)
  180.         destroyElement(Fraktionstatus)
  181.         local fraktion = 3
  182.         local status = "Frieden"
  183.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  184.       end, false)
  185.       addEventHandler("onClientGUIClick", TriadenHandel, function()
  186.         showCursor(false)
  187.         setElementData(lp, "ElementClicked", false)
  188.         destroyElement(Fraktionstatus)
  189.         local fraktion = 3
  190.         local status = "Handel"
  191.         triggerServerEvent("fraktionsettings", lp, fraktion, status)
  192.       end, false)
  193.     end
  194.   end
  195.   if fraktion ~= 9 then
  196.     BikerKrieg = guiCreateButton(213, 27, 72, 31, "Krieg", false, Fraktionstatus)
  197.     guiSetProperty(BikerKrieg, "NormalTextColour", "FFFF0000")
  198.     BikerFrieden = guiCreateButton(295, 26, 72, 31, "Frieden", false, Fraktionstatus)
  199.     guiSetProperty(BikerFrieden, "NormalTextColour", "FFFFFFFF")
  200.     BikerHandel = guiCreateButton(377, 25, 72, 31, "Handel", false, Fraktionstatus)
  201.     guiSetProperty(BikerHandel, "NormalTextColour", "FF00FA00")
  202.     addEventHandler("onClientGUIClick", BikerKrieg, function()
  203.       showCursor(false)
  204.       setElementData(lp, "ElementClicked", false)
  205.       destroyElement(Fraktionstatus)
  206.       local fraktion = 9
  207.       local status = "Krieg"
  208.       triggerServerEvent("fraktionsettings", lp, fraktion, status)
  209.     end, false)
  210.     addEventHandler("onClientGUIClick", BikerFrieden, function()
  211.       showCursor(false)
  212.       setElementData(lp, "ElementClicked", false)
  213.       destroyElement(Fraktionstatus)
  214.       local fraktion = 9
  215.       local status = "Frieden"
  216.       triggerServerEvent("fraktionsettings", lp, fraktion, status)
  217.     end, false)
  218.     addEventHandler("onClientGUIClick", BikerHandel, function()
  219.       showCursor(false)
  220.       setElementData(lp, "ElementClicked", false)
  221.       destroyElement(Fraktionstatus)
  222.       local fraktion = 9
  223.       local status = "Handel"
  224.       triggerServerEvent("fraktionsettings", lp, fraktion, status)
  225.     end, false)
  226.   end
  227.   Bonus = guiCreateLabel(24, 240, 119, 27, "Bonus :", false, Fraktionstatus)
  228.   guiLabelSetHorizontalAlign(Bonus, "center", false)
  229.   guiLabelSetVerticalAlign(Bonus, "center")
  230.   Rang0Bonus = guiCreateLabel(28, 273, 180, 26, "Rang 0 : + " .. rang0 .. " $", false, Fraktionstatus)
  231.   guiLabelSetHorizontalAlign(Rang0Bonus, "center", false)
  232.   guiLabelSetVerticalAlign(Rang0Bonus, "center")
  233.   Rang1Bonus = guiCreateLabel(28, 309, 180, 26, "Rang 1 : + " .. rang1 .. " $", false, Fraktionstatus)
  234.   guiLabelSetHorizontalAlign(Rang1Bonus, "center", false)
  235.   guiLabelSetVerticalAlign(Rang1Bonus, "center")
  236.   Rang2Bonus = guiCreateLabel(28, 345, 180, 26, "Rang 2 : + " .. rang2 .. " $", false, Fraktionstatus)
  237.   guiLabelSetHorizontalAlign(Rang2Bonus, "center", false)
  238.   guiLabelSetVerticalAlign(Rang2Bonus, "center")
  239.   if prank >= 5 then
  240.     MemoRang0 = guiCreateMemo(218, 273, 117, 32, "1000", false, Fraktionstatus)
  241.     MemoRang1 = guiCreateMemo(218, 309, 117, 32, "1000", false, Fraktionstatus)
  242.     MemoRang2 = guiCreateMemo(218, 345, 117, 32, "1000", false, Fraktionstatus)
  243.     Speichern1 = guiCreateButton(345, 273, 80, 32, "Speichern", false, Fraktionstatus)
  244.     guiSetProperty(Speichern1, "NormalTextColour", "FFAAAAAA")
  245.     Speichern2 = guiCreateButton(345, 309, 80, 32, "Speichern", false, Fraktionstatus)
  246.     guiSetProperty(Speichern2, "NormalTextColour", "FFAAAAAA")
  247.     Speichern3 = guiCreateButton(345, 345, 80, 32, "Speichern", false, Fraktionstatus)
  248.     guiSetProperty(Speichern3, "NormalTextColour", "FFAAAAAA")
  249.     addEventHandler("onClientGUIClick", Speichern1, function()
  250.       showCursor(false)
  251.       setElementData(lp, "ElementClicked", false)
  252.       local betrag = tonumber(guiGetText(MemoRang0))
  253.       if betrag >= 0 and betrag <= 700 then
  254.         triggerServerEvent("fraktionsettingsmoney0", lp, betrag)
  255.       end
  256.       destroyElement(Fraktionstatus)
  257.     end, false)
  258.     addEventHandler("onClientGUIClick", Speichern2, function()
  259.       showCursor(false)
  260.       setElementData(lp, "ElementClicked", false)
  261.       local betrag = tonumber(guiGetText(MemoRang1))
  262.       if betrag >= 0 and betrag <= 700 then
  263.         triggerServerEvent("fraktionsettingsmoney1", lp, betrag)
  264.       end
  265.       destroyElement(Fraktionstatus)
  266.     end, false)
  267.     addEventHandler("onClientGUIClick", Speichern3, function()
  268.       showCursor(false)
  269.       setElementData(lp, "ElementClicked", false)
  270.       local betrag = tonumber(guiGetText(MemoRang2))
  271.       if betrag >= 0 and betrag <= 700 then
  272.         triggerServerEvent("fraktionsettingsmoney2", lp, betrag)
  273.       end
  274.       destroyElement(Fraktionstatus)
  275.     end, false)
  276.   end
  277.   FraktionssettingsClose = guiCreateButton(505, 361, 27, 24, "X", false, Fraktionstatus)
  278.   guiSetProperty(FraktionssettingsClose, "NormalTextColour", "FFAAAAAA")
  279.   addEventHandler("onClientGUIClick", FraktionssettingsClose, function()
  280.     showCursor(false)
  281.     setElementData(lp, "ElementClicked", false)
  282.     destroyElement(Fraktionstatus)
  283.   end, false)
  284. end
  285.  
  286. addEvent("ShowFraktionsettingWindow", true)
  287. addEventHandler("ShowFraktionsettingWindow", getRootElement(), ShowFraktionsettingWindow_func)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement