Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. O..M..F..G.. https://forum.multitheftauto.com/viewtop ... 91&t=27027 !!!!!
  2. script is almost ready, i just need IDs list of vehicles with 2 doors and more than 2 seats btw: something about Andromeda - script says it have only ONE seat.. but its possible to enter as passenger! and getting vehicle occupant returns player element, but according to wiki - it should return false, as this seat is (theoretically) not existing.. i dont have ppl to fully test it, so should i post theoretically unsafe script, allowing unlitimed (or like 100) players to enter such vehicle (it can fail!) or safe, but for vehicles like andromeda it will allow only 2 players to sit in vehicle) ? tested with peds.. andromeda have max passengers of two - not sure why getVehicleMaxPassengers returns one o_O i will post safe version
  3. maybe i will script it for coach.. it will be nothing with glue, as passengers arent visible inside coach.
  4. theres green button on the top - right in the editor (called "definitions"). add your gamemode definiton there
  5. okay, the problem is you have to put event handler after marker is created, using onResourceStart looks like adding new thread, so you cant be sure if your marker will be created before or after adding onMarkerHit event.. do something like: function load_ (name) -- i suggest not to use "load" as function name outputDebugString("load_") pilot = createPed (61,1712.6456298828,1617.2902832031,10.063969612122) setPedRotation ( pilot, 169.0) pilotmarker = createMarker ( 1712.4139404297,1616.1068115234,9.130989074707, "cylinder",1.5) -- its very hard to hit 1.0 marker.. i did it just once addEventHandler("onMarkerHit", pilotmarker, function() outputDebugString("hit pilot marker") outputChatBox("Welcome to My Server", thePlayer) end) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), load_) will be ok.. btw: https://wiki.multitheftauto.com/wiki/Debugging all your errors can be easly spotted: http://i33.tinypic.com/nvcgif.png
  6. btw one thing: your resource will be creating new ped and marker when ANY resource starts.. https://wiki.multitheftauto.com/wiki/OnResourceStart ill check this code now
  7. bettter add event handler attached only for that one marker, your script will be easier and.. faster pilotmarker = -- create marker here addEventHandler("onMarkerHit", pilotmarker, function() --actions end) btw: debugscript /3 and outputDebugString should be your best friends
  8. i think pattern=example
  9. To get texture file: Find your model ID Then search in IDE files in your \GTA San Andreas\data\IDE\ object with this id. third value should be txd name Get IMGTool for San Andreas and find your txd file, extract Use TXDWorkshop and photoshop/gimp/whatever to edit texture Then using scripting - replace your textures This could be useful: https://wiki.multitheftauto.com/wiki/EngineImportTXD and related ("see also" in wiki) functions too.. hope that helps
  10. i can confirm this, on another account you can run another instance of mta. if you have more than one core, i suggest to (using task manager) set one instance to use CPU0 and another to CPU1
  11. to fire custom map you can put in console: gamemode race map_name (not sure about this, better read Server Manual) and for teleports: you have to script it, it can't be done via map editor. Scripting tutorial: https://wiki.multitheftauto.com/wiki/Scripting_Introduction
  12. search https://community.multitheftauto.com/ for money save script
  13. this is not a request forum its cool you have generated GUI, but scripting it's a lot of job.. why somebody would spend few hours for doing something just for you? this forum is made for helping people when they are stuck and some problem, or need general advice
  14. and tbh - try avoid programming based on "goto" idea - it's nothing good
  15. same for me, no avatars, except 50p btw: you disabled avatars just before the day i was willing to add one for myself -.-
  16. This link was in first reply by 50p.. -.-
  17. lies.. im pretty sure that this: createTeam ( Players ) will trigger error.. your code is totally mess, and you should get back to basics, and stop requesting scripts after just merging few examples from wiki
  18. a: 11 days passed .. i think noone needs your digi-something q: What song you want to be played on your funreal?
  19. Namorek's "script" is pretty random.. Attaching Element to boolean value
×
×
  • Create New...