Jump to content

Fox261098

Members
  • Posts

    83
  • Joined

  • Last visited

Everything posted by Fox261098

  1. Whad do you mean elemet data???
  2. Whad do you mean elemet data???
  3. Hey how to add to only one group can open the door for dayz gamemode code local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) local state = 0 function move() if state == 0 then moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) state = state + 1 elseif state == 1 then moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) state = state - 1 end end addCommandHandler("gate", move )
  4. Hey how to add to only one group can open the door for dayz gamemode code local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) local state = 0 function move() if state == 0 then moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) state = state + 1 elseif state == 1 then moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) state = state - 1 end end addCommandHandler("gate", move )
  5. Fox261098

    group help

    Hello Mta i downloaded this script and how to add it open for only one group in dayz gamemode the group system is of dayz 0.9.6a Code: local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) local state = 0 function move() if state == 0 then moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) state = state + 1 elseif state == 1 then moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) state = state - 1 end end addCommandHandler("gate", move )
  6. Hello Mta i downloaded this script and how to add it open for only one group in dayz gamemode the group system is of dayz 0.9.6a Code: local gate = createObject ( 10828, 276.60000610352, 2503.3000488281, 28.10000038147, 0, 0, 90 ) local state = 0 function move() if state == 0 then moveObject ( gate, 4000, 276.5, 2537.1999511719, 28.10000038147) state = state + 1 elseif state == 1 then moveObject ( gate, 4000, 276.60000610352, 2503.3000488281, 28.10000038147) state = state - 1 end end addCommandHandler("gate", move )
  7. Best RPG Gameode i ever seen for free ty man this script wil help much mta community Btw can u add admin commands on your post
  8. Ako mi das bazu igracu
  9. Fox261098

    speaker

    where to put that
  10. Fox261098

    speaker

    I need help with this code how to add to only admin can place a speaker function createSpeaker(thePlayer) local x, y, z = getElementPosition(thePlayer) speakerObject = createObject(2229, x, y, z-1) outputChatBox("You have Succesfully created a speaker!", thePlayer, 0, 250, 0) if (isPedInVehicle(thePlayer)) then local vehicle = getPedOccupiedVehicle(thePlayer) attachElements(speakerObject, vehicle) triggerClientEvent(root, "playTheSound", root, x, y, z, vehicle) else triggerClientEvent(root, "playTheSound", root, x, y, z) end end addCommandHandler("placespeaker", createSpeaker) function deleteSpeaker(thePlayer) if (isElement(speakerObject)) then destroyElement(speakerObject) outputChatBox("You have Succesfully destroyed the Speaker!", thePlayer, 0, 0, 255) triggerClientEvent("stopTheSound", root) else outputChatBox("Speaker is not created!", thePlayer, 250, 0, 0) end end addCommandHandler("destroyspeaker", deleteSpeaker)
  11. function markerHitFunction(source) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)),aclGetGroup("Admin")) then if (state) then moveGate = moveObject(gateName, 3000, 411.89999389648, 2535.8000488281, 19.299999237061) else moveGate = moveObject(gateName, 3000, 412, 2533.8000488281, 19.299999237061) -- Original x, y, z coordinates end if (moveGate) then state = not state; end end end addEventHandler("onMarkerHit", markerName, markerHitFunction) Ty man verymuch
  12. Nice that you giving this away for free
  13. Fox261098

    Gate help

    Hello guys i need help with gate open open how to make it open for one acl group can somone add it on this gate system local markerName = createMarker(411.52252197266, 2533.6247558594, 19.1484375, "cylinder", 1.0, 255,351,512, 255) local gateName = createObject(1553, 412, 2533.8000488281, 19.299999237061, 0, 0, 90) local state = false function markerHitFunction() if (state) then moveGate = moveObject(gateName, 3000, 411.89999389648, 2535.8000488281, 19.299999237061) else moveGate = moveObject(gateName, 3000, 412, 2533.8000488281, 19.299999237061) -- Original x, y, z coordinates end if (moveGate) then state = not state; end end addEventHandler("onMarkerHit", markerName, markerHitFunction)
  14. local gate = createObject(980, x,y,z,rx,ry,rz) local marker = createMarker(x,y,z, "cylinder", 12, 0, 0, 0, 0) function moveGate() moveObject(gate, 3000,x,y,z) end addEventHandler("onMarkerHit", marker, moveGate) local gang = getElementData(player, "gang") or false; if (gang ~= false and gang == "The Gang Name") then end end) function moveBack() moveObject(gate, 3000,x, y, z,) end addEventHandler("onMarkerLeave", marker, moveBack) this is for dayz will it work too=
  15. How to make a moving object like a train or ship object move to somewhere.Can somone make an example pls..!!
  16. I dont know how to make safe zone on place witch i want
  17. can anybody give me firstperson resource pls i need it
  18. How to make a door move for one group on dayz?
  19. Fox261098

    Gatemove

    i need other part of this to close the gate local markerName = createMarker(mx, my, mz, "cylinder", 1.0, r, g, b, 255) local gateName = createObject(model, x, y, z, rx, ry, rz) function markerHitFunction() moveObject(gateName, 2000, x, y, z) end addEventHandler("onMarkerHit", markerName, markerHitFunction) and can u make it and put the command just for one gang to use gang name TheGhosts
  20. Fox261098

    Gatemove

    i understant now lets go to part 2 close the gate
  21. Fox261098

    Gatemove

    local markerName = createMarker(mx, my, mz, "cylinder", 1.0, r, g, b, 255) local gateName = createObject(model, x, y, z, rx, ry, rz) this too tx ry rz ??? function markerHitFunction() moveObject(gateName, timeInMillisec, x2, y2, z2) what means y2 y2 z2? end addEventHandler("onMarkerHit", markerName, markerHitFunction
×
×
  • Create New...