Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. HERE ARE ANSWERS FOR ALL YOUR QUESTIONS
  2. Here you go: https://forum.multitheftauto.com/viewtop ... 08&t=28842
  3. CRUISE CONTROL General info: Cruise control script, free for all! Cruise control allows players to keep their vehicle speed at constant level - vehicles will auto [de]accelerate. Perfect script for roleplay servers, but also for freeroam. Technical info: Default key for cruise control is "k" - you can change it - open thescript.lua and edit it. By default, cruise control is enabled only for specific types of vehicles - you can allow all, or change types list in lua file. Even more info: If you have any bug reports/suggestions - leave reply here. I'm planning to update it, as I'm not fully satisfied yet Screenshots maybe?: Download: CLICK HERE
  4. share your code with us if you want ask us where to put code..
  5. DRUG STORE General info: Allows players to buy drugs. Cool visual effect, lot of colors, crazy camera, player is falling on ground when walking, bleeding, shaking trees and more. In vehicles - it's reversing steering! Left=right, accelerate=brake! Technical info: Car steering it's working with ANY binding. If your players are using "t" and "g" for driving - this will be working for them too! Drug stores locations are saved in map/xml file for easy adding/editing Even more info: If you have any bug reports/suggestions - leave reply here. Screenshots maybe?: | | | Download: CLICK HERE
  6. addEventHandler("onClientRender",getRootElement(), function() local px,py,pz,tx,ty,tz,dist px,py,pz = getCameraMatrix() for k,v in ipairs(getElementsByType("player")) do if (v~=getLocalPlayer()) then tx,ty,tz = getElementPosition(v) dist = math.sqrt((px-tx)^2 + (py-ty)^2 + (pz-tz)^2) if dist < 30.0 then if isLineOfSightClear(px,py,pz,tx,ty,tz,true,false,false,true,false,false,getLocalPlayer()) then local sx,sy,sz = getPedBonePosition(v,5) local x,y = getScreenFromWorldPosition(sx,sy,sz+0.3) if x then dxDrawText(getPlayerName(v),x,y,x,y,tocolor(150,50,0),0.85+(15-dist)*0.02,"bankgothic") end end end end end end )
  7. It's not all you need. It's simple in words - harder in code. You should watch out on elements in air, on rotations (keeping speed, while vehicle is sliding sideways - weird), also keeping speed when car hit something - will make a instant "bump". And such things. I will release cruise control script in few hours to community.
  8. dzek (varez)

    Variable

    events are better anyway - cause it's easier to make an action after sending values ie. from server to client. i know about onClientElementDataChange - but it's more complicated i think
  9. thats true there is not needed to add copyright text. anyway - i said about it, cause JesseUnit wrote: And with 3 lines script - it's too easy to make same resource without knowing about "original" one. And I wouldn't say that everybody who made same 3 lines are breaking copyrights. Hope you understand me clearly
  10. Hi, You all are creating topic here when releasing something, so I thought I'll make such topics too (I'm gonna release some more resources soon). ULTIMATE BURNOUT SCRIPT General info: Burn your tires for a while, and you will get MEGA acceleration! But watch out, if you will burn your tires too long - they can pop, or even fall off! Cool script for freeroam, roleplay, or even race (with some scripting knowledge you can for example limit usage of burnout to first few seconds of race)! Technical info: Burning tires are independed of every player binds. I hate scripts that forcing me to drive car with wsad keys. This one works with any bindings. You can allow to use burnout only with specific vehicles (edit lua file to set vehicles ID) or only with cars (not bikes/planes/ etc) or for all vehicles. By default it's only for cars. Even more info: If you have any bug reports/suggestions - leave reply here. Screenshots maybe?: | Download: CLICK HERE
  11. local px, py, pz = getElementPosition ( rootElement ) this is totally wrong. in your test function do local players = getElementsByType("player") for key,val in ipairs(players) do local px, py, pz = getElementPosition (val) local x, y, z = getScreenFromWorldPosition( px, py, pz+1 ) if x then example = dxDrawText( "Imie Nazwisko", x, y ) end end not tested
  12. I never tried that. To me it seems to be a bug, but i'm not sure. Code seems right, but i didn't test it. I will try it when I'll find 15 minutes.
  13. This topic is from 2004. Last reply was in 2008. Now it's 2010. This is outdated. Use another resource or write your own. Search community for such script. Thanks.
  14. it;s following roads, have pathfinding? or what?
  15. dunno about your problem but this: function MarkerHit( hitPlayer, matchingDimension ) setElementInterior( hitPlayer, 9, 315.74, 1020.47, 1950.36 ) -- Places the Player Inside The Andromada end you arent checking what exactly hit marker. it could be another vehicle too - and you will warp that vehicle. Or any other element. use getElementType to check what hit marker. Checking if dimension is matching should be good too. And: Use [lua][/lua] tags instead of [code][/code]
  16. umm... simple.. for such simple script presonally i would not add any "copyrights" info - its just cancelling one event..
  17. Can somebody explain me - what this script does?
  18. dzek (varez)

    MTA not working

    Try this: https://wiki.multitheftauto.com/wiki/Known_Issues_-_FAQ
  19. Some mods can be installed, some can't.
  20. why you put that setElementData ? edit: Ahh! I think i got what he means! He created vehicle, attached marker, but the market hit position stays the same - even when he drive his vehicle, moving marker position with vehicle. Show us your code Hunter567T!
  21. dzek (varez)

    Racepickups

    I think you didnt understand the problem. Nvm this topic .
  22. I see you get your reply here. Good.
  23. well, it all depends on your configuration. generally - no. but keep reading. Game-monitor requires server to be available (online) for few hours. If you shut it down - they won't accept you. Keep your server online at least 24h. About dynamic/static IP - every time you change IP - game monitor needs another 24h to show your server. So it's better to avoid changing IP. If you forwarded ports correctly - just wait..
  24. Try downgrading your graphic card drivers. Once i've got some problems with new drivers (it was with Vice City, but it's almost same engine).
×
×
  • Create New...