Jump to content

Artisz

Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by Artisz

  1. Thank you for your help. I will read that book. Can you please give me some more hints/links, what should I learn about to do something like this? To make a new world, or what. I mean, I don't know much about Cols, streamers, and so on. I know what are these, but never learn about them.
  2. Hi! Is there any limit for size of a custom object? And if there is, what is it? And there is another question. What should happen, if I just delete everything, and create a full custom map? Is it even possible?
  3. Hi! I have a problem: addEventHandler("onClientVehicleCollision", root, function (collider,force, bodyPart, x, y, z, nx, ny, nz) if getElementType(collider) == "player" then if not isElementFrozen(source) then if collider ~= source then setElementFrozen(source, true) setTimer(setElementFrozen, 1000, 1, source, false) end end end end ) It's working, I can't push the car, but when I try to hit someone, I can't do it, because it call this function. How can I do that I can hit someone with the car, but a player can't push the car. I tried it with mass handling(it didn't work, the vehicle bugged under the ground).
  4. Hi! I use guieditor for my panels. I use a custom font for my text. In my monitor resolution, I setting the text size, it's perfect, but in other resolutions, it's very small, or too big. The "big" servers how to do, that in every resolutions the text is always one size?
  5. Artisz

    Laugh from :D

    OK, now it's working. Thank you!
  6. Artisz

    Laugh from :D

    Thank you, but what if I have two tables, one with the emoticons, the other with their meanings. How can I do that if there is an emoticon in the text, what is in the table to, then change it to the meaning? emoticons = { ":D", ":(" } meanings = { "laugh", "sad" }
  7. Artisz

    Laugh from :D

    Hi! How can I do it that if I have a sentence with a smile(:D) in the middle of it, then don't write the smile, but another word(*laugh).
  8. Oh, I don't know that Thank you, it's working now!
  9. Hi! I don't know, how is it possible: I try it with HTML, the video is in .webm format, and I have a bad fps drop, with link I can't do it, I don't know HTML well. I try it with createBrowser too, but with this, I can't do it that the gui or dxdraw be in front of the video, the browser.
  10. Thanks man, you are awesome!
  11. Hi! I want to create a fuel system. But I don't know how to calculate the cap's position. I know, that I can do it with getElementPosition, getElementRotation and Offset. But how?
  12. It looks like that it's working. Thank you!
  13. I have a label gridlist: for k, v in ipairs( getElementsByType( "vehicle" ) ) do local name = getVehicleName(v) lbl4[k] = {} ay4 = ay4 + 24 lbl4[k][1] = guiCreateLabel( 10, ay4, 150, 45, tostring(name), false, scrollpane4) end And I want that I click on the vehicle name, from the gridlist, get the vehicle, and it's elementdata addEventHandler( "onClientGUIClick", lbl4[k][1], function() local vehName = guiGetText(source) vehID = guiCreateLabel( 590, 200, 150, 45, "Vehicle ID:"..tostring(getElementData(vehName,"veh.dbID")), false, staticPanel) end) But It's of course, not working, because it don't give me the element, just it's name. How cen I get the element?
  14. Sorry I cant show you the code now, because I am in collage now. So. I have loop, where I have the vehicles. If it has an elementdata, what is: veh.faction = 1, then create a label with the string, what is the vehicle name(Inferno). It is like a gridlist. And I want to do that when I click on the gridlist's one label, show me some informations from the vehicle. I do it with the members. I use guiGetText, and getPlayerFromName, and I got the player, so I can get the clicked player's elementdata, etc. But with vehicles how can I do this. SorrySorry for my English.
  15. But it's just the name. I need the vehicle. So what I can write after the getVehicleName? getVehicleName(WHAT?)
  16. Hi! I have a faction panel, and I want to do that I have a list of faction vehicles with label, and when I click one of these, give me informations of the clicked vehicle. With the members(players) I can do it, because there is a getPlayerFromName. But with vehicles how can I do this?
  17. But how? These labels like a gridlist, there is more label, and don't know how many. How can I use this function?
  18. A gui-label, but anything I click on, I get just false
  19. It's still bad. When there is the "clickedElement" in the if, it don't write anything, when I delete the clickedElement, it writes false
  20. Hi! I want to get the clicked gui label's text, what I clicked on. There is a loop, so I can't add the label an own ID, or I don't know how can I do it. So I create labels in a loop(with the online players's name), and then under the onClientClick eventhandler, I retrieve the clickedElement type, but I get false. Everywhere I clicked, I get just false slot = 0 for v, character in ipairs(getElementsByType("player")) do local characterName = getElementData(character, "CharName") local name = tostring(characterName) slot = slot + 1 guiCreateLabel(440,230 + slot * (30) ,700,50,name,false) end function MemberClick ( button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement ) if (button == "left" and state == "up") then local tipe = getElementType( clickedElement ) outputChatBox(tostring(tipe)) end end addEventHandler ( "onClientClick", root, MembeClick)
  21. It exist?:O Sorry, I didn't know it. Thanks a lot!
  22. Hi! How can I demarcated an area with coordinates? Not a sphere, or a rectangle, but also like this area? So if the player is in this area, he can do something.
  23. Hi! I use guieditor to add an image(with dxdrawimage) position. It is on relative, but it's don't working. We are in the server, and someone's hud sticking out from the screen. He has correct resolution. What is the problem? Here is the code: dxDrawImage(screenW * 0.6698, screenH * 0.0130, screenW * 0.3228, screenH * 0.1341, "img/hud.png", 0, 0, 0, tocolor(255, 255, 255, 255), false)
  24. No, it's a forester job. And thanks a lot guys, it's working.
  25. Thanks, but how can I use it? Like this? local x, y, z = getPositionFromElementOffset(source,offX,offY,offZ) createObjcet(625, x, y, z, .....)
×
×
  • Create New...