Szerző Téma: Gate System  (Megtekintve 843 alkalommal)

Gate System
« Dátum: 2014. augusztus 11. - 13:45:58 »
0 Show voters
Hellosztok! Légyszíves elmagyaráznátok , hogy hogyan lehet kaput létrehozni? Mer próbálgattam. Lerakta beírom /gate kinyílik de össze vissza forog. Mikor becsukodik elteleportálódik
Előre is köszönöm!
Scipt :
local objGateh1 = createObject(980, 2476.8999023438, 2350.8000488281, 12.60000038147, 0, 0, 180)
exports.pool:allocateElement(objGateh1)
local objGateh2 = createObject(968, 2476.8999023438, 2350.8000488281, 14.801913604736, 0, 90, 90)
exports.pool:allocateElement(objGateh2)
-- local Interpol = createObject(968, 941.79999, -985.90002, 38.4, 0, 270, 12.75)
-- exports.pool:allocateElement(Interpol)
local okapu = createObject(980, 1559.4000, -1838, 14.6, 0, 0, 90)
exports.pool:allocateElement(okapu)
local okapu2 = createObject(980, 1399.09961, -1837.69922, 14.6, 0, 0, 92)
exports.pool:allocateElement(okapu2)
local albert = createObject(968, 1952.2822265625, -1853.708984375 , 13.546875 , 180 , 270, 89)
exports.pool:allocateElement(albert)
local news1 = createObject(968 , 2003.9719238281, -1351.0056152344 , 24.08437538147 , 0 , 270, 0)
exports.pool:allocateElement(news1)
local news2 = createObject(968 , 1997.4384765625, -1439.7221679688 , 13.563090324402 , 0 , 90, 0)
exports.pool:allocateElement(news2)
local news3 = createObject(968 , 2008.4719238281, -1450.4787597656 , 13.562376022339 , 0 , 90, 90)
exports.pool:allocateElement(news3)
local news4 = createObject(968 , 2101.716796875, -1451.0803222656 , 24 , 0 , 270, 270)
exports.pool:allocateElement(news4)
local fbi = createObject(980 , -490.38626098633, -563.30126953125 , 26.223440170288 , 0 , 0, 0)
exports.pool:allocateElement(fbi)
local fbi2 = createObject(968 , -421.45709228516, -638.193359375 , 11.753413200378 , 0, 90, 107)
exports.pool:allocateElement(fbi2)
local alberto = createObject(980, 1628.5, -2174.3999023438, 15.300000190735,0,0,180)
exports.pool:allocateElement(alberto)
-- local ped = createPed(266, -422.173828125, -639.0361328125, 11.525749206543)
-- setElementRotation(ped, tonumber(170))
createObject(970, 1544.318359375, -1621.5888671875, 13, 0, 0, 90)
createObject(970, 1544.318359375, -1619.5888671875, 13, 0, 0, 90)
createObject(970, 1544.318359375, -1634.5888671875, 13, 0, 0, 90)
createObject(970, 1544.318359375, -1637.5888671875, 13, 0, 0, 90)
local open = false
local albertoopen = false
local which = 0
function usePDSideGarageGate(thePlayer)
local x, y, z = getElementPosition(thePlayer)
local distance1 = getDistanceBetweenPoints3D(2471.3999023438, 2350.8000488281, 12.199999809265, x, y, z)
local distance2 = getDistanceBetweenPoints3D(617.0810546875, -1510.084765625, 14.801913604736, x, y, z)
local distance3 = getDistanceBetweenPoints3D(1533.59998, -1698.90002, 13.6, x, y, z)
local distance4 = getDistanceBetweenPoints3D(1532.7998,-1617.84961,13.6, x, y, z)
local distance5 = getDistanceBetweenPoints3D(1559.9248046875, -1838.2802734375, 13.546875, x, y, z)
local distance6 = getDistanceBetweenPoints3D(1399.09961, -1837.69922, 14.6, x, y, z)
local distance7 = getDistanceBetweenPoints3D(941.79999, -985.90002, 38.4, x, y, z)
local distance8 = getDistanceBetweenPoints3D(1951.900390625, -1854.9599609375, 13.546875, x, y, z)
local distance9 = getDistanceBetweenPoints3D(2003.9719238281, -1351.0056152344 , 24.08437538147, x, y, z)
local distance10 = getDistanceBetweenPoints3D(1997.4384765625, -1439.7221679688 , 13.563090324402, x, y, z)
local distance11 = getDistanceBetweenPoints3D(2008.4719238281, -1450.4787597656 , 13.562376022339, x, y, z)
local distance12 = getDistanceBetweenPoints3D(2101.716796875, -1451.0803222656 , 24, x, y, z)
local distance13 = getDistanceBetweenPoints3D(-490.38626098633, -563.30126953125 , 26.223440170288, x, y, z)
local distance14 = getDistanceBetweenPoints3D(-421.45709228516, -638.193359375 , 11.753413200378, x, y, z)
local distance15 = getDistanceBetweenPoints3D(1628.5, -2174.3999023438, 15.300000190735, x, y, z)
if (distance1<=25) and (open==false) then
   if (exports.global:hasItem(thePlayer, 64) or exports.global:hasItem(thePlayer, 108) or exports.global:hasItem(thePlayer, 82)) then
      open = true
      which = 1
      outputChatBox(\"TESZT Garázs nyitva!\", thePlayer, 0, 255, 0)
      moveObject(objGateh1, 980, 2471.3999023438, 2350.8000488281, 12.199999809265, 0, 0, 180)
      setTimer(closePDSideGarageGate, 5000, 1, thePlayer)
   end

Nem elérhető Toxic

  • 798
  • #elfújalágyszellő
    • Profil megtekintése
Gate System
« Válasz #1 Dátum: 2014. augusztus 13. - 20:15:34 »
0 Show voters
createObject
moveObject


[mod]Elavult, zárom.[/mod]
« Utoljára szerkesztve: 2014. augusztus 24. - 00:19:43 írta Toxic »

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal