Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- terrorgate = createObject(980, -2654.8000488281,-223.89999389648,6.1999998092651,0,0,180)
- local function terrorgate_func(player, command)
- tx,ty,tz = getElementPosition(terrorgate)
- px, py, pz = getElementPosition(player)
- if isTerror (player) or isGatePermitted(player) then
- if (tonumber(px) <= tonumber(tx)+15) and (tonumber(px) >= tonumber(tx)-15) and (tonumber(py) <= tonumber(ty)+15) and (tonumber(py) >= tonumber(ty)-15) and (tonumber(pz) <= tonumber(tz)+20) and (tonumber(pz) >= tonumber(tz)-20) then
- if tonumber(tz) == 110 then
- moveObject( terrorgate, 1500, -2654.8000488281,-223.89999389648, 0.1999998092651)
- elseif tonumber(tz) == 100 then
- moveObject( terrorgate, 1500, -2654.8000488281,-223.89999389648, 6.1999998092651)
- end
- end
- end
- end
- addCommandHandler("move", terrorgate_func)
- ( terrorgate, 1500, -2654.8000488281,-223.89999389648, 0.1999998092651)
Advertisement
Add Comment
Please, Sign In to add comment