Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Gate1 = createObject (980,-2274.9,1668.6,7,0,0,0)
- function Gate1_func(player)
- local x1, y1, z1 = getElementPosition(player)
- local x2, y2, z2 = getElementPosition(Gate1)
- if vioGetElementData(player, "adminlvl") >= 2 then
- if getDistanceBetweenPoints3D(x1, y1, z1, x2, y2, z2) <= 10 then
- moveObject (Gate1, 1500, 2274.9, 1668.6, 1)
- outputChatBox("Das Tor fährt für 8sek in den Boden", player)
- setTimer(function()
- moveObject(Gate1, 1500, -2274.9, 1668.6, 7)
- outputChatBox("Dein Tor schließt sich.", player)
- end, 8000, 1)
- else
- outputChatBox("Du bist zu weit weg von den AdminBase-Tor.", player)
- end
- end
- end
- addCommandHandler("adminbase", Gate1_func)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement