Beiträge von kevkev1997

    Hallo ich suche ein Vote Redo System für mein Race Script ich habe es mal probiert zu Scripten aber es klappt nicht kann mir jemand helfen ? Hat villeicht jemand ein Vote Redo System für mich oder kann mir jemand helfen eins zu Scripten ? :/ Danke schonmal im Vorraus.Pls brauche hilfe xD *pinch*


    Mfg Kevkev


    -Gesendet von meinem Samsung Galaxy S3 *:S*

    Hay ich habe das Register Problem beseitig ich musste nur die richtige Datenbank eingeben aber ich habe ein weiteres Problem das Register tab geht aber nicht mehr das Login tab XD Kann mir jemand helfen sonst geht alles auser der Login tab


    local Guivar = 0

    addEventHandler("onClientRender", getRootElement(), function() if(Guivar == 1) then showCursor(true) end end)

    local Loginfenster = {}
    local LoginTabPanel = {}
    local LoginTab = {}
    local LoginKnopf = {}
    local LoginLabel = {}
    local LoginEdit = {}
    local LoginRadio = {}
    local LoginGrid = {}
    local LoginBild = {}

    function createRegisterMenue()
    if(Guivar == 1) then return end
    local data = tonumber(getElementData(gMe, "scriptvar"))
    if(data == 1) then return end
    Guivar = 1
    guiSetInputMode("no_binds_when_editing")
    setElementData(gMe, "inLogin", true)

    local X, Y, Width, Height = getMiddleGuiPosition(531,300)
    showCursor(true)
    -- LOGIN --
    Loginfenster[1] = guiCreateWindow(X, Y, Width, Height,"Willkommen!",false)
    LoginTabPanel[1] = guiCreateTabPanel(9,26,513,265,false,Loginfenster[1])
    LoginTab[1] = guiCreateTab("Login",LoginTabPanel[1])
    LoginBild[1] = guiCreateStaticImage(8,11,489,68,"data/images/logo.png",false,LoginTab[1])
    LoginLabel[1] = guiCreateLabel(99,87,301,35,"Willkommen auf GGR-Reallife!\nDeine Daten wurden gefunden, bitte Logge dich ein!",false,LoginTab[1])
    guiLabelSetHorizontalAlign(LoginLabel[1],"center",false)
    guiSetFont(LoginLabel[1],"default-bold-small")
    LoginLabel[2] = guiCreateLabel(16,122,117,17,"Passwort:",false,LoginTab[1])
    guiSetFont(LoginLabel[2],"default-bold-small")
    LoginEdit[1] = guiCreateEdit(15,142,471,29,"12345",false,LoginTab[1])
    guiEditSetMasked(LoginEdit[1],true)
    LoginKnopf[1] = guiCreateButton(158,179,183,29,"Einloggen",false,LoginTab[1])
    LoginLabel[3] = guiCreateLabel(9,214,497,27,"(Falls du noch kein Account hast, Registriere dich, oder nehme einen anderen Namen.)",false,LoginTab[1])
    guiSetFont(LoginLabel[3],"default-bold-small")
    -- REGISTER --
    LoginTab[2] = guiCreateTab("Register",LoginTabPanel[1])
    LoginLabel[4] = guiCreateLabel(17,12,228,24,"Bitte Fuelle dieses Formular aus!",false,LoginTab[2])
    guiSetFont(LoginLabel[4],"default-bold-small")
    LoginLabel[5] = guiCreateLabel(15,41,292,15,"Accountname: "..getPlayerName(gMe),false,LoginTab[2])
    guiLabelSetColor(LoginLabel[5],255, 255, 0)
    guiSetFont(LoginLabel[5],"default-bold-small")
    LoginLabel[6] = guiCreateLabel(15,58,211,18,"Passwort:",false,LoginTab[2])
    guiLabelSetColor(LoginLabel[6],0, 255, 0)
    guiSetFont(LoginLabel[6],"default-bold-small")
    LoginEdit[2] = guiCreateEdit(12,77,197,23,"",false,LoginTab[2])
    guiEditSetMasked(LoginEdit[2],true)
    LoginEdit[3] = guiCreateEdit(11,119,197,23,"",false,LoginTab[2])
    guiEditSetMasked(LoginEdit[3],true)
    LoginLabel[7] = guiCreateLabel(14,103,211,18,"Bestaetigung:",false,LoginTab[2])
    guiLabelSetColor(LoginLabel[7],0, 255, 0)
    guiSetFont(LoginLabel[7],"default-bold-small")
    LoginLabel[8] = guiCreateLabel(322,32,183,18,"Alter:(Kein Geburtstdatum)",false,LoginTab[2])
    guiLabelSetColor(LoginLabel[8],255, 255, 0)
    guiSetFont(LoginLabel[8],"default-bold-small")
    LoginEdit[4] = guiCreateEdit(330,55,69,23,"",false,LoginTab[2])
    LoginLabel[9] = guiCreateLabel(327,98,164,17,"Sprache:",false,LoginTab[2])
    guiLabelSetColor(LoginLabel[9],255,255,0)
    guiSetFont(LoginLabel[9],"default-bold-small")
    LoginGrid[1] = guiCreateGridList(323,119,183,97,false,LoginTab[2])
    guiGridListSetSelectionMode(LoginGrid[1],1)

    guiGridListAddColumn(LoginGrid[1],"Land",0.6)

    addEventHandler("onClientGUIClick", LoginEdit[1], function() if(guiGetText(source) == "12345") then guiSetText(source, "") end end, false)

    local row = guiGridListAddRow (LoginGrid[1] )
    guiGridListSetItemText(LoginGrid[1],row,1,"Deutschland",false,false)
    local row = guiGridListAddRow (LoginGrid[1] )
    guiGridListSetItemText(LoginGrid[1],row,1,"Oesterreich",false,false)
    local row = guiGridListAddRow (LoginGrid[1] )
    guiGridListSetItemText(LoginGrid[1],row,1,"Schweiz",false,false)


    guiWindowSetSizable ( Loginfenster[1], false )
    guiWindowSetMovable ( Loginfenster[1], false )


    LoginLabel[10] = guiCreateLabel(13,153,117,18,"Geschlecht:",false,LoginTab[2])
    guiLabelSetColor(LoginLabel[10],255, 255,0 )
    guiSetFont(LoginLabel[10],"default-bold-small")
    LoginRadio[1] = guiCreateRadioButton(15,175,114,21,"Maennlich",false,LoginTab[2])
    guiRadioButtonSetSelected(LoginRadio[1],true)
    LoginRadio[2] = guiCreateRadioButton(14,195,114,21,"Weiblich",false,LoginTab[2])
    LoginKnopf[2] = guiCreateButton(169,187,134,30,"Registrieren",false,LoginTab[2])
    -- Functions --
    local function setEnabled()
    for i = 1, #LoginKnopf, 1 do
    guiSetEnabled(LoginKnopf, true)
    end
    end

    local function setDisabled()
    for i = 1, #LoginKnopf, 1 do
    guiSetEnabled(LoginKnopf, false)
    end
    end