This script is from resource named "door" made by DakiLLa.
Now I have been trying to try that player need police skin or needed police team then the door goes open onmarkerhit.
I have tried many ways to add that feature, but until now no good result
I have multiple doors I would like to add this feature.
Someone who can fix this feature?
If this has been fixed then I can the rest of the doors on my map also, it would be awesome.
checkGateMarker = createMarker ( 1588.455078125, -1638.328125, 13.391061782837, "corona", 10, 0, 0, 255, 0 )
function createGate ()
gatePolice = createObject ( 10558, 1588.9000244141, -1638.4000244141, 14.5, 0.000000, 0.000000, 89.000000 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createGate )
function gateCheckingTeam ( thePlayer, matchingDimension )
moveObject ( gatePolice, 3000, 1588.9000244141, -1638.4000244141, 18.5, 0.000000, 0.000000, 0.000000 )
end
addEventHandler ( "onMarkerHit", checkGateMarker, gateCheckingTeam )
function onLeave ( thePlayer, matchingDimension )
setTimer ( movingBackPolice, 3000, 1, thePlayer )
end
addEventHandler ( "onMarkerLeave", checkGateMarker, onLeave )
function movingBackPolice ()
moveObject ( gatePolice, 3000, 1588.9000244141, -1638.4000244141, 14.5, 0.000000, 0.000000, 0.000000 )
end
createBlip ( 1588.455078125, -1638.328125, 13.391061782837, 37 )
Thanks.