Jump to content

Firespider

Members
  • Posts

    126
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Firespider's Achievements

Poot-butt

Poot-butt (14/54)

1

Reputation

  1. Firespider

    [HELP]

    Isn't that the code?
  2. Firespider

    [HELP]

    Doesn't working
  3. Firespider

    [HELP]

    Doesn't working
  4. Firespider

    [HELP]

    He already solved that For some reason, he won't take money even if he has enough.
  5. Firespider

    [HELP]

    Why doesn't the button light up when you move the mouse over it? And if they click on him, why doesn't he take the money if he has enough. local sx,sy = guiGetScreenSize();--1920,1080 local relx,rely = sx/1920,sy/1080; local isCardShop = false local money = getPlayerMoney(localPlayer) local Cardlist = { [1] = {411, "Cég1", 100}, }; color = tocolor(41, 173, 21, 255) addEventHandler("onClientRender", root, function() if (isCardShop) then ---Rajz dxDrawRectangle(sx*.25, sy*.20, sx*.50, sy*.05, tocolor(0, 0, 0, 200))--Fejléc dxDrawRectangle(sx*.250, sy*.25, sx*.50, sy*.7, tocolor(30, 40, 50, 200))--Menű dxDrawRectangle(sx*.450, sy*.50, sx*.10, sy*.07, color1 or color)--Gomb ---Feliratok dxDrawText("Cég menű", sx*.50, sy*.090, sx*.50, sy*.36, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Cégek:", sx*.50, sy*.20, sx*.50, sy*.36, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Kamionos cég", sx*.50, sy*.25, sx*.50, sy*.36, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("Kamionos cég", sx*.50, sy*.70, sx*.50, sy*.36, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat dxDrawText("50000$", sx*.50, sy*.75, sx*.50, sy*.36, tocolor(200, 200, 200, 255), relx*2, rely*2, "default-bold", "center", "center", false, false, false)--Felirat end end ); bindKey("F5","down",function() if isCardShop == true then isCardShop = false else isCardShop = true end end) function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) return ( ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) ) end ---------- if isMouseInPosition(sx*.450, sy*.50, sx*.10, sy*.07) then color1 = tocolor(88, 0, 0, 50) else color1 = color end ----------- function OpenWindow() isCardShop = not isCardShop if removeEventHandler("onClientRender", root, Panel) then removeEventHandler("onClientRender", root, Panel) showCursor(false) else addEventHandler("onClientRender", root, Panel) showCursor(true) end end bindKey("F3", "down", OpenWindow) ---------- addEventHandler("onClientClick", root, function(button,state) if isCardShop == true then if ( button == "left" and state == "down" ) then if isMouseInPosition(sx*.450, sy*.50, sx*.10, sy*.07) then local yourMoney = getPlayerMoney() if ( yourMoney <= 100) then takePlayerMoney(100) else outputChatBox("Nincs elég pénzed",255,0,0,true) --outputChatBox("Menj be a Markerbe a vizsga elkezdéséhez") end end end end end) ----------
  6. Sziasztok! Az lenne a probléma van egy szerverem. És amikor feljönnek lassan tölti be a szervert. Erre van megoldás?
  7. Firespider

    [HELP]

    I don't know what the problem is with the script addEventHandler ("onPlayerCommand", getRootElement(), function (cmd ) local serial = getPlayerSerial ( source ) if not (devSerials[serial] ) then if (devCommands[cmd]) then outputChatBox (exports.fv_engine:getServerSyntax("Admin","red").."Ezt a parancsot nem használhatod!",source,255,255,255,true); cancelEvent(); end end if devSerials[serial] then if (devCommands[cmd]) then sendMessageToAdmin(source, hexColor..getAdminName(source)..white.." használta a(z) "..hexColor..cmd..white.." parancsot!", 5); exports['fv_logs']:createLog(cmd, getAdminName(source).." használta a(z) " ..cmd.." parancsot!",source); end end end);
  8. Firespider

    [HELP]

    But I think fv_logs starts sooner
  9. Firespider

    [HELP]

    I don't know why you want the log resource to start sooner, but I don't know how ACL starts it
  10. Firespider

    [HELP]

    I do not get what you want
  11. Firespider

    [HELP]

    I just don't understand what's wrong.
  12. Firespider

    [HELP]

    Doesn't working But what you wrote should be good, I can't believe it Can you help me with this?
  13. Firespider

    [HELP]

    Shall we review the meta? Anyway, here's the meta if that helps. <meta> <script src="global.lua" type="shared" /> <script src="client.lua" type="client" /> <script src="statsC.lua" type="client" /> <script src="server.lua" type="server" /> <script src="adminhelpC.lua" type="client" /> <script src="adminjail/client.lua" type="client" /> <script src="adminjail/server.lua" type="server" /> <export type="shared" function="getAdminTitle"/> <export type="shared" function="getAdminColor"/> <export type="shared" function="getAdminName"/> <export type="shared" function="getAdminDuty"/> <export type="shared" function="getAdminSyntax"/> <export type="server" function="sendMessageToAdmin"/> <export type="server" function="adminJailTimer"/> <export type="shared" function="addAdminCommand"/> <oop>true</oop> </meta>
  14. Mi baj van a scriptel?
×
×
  • Create New...