Jump to content

Ayuda dejo de andar


Plate

Recommended Posts

Hola les queria decir que este script de la nada dejo de andar si alguien me puede ayudar a hacer que ande denuevo

function dxsetText ( ) 
    local text = "" 
    local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 
    if ( UP == 1 ) then 
        text = "/60" 
    elseif ( UP == 2 ) then 
        text = "/110" 
    elseif ( UP == 3 ) then 
        text = "/160" 
    elseif ( UP == 4 ) then 
        text = "/250" 
    elseif ( UP == 5 ) then 
        text = "/500" 
    elseif ( UP == 6 ) then 
        text = "/2000" 
    elseif ( UP == 7 ) then 
        text = "/4000" 
    elseif ( UP == 8 ) then 
        text = "/8000" 
    end 
    GUIEditor_Label[5] = guiCreateLabel(706,159,63,13, text,false ) 
    guiSetFont ( GUIEditor_Label[5], "default-bold-small" ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, dxsetText ) 
  
addEventHandler ( "onClientElementDataChange", localPlayer, 
    function ( dataName ) 
        if ( dataName == "level" ) then 
            dxsetText ( ) 
        end 
    end 
) 
function dxsetlevel() 
local text2 = "" 
    local UP2 = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 
           if ( UP2 == 9 ) then 
        text2 = "/ 12000" 
    elseif ( UP2 == 10 ) then 
        text2 = "/ 16000" 
    elseif ( UP2 == 11 ) then 
        text2 = "/ 20000" 
    elseif ( UP2 == 12 ) then 
        text2 = "/ 24000" 
    elseif ( UP2 == 13 ) then 
        text2 = "/ 28000" 
    elseif ( UP2 == 14 ) then 
        text2 = "/ 32000" 
    elseif ( UP2 == 15 ) then 
        text2 = "/ 36000" 
    elseif ( UP2 == 16 ) then 
        text2 = "/ 40000" 
    elseif ( UP2 == 17 ) then 
        text2 = "/ 44000" 
    elseif ( UP2 == 18 ) then 
        text2 = "/ 48000" 
    elseif ( UP2 == 19 ) then 
        text2 = "/ 52000" 
    elseif ( UP2 == 20 ) then 
        text2 = "/ 56000" 
    elseif ( UP2 == 21 ) then 
        text2 = "/ 66000" 
    elseif ( UP2 == 22 ) then 
        text2 = "/ 78000" 
    elseif ( UP2 == 23 ) then 
        text = "/ 87000" 
  elseif ( UP2 == 24 ) then 
        text2 = "/ 99000" 
end 
  GUIEditor_Label[5] = guiCreateLabel(718,159,63,13, text2,false) 
guiSetFont(GUIEditor_Label[5],"default-bold-small") 
end 
addEventHandler("onClientResourceStart",root,dxsetlevel) 
addEventHandler ( "onClientElementDataChange", localPlayer, 
    function ( dataName ) 
        if ( dataName == "level" ) then 
            dxsetlevel ( ) 
        end 
    end 
) 
function dxsetlevelhigh() 
local text3 = "" 
    local UP3 = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 
          if ( UP3 == 25 ) then 
         text3 = "/110000" 
  elseif ( UP3 == 26 ) then 
        text3 = "/ 119000" 
  elseif ( UP3 == 27 ) then 
        text3 = "/ 127000" 
  elseif ( UP3 == 28 ) then 
        text3 = "/ 139000" 
  elseif ( UP3 == 29 ) then 
        text3 = "/ 148000" 
  elseif ( UP3 == 30 ) then 
        text3 = "/ 156000" 
  elseif ( UP3 == 31 ) then 
        text3 = "/ 166000" 
  elseif ( UP3 == 32 ) then 
        text3 = "/ 179000" 
  elseif ( UP3 == 33 ) then 
        text3 = "/ 187000" 
  elseif ( UP3 == 34 ) then 
        text3 = "/ 198000" 
  elseif ( UP3 == 35 ) then 
        text3 = "/ 209000" 
end 
  GUIEditor_Label[5] = guiCreateLabel(724,159,63,13, text3,false) 
guiSetFont(GUIEditor_Label[5],"default-bold-small") 
end 
addEventHandler("onClientResourceStart",root,dxsetlevelhigh) 
addEventHandler ( "onClientElementDataChange", localPlayer, 
    function ( dataName ) 
        if ( dataName == "level" ) then 
            dxsetlevelhigh ( ) 
        end 
    end 
) 
  

Link to comment
function dxsetText ( ) 
    local text = "" 
    local UP = tonumber ( getElementData ( localPlayer, "level" ) ) or 0 
    if ( UP == 1 ) then 
        text = "/60" 
    elseif ( UP == 2 ) then 
        text = "/110" 
    elseif ( UP == 3 ) then 
        text = "/160" 
    elseif ( UP == 4 ) then 
        text = "/250" 
    elseif ( UP == 5 ) then 
        text = "/500" 
    elseif ( UP == 6 ) then 
        text = "/2000" 
    elseif ( UP == 7 ) then 
        text = "/4000" 
    elseif ( UP == 8 ) then 
        text = "/8000" 
    elseif ( UP == 9 ) then 
        text = "/12000" 
    elseif ( UP == 10 ) then 
        text = "/16000" 
    elseif ( UP == 11 ) then 
        text = "/20000" 
    elseif ( UP == 12 ) then 
        text = "/24000" 
    elseif ( UP == 13 ) then 
        text = "/28000" 
    elseif ( UP == 14 ) then 
        text = "/32000" 
    elseif ( UP == 15 ) then 
        text = "/36000" 
    elseif ( UP == 16 ) then 
        text = "/40000" 
    elseif ( UP == 17 ) then 
        text = "/44000" 
    elseif ( UP == 18 ) then 
        text = "/48000" 
    elseif ( UP == 19 ) then 
        text = "/52000" 
    elseif ( UP == 20 ) then 
        text = "/56000" 
    elseif ( UP == 21 ) then 
        text = "/66000" 
    elseif ( UP == 22 ) then 
        text = "/78000" 
    elseif ( UP == 23 ) then 
        text = "/87000" 
    elseif ( UP == 24 ) then 
        text = "/99000" 
    elseif ( UP == 25 ) then 
         text = "/110000" 
    elseif ( UP == 26 ) then 
        text = "/119000" 
    elseif ( UP == 27 ) then 
        text = "/127000" 
    elseif ( UP == 28 ) then 
        text = "/139000" 
    elseif ( UP == 29 ) then 
        text = "/148000" 
    elseif ( UP == 30 ) then 
        text = "/156000" 
    elseif ( UP == 31 ) then 
        text = "/166000" 
    elseif ( UP == 32 ) then 
        text = "/179000" 
    elseif ( UP == 33 ) then 
        text = "/187000" 
    elseif ( UP == 34 ) then 
        text = "/198000" 
    elseif ( UP == 35 ) then 
        text = "/209000" 
    end 
    GUIEditor_Label[5] = guiCreateLabel(706,159,63,13,text,false) 
    guiSetFont ( GUIEditor_Label[5], "default-bold-small" ) 
end 
addEventHandler ( "onClientResourceStart", resourceRoot, dxsetText ) 
  
addEventHandler ( "onClientElementDataChange", localPlayer, 
    function ( dataName ) 
        if ( dataName == "level" ) then 
            dxsetText ( ) 
        end 
    end 
) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...