Jump to content


  • Posts

  • Joined

  • Last visited

About John_Scott

  • Birthday 17/09/1942


  • Gang
    Z-Land DayZ/Race
  • Location

Recent Profile Visitors

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

John_Scott's Achievements


Sucka (13/54)



  1. That must be the cause, it only returns the camera matrix if it was set using setCameraMatrix. Oh, so this function works only in client side like this?! Thank you!
  2. Hi! I have a problem with the 'getCameraMatrix' function. I would like to prit the camera matrix positions to the chat, but an error shows up every times. Code: (server side) local cx,cy,cz,lx,ly,lz = getCameraMatrix(playerSource) outputChatBox("Camera matrix: " .. cx .. ", " .. cy .. ", " .. cz .. ", " .. lx .. ", " .. ly .. ", " .. lz .. " ", playerSource) Error: When I add this thing to the code: if not lz then lz = 0 end The error say the ly pos, so all of these coordinates are nil How can I fix this? Thanks for helping!
  3. You're right, it was the problem. Thank you!
  4. Hi! I have a problem with a timer funtcion. I would like to call the main function more thank 1 time, and the timer inside the main function can count only once. Code: function drawKillingText() if (text) then local screenW, screenH = guiGetScreenSize() dxDrawText ( text, screenW / 2, 100, screenWidth, screenHeight, tocolor(255, 255, 255, 255), 2, "arial", "center", "center", true, false, false, true ) setTimer (function() text = "" end, 1250, 1 ) end end addEventHandler ( "onClientRender", root, drawKillingText ) So, when the dxDraw text shows up for 1250ms the timer function reset that, but if I call the function agait, the timer can't start. How can I do this? Exit from the function, or reset the timer? Thanks for helping!
  5. I can't understand. Where need to place 'true' then?
  6. Hi! I have a problem with the 'dxDrawText' function. I red in the wiki, if I change the color code argument '(tocolor, 0, 0, 0, 0)' to 'true', the text is colored by the HTML color codes, but if I do that, just get an error about placed boolean where integer requested. Code: dxDrawText ( "Killed: " .. murdered .. " +100", screenW / 2,100, screenWidth, screenHeight, true, 1.02, "pricedown", "center", "center" ) How can I allow these color formats then? Thanks for helping!
  7. Hi! I would like to show the other players in the radar for everyone except myself. How can I do it? I have no idea Thanks for helps!
  8. Hi! I yould like to create a vehicle shop with a duplication protection, so I would like to add an internal ID to every bought vehicle, and when the player spawn that, the scrip remove the old one. (If I buy a Bullet, go away and spawn it, again go away, again spawn it, the script remove the first Bullet) Thanks for the helping!
  9. Hi! Can someone help me with add items to a GridList from an array? I would like to set weapon IDs, Names, Prices in a Array, like this: weapons = { "31";"M4";"100", "29";"MP5";"75", "30";"AK47";"90" } Place the ID to the first column, the name to the second and the price to the third. Thanks for the helps!
  10. If you no have enought time to give me a true answer, why give me any answer? I know these functions, but I can't use to what I would like.
  11. Hi! First thing: I would like to create a few markers to my sevrvers and set a category to everyone, like: <marker posX="2158.87" posY="943.16" posZ="11.5" type="arrow" category="gunshop"/> Now, i just need to playce all of these markers to the server, but IDK how to load all lines from this file. Second thing: I would like to add a category to all marker, to decide it's a gunshop, a vehicleshop, or what?! How can I get this value in the onMarkerHit function, like this?: if (*markertype == "gunshop") then *Show gunshop GUI* elseif (*markertype == "vehicleshop") then *Show vehicleshop GUI end Thanks for all help!
  12. Because this video contain a lot of famous music, i can't upload to YouTube, but you can watch on my webpage, here: http://john-scott.net/z-land_dayz_szerver/
  • Create New...