Hallo,
ich benutze aktuell folgende Tore am SF Airport:
Lua: SFAirportGate1.lua
SFAirport1Gate1 = createObject (988, -1543.742, -432.703, 6.039, 0, 0, -45.0)
SFAirport1Gate2 = createObject (988, -1547.625, -428.82, 6.039, 0, 0, -45.0)
SFAirport1Col = createColCircle (-1543.742, -432.703, 10)
function OpenGates(thePlayer)
local id = getElementModel (thePlayer)
moveObject (SFAirport1Gate1, 1000, -1540.66, -435.786, 6.039)
moveObject (SFAirport1Gate2, 1000, -1550.709, -425.736, 6.039)
end
addEventHandler("onColShapeHit", SFAirport1Col, OpenGates)
function CloseGates(thePlayer)
local id = getElementModel (thePlayer)
moveObject (SFAirport1Gate1, 1000, -1543.742, -432.703, 6.039)
moveObject (SFAirport1Gate2, 1000, -1547.625, -428.82, 6.039)
end
addEventHandler("onColShapeLeave", SFAirport1Col, CloseGates)
Alles anzeigen
Lua: SFAirportGate2.lua
SFAirport2Gate1 = createObject (988, -1222.953, 53.826, 14.134, 0, 0, -135.0)
SFAirport2Gate2 = createObject (988, -1218.206, 68.883, 14.134, 0, 0, -135.0)
SFAirport2Col = createColCircle (-1220, 62, 15)
function OpenGates (thePlayer)
local id = getElementModel (thePlayer)
moveObject (SFAirport2Gate1, 1000, -1226.59, 50.189, 14.134)
moveObject (SFAirport2Gate2, 1000, -1214.392, 72.697, 14.134)
end
addEventHandler ("onColShapeHit", SFAirport2Col, OpenGates)
function CloseGates (thePlayer)
local id = getElementModel (thePlayer)
moveObject (SFAirport2Gate1, 1000, -1222.953, 53.826, 14.134)
moveObject (SFAirport2Gate2, 1000, -1218.206, 68.883, 14.134)
end
addEventHandler ("onColShapeLeave", SFAirport2Col, CloseGates)
Alles anzeigen
Weiss jemand wie genau ich if tonumber(vioGetElementData ( player, "planelicenseb" )) == 0 then da jetzt genau einbauen muss, damit die Tore sich nur den Usern öffnen die folgende Scheine haben:
Helicopterschein
Flugschein A
Ich weiss das ist bestimmt total einfach, doch es würde mich freuen wenn mir da einer helfen könnte