Jump to content

Laysiks

Members
  • Posts

    31
  • Joined

  • Last visited

Everything posted by Laysiks

  1. On my resolution 1024x768 : dxDrawText(string.format("£ %08d",getPlayerMoney(localPlayer)), X*1675, Y*150, 100, 100, tocolor(0, 75, 0, 255), 1.50, "pricedown", "center", "center", false, false, false, false, false) But in higher resolutions this text is on health bar. Can some one help me ?
  2. I need it scaled for all resolutions.
  3. Hello who can give me code with drawing money like this. PLN 00000000 ? To all resolutions. Ty you.
  4. Can some one help me ? I have this but this itsnt working.It's shows on chat outputChatBox and my message. addEventHandler("onPlayerChat",root,function () if getElementData(source,"blokadaspam") then cancelEvent() outputChatBox("Poczekaj na następną wiadomość",source,255,255,255,true) else setElementData(source,"blokadaspam",true) setTimer(function () setElementData(source,"blokadaspam", false) end,5000,1) end end)
  5. I need only simple code.
  6. Hello! Have someone code where chat is blocking for 5 sec when player "spam" ? I'm waiting for some help or code.
  7. Laysiks

    [Question]

    I think it is removable/blockable.
  8. Laysiks

    [Question]

    I saw command "logout" is blockable ..
  9. Oh, i forgot about that. Thank you its working good now
  10. addEventHandler("onPlayerLogin",getRootElement(), function () local pl = source local acc = pl:getAccount() local login = acc:getName() local q = dbQuery(polaczenie,"SELECT rowid,* FROM postacie WHERE login=?",login) local result = dbPoll(q,-1) if #result == 0 then triggerClientEvent("otworzgui",pl) That was bit s-side Client function open () if guiGetVisible(Postac.window[1]) == false then guiSetVisible(Postac.window[1],true) showCursor(true) else guiSetVisible(Postac.window[1],false) showCursor(false) end end addEvent("otworzgui",true) addEventHandler("otworzgui",getRootElement(),open)
  11. Hello! I've problem. My gui when im logging in is visible for all players on server. I have added addEventHandler("onPlayerLogin".. on server side and i have in this function trigger to open gui in client side but all players see this gui. How to make it visible for one player ?
  12. Hello! How to make GUI where position is center and length,height(not changed) are this same in all resolutions ?
  13. I've notepad++. I have 1 question, can u change position this image to center ? Its very stupid ;p addEventHandler("onClientRender", root, function() dxDrawImage(x*400, y*100,x*500, y*400, ":Lay-New/window.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Zmień Skin", x*825, y*200, x*477, y*34, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) end )
  14. Ok thank you, have you notepad++ mtaLua syntax? Plugin.
  15. I'll test it but i dont have time now. i'll post if this problem end or not.
  16. Ty #RooTs, i have one question. I must all do without editor (dxDrawImage(x*this, y*this, 100, 50..)? With editor it will be bugged.
  17. Still its not working good. Text in other resolution is not within image
  18. Laysiks

    help (DXdraw)

    save it at c.lua and add the meta.xml in previos post i says.
  19. Laysiks

    help (DXdraw)

    Check this. This script have handlers onClientRender, this must be on client-side.
  20. No it like that |-------------------------------| |Here is text on up window| |-------------------------------|
  21. I didn't tested it bcs i need to all resolutions. Or how to set parent ? Default window dxDrawImage, how to add dxDrawText and how to do this not sizable.
  22. Helo! How can i attach dxDrawText to dxDrawImage. I'm doing it at my resolution 800x600, image is not sizable but dxDrawText when i click in guieditor showInResoltion 1024x728 this text are near image not at it. How to attach this text to image. I'm waiting for any help.
×
×
  • Create New...