Jump to content

dzek (varez)

Retired Staff
  • Posts

    4,144
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by dzek (varez)

  1. dzek (varez)

    MTA SA problem

    yeah, over half year bump.. pmed you.
  2. thats why i avoid installing .net can you remove it? my friend had to reinstall system because after installing .net 2 he couldnt shutdown his compiter i have to reinstall after installing .net 3 because system started to throwing random errors, was preventing me to run 50% of games etc - it was just unusuable i can list many of these im sure nfs doesnt require .net if you know some kind of work-around. nfs not written in vb for sure
  3. post here your whole ACL, also be sure to use the lastest mta version, because it fixes some bugs with non-clickable buttons !
  4. no need to bump topic after 4h. i dont know the answer, but im sure when somebody who knows it will come here - he/she will answer. actually - replying to own topic/bumping you are LOWERING the chance for somebody to open your topic - he/she will see your topic as already replied!
  5. @CrazyDude: read carefully if you are trying to help. you can mislead others. You are suggesting that variables (even global) from one resource can be read in other resources.
  6. you can disable teleport map to be shown every death in freeroam settings (admin panel -> resources -> select freeroam and press settings)
  7. Wallmart, its very simple to script this. And this is mostly supposted to work with race
  8. Fabio, stop bumping so old topics.. MTA:Race is no longer supported.
  9. wiki taxi is a bit bugged but working for me.
  10. dzek (varez)

    Help!

    um, that was a nice bump (1 month)..
  11. dzek (varez)

    big help

    if it actually teleports you - maybe there is something wrong with /getpos? Check in admin panel interior and dimension of that element.
  12. dzek (varez)

    big help

    i gave you one big script. no more requests. learn lua by yourself. simply following my code will help you make this
  13. dzek (varez)

    big help

    Solid - its clearly said - he put this in 2 separate resources
  14. just start resource from server console, type "start resource_name"
  15. dzek (varez)

    big help

    you did something wrong. i dont know why. login as administrator and type "debugscript 3" in console. try now. also maybe zip your resource and post here - i'll tell you what you did wrong
  16. dzek (varez)

    Not in list

    afaik, actually (default) ports are: 22003 UDP 22005 TCP 22126 UDP (Solid - you have mismatched TCP/UDP to 22003 and 22005) Back to topic: Maybe your ISP blocked something, or some new software you installed can block that. Also try the simplest method - reinstall mta to clean,new folder.
  17. dzek (varez)

    big help

    most recent one is TESTED and is working fine. if you cant run it - re-read server manual, and scripitng tutorial (you can find copies of these on google - type something like "Server manual" site:wiki.multitheftauto.com | site:wiki.multitheftauto.com and click small "Copy" text near result, then click: Text version on the top-right)
  18. and how and what you are trying to start? post full command you are entering
  19. you can always edit play resource more and add more spawnpoints, but if you are going to use P-spawn, you should leave play turned off
  20. dzek (varez)

    big help

    omfg. debug. https://wiki.multitheftauto.com/wiki/Debugging While wiki is down you can use this ugly copy: http://webcache.googleusercontent.com/s ... ient=opera I forgot about two "then" and this is making a syntax error, perfctly easy to spot and fix ... is you know basics of lua - just fix it. if you dont know - learn (from anywhere, like http://lua.org/ - or just use Unofficial MTA Script Editor which is displaying syntax errors while writing) edit, fixed, with some others bugs fixed too, and with debug messages, you can learn from it how debug should look like: function tryToTeleport() outputDebugString("pressed enter_exit") local veh = getPedOccupiedVehicle(getLocalPlayer()) if veh then outputDebugString("in vehicle - cant teleport") return false end local tx=tonumber(getElementData(current, "TposX")) local ty=tonumber(getElementData(current, "TposY")) local tz=tonumber(getElementData(current, "TposZ")) local ti=tonumber(getElementData(current, "Tinterior")) local td=tonumber(getElementData(current, "Tdimension")) if (tx and ty and tz and ti and td) then setElementPosition(getLocalPlayer(),tx,ty,tz) setElementDimension(getLocalPlayer(), td) setElementInterior(getLocalPlayer(), ti) outputDebugString("teleported") return true -- the rest will not run end outputDebugString("failed to teleport - something wrong with marker in map file") end local keys = getBoundKeys('enter_exit') for key, state in pairs(keys) do outputDebugString("bound key: "..key) bindKey(key, "up", tryToTeleport) end current = nil function disableCurrentMarker(hitElement, matchingDimension) outputDebugString("something left the marker") if (matchingDimension and hitElement==getLocalPlayer()) then outputDebugString("you left the marker") current = nil end end function setAsCurrentMarker(hitElement, matchingDimension) outputDebugString("something hit the marker") if (matchingDimension and hitElement==getLocalPlayer()) then outputDebugString("you hit the marker") current = source end end local markers = getElementsByType("marker", getResourceRootElement(getThisResource())) local i = 1 outputDebugString("Markers count: "..#markers) for key, val in ipairs(markers) do local atype = getElementData(val, "atype") if (atype=="teleport") then outputDebugString("Found marker: "..i) i=i+1 addEventHandler("onClientMarkerHit", val, setAsCurrentMarker) addEventHandler("onClientMarkerLeave", val, disableCurrentMarker) end end
  21. dzek (varez)

    big help

    create resource with map file, in map file put something like that: <map> <marker posX="10" posY="10" posZ="10" interior="0" dimension="0" type="cylinder" size="5" color="#ff0000" atype="teleport" TposX="50" TposY="50" TposZ="50" Tinterior="3" Tdimension="0" /> </map> posX,posY,posZ is FROM position of the marker, interior is interior of the FROM marker, dimension is FROM dimension, type is marker type (check this page for types list), size is marker size, color is color of the marker in HTML color code (you can get HTML color from there), atype should be "teleport" for teleport marker, TposX, TposY, TposZ is TARGET position, Tinterior is targer interior, Tdimension is target dimension. and the client script: dont change ANYTHING in code below! only in map file function tryToTeleport() local veh = getPedOccupiedVehicle(getLocalPlayer()) if veh then return false end local tx=tonumber(getElementData(source, "TposX")) local ty=tonumber(getElementData(source, "TposY")) local tz=tonumber(getElementData(source, "TposZ")) local ti=tonumber(getElementData(source, "Tinterior")) local td=tonumber(getElementData(source, "Tdimension")) if (tx and ty and tz and ti and td) then setElementPosition(getLocalPlayer(),tx,ty,tz) setElementDimension(getLocalPlayer(), td) setElementInterior(getLocalPlayer(), ti) end end local keys = getBoundKeys("enter_exit") for key, state in keys do bindKey(key, "up", tryToTeleport) end current = nil function disableCurrentMarker(hitElement, matchingDimension) if (matchingDimension and hitElement==getLocalPlayer()) current = nil end end function setAsCurrentMarker(hitElement, matchingDimension) if (matchingDimension and hitElement==getLocalPlayer()) current = source end end local markers = getElementsByType("marker", getResourceRootElement(getThisResource())) for key, val in ipairs(markers) do local atype = getElementData(val, "atype") if (atype=="teleport") then addEventHandler("onClientMarkerHit", val, setAsCurrentMarker) addEventHandler("onClientMarkerLeave", val, disableCurrentMarker) end end edit: i wrote this in browser, its not tested but should work
  22. dzek (varez)

    big help

    setElementInterior is not for setting position. as i said - this code is wrong. i'm working on good one.
×
×
  • Create New...