In den Marker kann trotz if abfrage immer noch jeder rein.. Warum aber?
Lua
function SFPDLift_func ( player, dim )
if dim then
if isOnduty(player) or isFBI(player) or isArmy(player) then
if source == SFPDLiftOuterOp then
fadeElementInterior ( player, 10, 216.59045410156, 119.97569274902, 1002.867980957 )
else
fadeElementInterior ( player, 0, -1606.3637695313, 673.97595214844, -5.5929617881775 )
end
end
end
end
addEventHandler ( "onMarkerHit", SFPDLiftInnerOp, SFPDLift_func )
addEventHandler ( "onMarkerHit", SFPDLiftOuterOp, SFPDLift_func )
Alles anzeigen