Jump to content

1LoL1

Members
  • Posts

    944
  • Joined

  • Last visited

Everything posted by 1LoL1

  1. 1LoL1

    Solved

    //EDIT: Now i using guiSetTexts and when i change language nothing only when i restarted resource.
  2. 1LoL1

    Solved

    lol work thanks but how to change text now
  3. 1LoL1

    Solved

    so guiSetText all delete?
  4. 1LoL1

    Solved

    What you mean? When i delete vip i see there ACTIVE and NOT ACTIVE too or when i joined server and i have VIP i see there ACTIVE 3x and NOT ACTIVE 4x all in 1.
  5. 1LoL1

    Solved

    lol work thanks but when i delete player in acl.xml there is text ACTIVE and NOT ACTIVE too
  6. 1LoL1

    Solved

    [00:28:53] WARNING: [gameplay]/BB/server.lua:4: Bad argument @ 'getPlayerAccount' [Expected element at argument 1, got nil] [00:28:53] WARNING: [gameplay]/BB/server.lua:4: Bad argument @ 'getAccountName' [Expected account at argument 1, got boolean] [00:28:53] ERROR: [gameplay]/BB/server.lua:4: attempt to concatenate a boolean value
  7. 1LoL1

    Solved

    function test (button, state) if button == "left" and state == "up" then setElementData(getLocalPlayer(), "lang", "EN") guiSetInputEnabled(false) guiSetVisible(GUIEditor_Window[1], false) showCursor(false) end end
  8. 1LoL1

    Solved

    function CreateShopWindow() VipWindow = guiCreateWindow(350,225,320,375,"TEST",false) guiSetAlpha ( VipWindow, 5.00 ) if getElementData(localPlayer, "lang") == "EN" then local C1 = guiCreateLabel(10,50,500,500,"",false,VipWindow) guiSetText (C1, "TEST1") guiLabelSetColor ( C1, 0, 255, 0 ) guiSetFont(C1, "default-bold-small") local C2 = guiCreateLabel(10,75,500,500,"",false,VipWindow) guiSetText (C2, "TEST2") guiLabelSetColor ( C2, 0, 255, 0 ) local C3 = guiCreateLabel(10,100,500,500,"",false,VipWindow) guiSetText (C3, "TEST3") guiLabelSetColor ( C3, 0, 255, 0 ) local C4 = guiCreateLabel(10,125,500,500,"",false,VipWindow) guiSetText (C4, "TEST4") guiLabelSetColor ( C4, 0, 255, 0 ) local C5 = guiCreateLabel(10,150,500,500,"",false,VipWindow) guiSetText (C5, "TEST5") guiLabelSetColor ( C5, 0, 255, 0 ) local C6 = guiCreateLabel(10,175,500,500,"",false,VipWindow) guiSetText (C6, "TEST6") guiLabelSetColor ( C6, 0, 255, 0 ) local C7 = guiCreateLabel(10,25,500,500,"",false,VipWindow) guiSetText (C7, "TEST7") guiSetFont(C7, "default-bold-small") local C8 = guiCreateLabel(80,25,500,500,"",false,VipWindow) guiSetText (C8, "TEST8") guiSetFont(C8, "default-bold-small") guiLabelSetColor(C8, 255, 0, 0) guiCreateStaticImage(10, 225, 20, 16, ":admin/client/images/flags/test.png",false,VipWindow) test9 = guiCreateLabel(40, 225, 500, 500, "TEST9",false,VipWindow) guiSetText (text9, "TEST") guiSetFont(test9, "default-bold-small") guiCreateStaticImage(10, 250, 20, 16, ":admin/client/images/flags/test.png",false,VipWindow) test10 = guiCreateLabel(40,250, 500, 500, "TEST10",false,VipWindow) setGuiText (text10, "TEST10") guiSetFont(test10, "default-bold-small") local C9 = guiCreateLabel(10, 350, 500, 500, "",false,VipWindow) guiSetText (C9, "TEST11") guiSetFont(C9, "default-bold-small") local C10 = guiCreateLabel(10, 295, 500, 500, "",false,VipWindow) guiSetText (C10, "TEST12") guiSetFont(C10, "default-bold-small") local C11 = guiCreateLabel(10, 315, 500, 500, "",false,VipWindow) guiSetText (C11, "TEST13") guiSetFont(C11, "default-bold-small") else local C1 = guiCreateLabel(10,50,500,500,"",false,VipWindow) guiSetText (C1, "TEST1") guiLabelSetColor ( C1, 0, 255, 0 ) guiSetFont(C1, "default-bold-small") local C2 = guiCreateLabel(10,75,500,500,"",false,VipWindow) guiSetText (C2, "TEST2") guiLabelSetColor ( C2, 0, 255, 0 ) local C3 = guiCreateLabel(10,100,500,500,"",false,VipWindow) guiSetText (C3, "TEST3") guiLabelSetColor ( C3, 0, 255, 0 ) local C4 = guiCreateLabel(10,125,500,500,"",false,VipWindow) guiSetText (C4, "TEST4") guiLabelSetColor ( C4, 0, 255, 0 ) local C5 = guiCreateLabel(10,150,500,500,"",false,VipWindow) guiSetText (C5, "TEST5") guiLabelSetColor ( C5, 0, 255, 0 ) local C6 = guiCreateLabel(10,175,500,500,"",false,VipWindow) guiSetText (C6, "TEST6") guiLabelSetColor ( C6, 0, 255, 0 ) local C7 = guiCreateLabel(10,25,500,500,"",false,VipWindow) guiSetText (C7, "TEST7") guiSetFont(C7, "default-bold-small") local C8 = guiCreateLabel(80,25,500,500,"", false,VipWindow) guiSetText (C8, "TEST8") guiSetFont(C8, "default-bold-small") guiLabelSetColor(C8, 0, 255, 0) guiCreateStaticImage(10, 225, 20, 16, ":admin/client/images/flags/cz.png",false,VipWindow) local TesT = guiCreateLabel(40, 225, 500, 500, "",false,VipWindow) guiSetText (TesT, "TesT") guiSetFont(TesT, "default-bold-small") guiCreateStaticImage(10, 250, 20, 16, ":admin/client/images/flags/sk.png",false,VipWindow) local tESt = guiCreateLabel(40, 250, 500, 500, "",false,VipWindow) guiSetText (tESt, "TEST") guiSetFont(tESt, "default-bold-small") local C9 = guiCreateLabel(10, 350, 500, 500, "",false,VipWindow) guiSetText (C9, "TEST9") guiSetFont(C9, "default-bold-small") local C10 = guiCreateLabel(10, 295, 500, 500, "",false,VipWindow) guiSetText (C10, "TEST10") guiSetFont(C10, "default-bold-small") local C11 = guiCreateLabel(10, 315, 500, 500, "",false,VipWindow) guiSetText (C11, "TEST11") guiSetFont(C11, "default-bold-small") end guiWindowSetSizable(VipWindow,false) guiSetVisible(VipWindow,false) end addEventHandler("onClientResourceStart", getRootElement(), CreateShopWindow) function ShowGUI ( ) guiSetVisible ( VipWindow, not guiGetVisible ( VipWindow ) ) showCursor ( not isCursorShowing( ) ) local screenW,screenH=guiGetScreenSize() local windowW,windowH=guiGetSize(VipWindow,false) local x,y = (screenW-windowW)/2,(screenH-windowH)/2 guiSetPosition(VipWindow,x,y,false) end bindKey ( "F2","down", ShowGUI )
  9. 1LoL1

    Solved

    and why this not work? if getElementData(localPlayer, "lang") == "EN" then local C1 = guiCreateLabel(10,50,500,500,"",false,VipWindow) guiSetText (C1, "TEST1") guiLabelSetColor ( C1, 0, 255, 0 ) guiSetFont(C1, "default-bold-small") else local C1 = guiCreateLabel(10,50,500,500,"",false,VipWindow) guiSetText (C1, "TEST2") guiLabelSetColor ( C1, 0, 255, 0 ) guiSetFont(C1, "default-bold-small") i change language to "else" but text is again in EN i must restart resource when i want to change language.
  10. 1LoL1

    Solved

    this is when player is in acl.xml in "VIP" ?
  11. 1LoL1

    Solved

    can you get me please example? its hard for me.
  12. 1LoL1

    Solved

    Hello, anyone can help me with this code? or how to change ACTIVE only to "VIP" and when i dont have VIP text will NOT ACTIVE local C8 = guiCreateLabel(80,25,500,500,"ACTIVE",false,VipWindow) guiSetFont(C8, "default-bold-small") guiLabelSetColor(C8, 0, 255, 0) else local C8 = guiCreateLabel(80,25,500,500,"NOT ACTIVE", false,VipWindow) guiSetFont(C8, "default-bold-small") guiLabelSetColor(C8, 255, 0, 0) end
  13. 1LoL1

    [HELP] Please

    thanks but its hard for me i need fix to my code because my code i have in my all scripts.
  14. 1LoL1

    [HELP] Please

    Hello, anyone can help me with this: if getElementData(getLocalPlayer(), "lang") == "EN" then outputChatBox("#0044FFTEST #FFFFFFTEST "..getPlayerName(player).." #FFFFFFTEST #FF0000["..tostring(amount).."] #FFFFFFTEST TEST test "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) else outputChatBox("#0044FF[TEST] #FFFFFFTEST "..getPlayerName(player).." #FFFFFFTEST #FF0000["..tostring(amount).."] #FFFFFFTEST TEST "..getPlayerName(targetplayer), getRootElement(), 255, 255, 255, true) end how i can when i have EN language i see in outputChatBox only EN language and when i have "else" i see only "else" language please help me now its: When i have EN language i see EN outputchatbox but when my friend have "else" he too see EN
  15. 1LoL1

    Solved..

    Not Work and what i use wrong? i using Notepad++.
  16. 1LoL1

    Solved..

    addEvent("onZombieKilled",true) addEventHandler("onZombieKilled",getRootElement(), function (killer) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(killer)),aclGetGroup("VIP")) then local points = math.random(1,10) givePlayerMoney(killer, points) if getElementData(localPlayer, "lang") == "EN" then if tonumber(points) == 1 or tonumber(points) == 0 then PointsString = "TEST" elseif tonumber(points) >= 2 and tonumber(points) <= 4 then PointsString = "TEST1" elseif tonumber(points) => 5 then PointsString = "TEST2" end outputChatBox("#FFFF00[VIP] #00FF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true) elseif getElementData(localPlayer, "lang") == "EN2" then if tonumber(points) == 1 or tonumber(points) == 0 then PointsString = "TEST" elseif tonumber(points) >= 2 and tonumber(points) <= 4 then PointsString = "TEST1" elseif tonumber(points) => 5 then PointsString = "TEST2" end outputChatBox("#FFFF00[VIP] #00FF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true) end
  17. local playerSkin = getElementModel (localPlayer) dxDrawText ( "Kinézet"..playerSkin, x/3.6, y/3.2, x, y, tocolor ( 255, 255, 255, 255 ), 1, "clear" )
  18. 1LoL1

    Solved..

    Try somthing like this: if getElementData(localPlayer, "lang") == "EN" then if tonumber(points) == 1 or tonumber(points) == 0 then PointsString = "TEST" elseif tonumber(points) >= 2 and tonumber(points) <= 4 then PointsString = "TEST1" elseif tonumber(points) => 5 then PointsString = "TEST2" end outputChatBox("#FFFF00[VIP] #00FF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true) elseif getElementData(localPlayer, "lang") == "FR" then if tonumber(points) == 1 or tonumber(points) == 0 then PointsString = "TEST" elseif tonumber(points) >= 2 and tonumber(points) <= 4 then PointsString = "TEST1" elseif tonumber(points) => 5 then PointsString = "TEST2" end outputChatBox("#FFFF00[VIP] #00FF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true) end not work 0 error 0 warning and when i killed zombie i dont see outputChatBox
  19. 1LoL1

    Solved..

    When i killed zombie 0 errors 0 warning so not work
  20. 1LoL1

    Solved..

    Thanks but not work. Here is my full code and how to this: 1 = TEST 2, 3, 4 = TEST1 5 and more = TEST2 if getElementData(localPlayer, "lang") == "EN" then if tonumber (points) == 1 then PointsString = "Point!" elseif tonumber (points) >= 2 then PointsString = "Points!" end outputChatBox("#00FF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true) end else if tonumber (points) == 1 then PointsString = "Point!" elseif tonumber (points) >= 2 then PointsString = "Points!" end outputChatBox("#00FF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true) end end)
  21. 1LoL1

    Solved..

    i have this: 1 = Point! 2 and more = Points! but this not work please can anyone help me? if tonumber (points) == 1 then PointsString = "Point!" else if tonumber (points) == 2 then PointsString = "Points!" else if tonumber (points) == 3 then PointsString = "TEST" end outputChatBox("#FFFF00test #FF0000[" .. points .. "] #00FF00"..PointsString, killer, 255, 255, 255, true)
  22. 1LoL1

    [HELP] BASE

    Hello anyone can help me with this my code? function openMyGate ( ) moveObject ( Gate, 2000, 1534.5999755859, -1451.5, 19.89999961853 ) end addCommandHandler("test",openMyGate) function movingMyGateBack () moveObject ( Gate, 2000, 1534.5999755859, -1451.5, 14.89999961853 ) end addCommandHandler("test1",movingMyGateBack) now its when i use /test gate will opened and when i use /test1 gate will closed. How to change only on 1 command? when i use /test gate will opened and when i use /test gate will closed.
  23. 1LoL1

    [HELP] Logs

    Hi anyone can help me with this code? addEventHandler("onPlayerChat", root, function (msg,msgt) if (msgt == 0) then msg = string.gsub(msg, "#%x%x%x%x%x%x", "") output(getPlayerName(source):..": "..msg.."", "LocalChat") elseif (cmd == idk) then msg = string.gsub(msg, "#%x%x%x%x%x%x", "") output(getPlayerName(source).." "..msg.."", "RadioChat") elseif (cmd == idk) then msg = string.gsub(msg, "#%x%x%x%x%x%x", "") output(getPlayerName(source)..": "..msg.."", "GlobalChat") end end ) LocalChat = Work RadioChat = Not Work GlobalChat = Not Work My command is /GlobalChat and /RadioChat and this i have on bindKey GlobalChat = X RadioChat = Z Can anyone fixed this? please
×
×
  • Create New...