Jump to content

Nerox

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by Nerox

  1. Nerox

    Users

    Hello guys, i've got an question. When someone registers on my Server, where can i delete his account, in which folder? Also, how to encrypt script so when someone joins my server and downloads the script, he cannot open it and use it for himself?
  2. Nerox

    Statistics

    About the Freeroam, i didn't have it ran, so it was not the problem. Anyway, thank you very much
  3. Nerox

    Statistics

    Thank you, iMr.3a[Z]eF. abxf: iMr.3a[Z]eF was faster
  4. Nerox

    Statistics

    Hello guys. I'm scripting an Stats system, but somehow i can't get this to work: GUIEditor = { tab = {}, window = {}, tabpanel = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(555, 297, 565, 436, "Panel Hráča", false) guiWindowSetMovable(GUIEditor.window[1], false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.tabpanel[1] = guiCreateTabPanel(9, 25, 546, 401, false, GUIEditor.window[1]) GUIEditor.tab[1] = guiCreateTab("Štatistiky", GUIEditor.tabpanel[1]) GUIEditor.label[1] = guiCreateLabel(83, 41, 190, 18, "Typ", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 126, 254) GUIEditor.label[2] = guiCreateLabel(273, 41, 190, 18, "Hodnota", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 0, 126, 254) GUIEditor.label[3] = guiCreateLabel(83, 153, 190, 18, "Výrhy", false, GUIEditor.tab[1]) GUIEditor.label[4] = guiCreateLabel(83, 125, 190, 18, "Úmrtia", false, GUIEditor.tab[1]) GUIEditor.label[5] = guiCreateLabel(83, 97, 190, 18, "Peniaze", false, GUIEditor.tab[1]) GUIEditor.label[6] = guiCreateLabel(83, 69, 190, 18, "Body", false, GUIEditor.tab[1]) GUIEditor.label[7] = guiCreateLabel(273, 125, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[8] = guiCreateLabel(273, 97, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[9] = guiCreateLabel(273, 69, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[10] = guiCreateLabel(273, 153, 190, 18, "", false, GUIEditor.tab[1]) GUIEditor.label[11] = guiCreateLabel(246, 283, 267, 19, "www.webstranka.tk", false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[11], "default-bold-small") GUIEditor.label[12] = guiCreateLabel(83, 181, 190, 18, "Nahraný Čas", false, GUIEditor.tab[1]) GUIEditor.label[13] = guiCreateLabel(273, 181, 190, 18, "", false, GUIEditor.tab[1]) end ) addEventHandler("onClientResourceStart", resourceRoot, function() local playermoney = getPlayerMoney ( source ) local playerpoints = getElementData(source,"Points") local playertime = getElementData(source,"Playtime") local playerwins = getElementData(source,"Wins") local playerdeaths = getElementData(source,"Deaths") guiSetText (GUIEditor.label[9], "" .. playerpoints .. "") guiSetText (GUIEditor.label[8], "" .. playermoney .. "") guiSetText (GUIEditor.label[7], "" .. playerdeaths .. "") guiSetText (GUIEditor.label[10], "" .. playerwins .. "") guiSetText (GUIEditor.label[13], "" .. playertime .. "") end ) addEventHandler("onClientRender", root, function() dxDrawLine(628, 408, 925, 408, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 493, 925, 493, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 465, 925, 465, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 438, 925, 438, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(762, 383, 762, 553, tocolor(255, 255, 255, 255), 1, true) dxDrawLine(628, 523, 925, 523, tocolor(255, 255, 255, 255), 1, true) end ) function guiToggleVisible ( GUIEditor.window[1] ) if ( guiGetVisible ( GUIEditor.window[1] ) == true ) then guiSetVisible ( GUIEditor.window[1], false ) else guiSetVisible ( GUIEditor.window[1], true ) end end bindKey ( "f1", "down", guiToggleVisible ) I want the stats to show in the GUI, but the GUI won't open when i press F1. Any ideas why?
×
×
  • Create New...