
Fox261098
Members-
Posts
83 -
Joined
-
Last visited
Everything posted by Fox261098
-
Whad do you mean elemet data???
-
Whad do you mean elemet data???
-
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 )
-
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 )
-
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 )
-
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 )
-
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
-
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)
-
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
-
Nice that you giving this away for free
-
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)
-
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=
-
How to make a moving object like a train or ship object move to somewhere.Can somone make an example pls..!!
-
I dont know how to make safe zone on place witch i want
-
can anybody give me firstperson resource pls i need it
-
How to make a door move for one group on dayz?
-
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
-
i understant now lets go to part 2 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) this too tx ry rz ??? function markerHitFunction() moveObject(gateName, timeInMillisec, x2, y2, z2) what means y2 y2 z2? end addEventHandler("onMarkerHit", markerName, markerHitFunction