Jump to content

Laysiks

Members
  • Posts

    31
  • Joined

  • Last visited

Laysiks's Achievements

Rat

Rat (9/54)

0

Reputation

  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 )
×
×
  • Create New...