Reporter1 = createObject ( 980, 1643.6778564453, -1714.7418212891, 16.021921157837, 0, 0, 270)
TorSFPDStatus = 1
function Gate (source)
local playerx
local playery
playerx, playery = getElementPosition (source)
if (getDistanceBetweenPoints2D(1643, -1743, playerx, playery) < 100) then
if TorSFPDStatus == 1 then
if getPlayerTeam("Reporter") then
moveObject (Reporter1, 3500, 1643.677734375, -1705.7135009766, 16.021921157837, 0, 0, 0 )
TorSFPDStatus = 0
else
moveObject (Reporter1, 3500, 1643.6778564453, -1714.7418212891, 16.021921157837, 0, 0, 0 )
TorSFPDStatus = 1
end
end
end
end
addCommandHandler ("rgate", Gate)
wie geht das mit dem befehl das bewegt sich nicht