Van egy gate-systemem amivel létre lehet hozni kaput, megnézni lehet kaput és kinyitni LEHETNE ha nem írná ki az alábbi dolgot amit a képen látni fogtok majd.
http://imgur.com/a/sKvdeképen amit ír 66 és 70. sor az itt a kódban 15-22-ig van.
Script :
addCommandHandler(\"gate\", function(player)local gate = getClosestGate(player)if gate then if (not exports[\"mta_item\"]:hasItemS(player, 36, tonumber(gate)) or false) and getElementData(player, \"acc:admin\") <= 5 then outputChatBox(\"#dc143c[Hiba]:#ffffff Nincs kulcsod a kapuhoz.\", player, 255, 255, 255, true) return end if getElementData(gates[gate][\"gate\"], \"inUse\") then return end setElementData(gates[gate][\"gate\"], \"inUse\", true) if gates[gate][\"lockState\"] then moveObject(gates[gate][\"gate\"], 1500, gates[gate][\"changeState\"][1], gates[gate][\"changeState\"][2], gates[gate][\"changeState\"][3], gates[gate][\"changeState\"][4], gates[gate][\"changeState\"][5], gates[gate][\"changeState\"][6], \"OutQuad\") setElementInterior(gates[gate][\"gate\"], gates[gate][\"IndDim\"][1]) setElementDimension(gates[gate][\"gate\"], gates[gate][\"IndDim\"][2]) else moveObject(gates[gate][\"gate\"], 1500, gates[gate][\"defaultState\"][1], gates[gate][\"defaultState\"][2], gates[gate][\"defaultState\"][3], gates[gate][\"defaultState\"][4], gates[gate][\"defaultState\"][5], gates[gate][\"defaultState\"][6], \"OutQuad\") setElementInterior(gates[gate][\"gate\"], gates[gate][\"IndDim\"][1]) setElementDimension(gates[gate][\"gate\"], gates[gate][\"IndDim\"][2]) end gates[gate][\"lockState\"] = not gates[gate][\"lockState\"] setTimer(function() setElementData(gates[gate][\"gate\"], \"inUse\", false) end, 1500, 1)endend)