Jump to content

JuegosPato

Members
  • Posts

    69
  • Joined

  • Last visited

Everything posted by JuegosPato

  1. Entonces, es a si?. local myMarker = createMarker( 1555.0463867188, -1675.6800537109, 17.036054611206, 'arrow', 1.79999995, 203, 155, 27, 3 ) function MarkerHit( hitPlayer, matchingDimension ) setElementInterior ( HitPlayer , 10 , 247, 112, 1004 ) end addEventHandler( "onMarkerHit", myMarker, MarkerHit )
  2. Hola a todos, yo cree un marker teleport para teleportarse a un lugar, pero ahora quiero saber como crear un marker para teleportarse a un Interior. Este es el script que cree: local myMarker = createMarker( posX, posY, posZ, 'cylinder', 2.0, 255, 0, 0, 150 ) function MarkerHit( hitPlayer, matchingDimension ) setElementPosition ( hitPlayer, posX, posY, posZ ) end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) Ahora quiero las funciones para que se teleporten a un interior.
  3. Hola amigos.Yo quiero saber como hacer randoms spawn con una cameraMatrix cada vez que mueras. Osea, cuando mueres este una cameramatrix de un hospital (Ejemplo:SF) y el spawn sera en el Hospita (de SF en este caso), luego que aya otro por ejemplo de LS y sigue asi....Pero que sea Random
  4. No funciona ahora.No aparese el gui.
  5. JuegosPato

    Problema

    El problema es cuando seleccionas a un vehículo y después usas el botón "use" pero no te sale el Vehículo. Client. local vehicles = {"BMX", "Bike", "Mountain Bike"} local bikes = createMarker(1183.2487792969, -1314.9769287109, 12.546875, 'cylinder', 1.5, 255, 255, 255, 255) function createVehGui () MainGui = guiCreateWindow(408,203,240,349,"Vehicle",false) VehGrid = guiCreateGridList(17,32,200,256,false,MainGui) guiGridListSetSelectionMode(VehGrid,2) _bikes = guiGridListAddColumn(VehGrid,"Vehicle name:",0.85) Spawn = guiCreateButton(15,305,96,35,"Use",false,MainGui) guiSetFont(Spawn,"clear-normal") Cancel = guiCreateButton(128,305,96,35,"Close",false,MainGui) guiSetFont(Cancel,"clear-normal") for index, vehicle in ipairs(vehicles) do local row = guiGridListAddRow (VehGrid) guiGridListSetItemText ( VehGrid, row, _bikes, tostring(vehicle), false, false ) end end addEventHandler("onClientMarkerLeave", bikes, function ( leaveElement ) if (leaveElement == localPlayer) then guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientGUIClick", root, function () if (source == Spawn) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName then triggerServerEvent("spawnBike",localPlayer,vehicleName) end else outputChatBox("Erro: Please select a vehicle from the list.",255,0,0) end elseif (source == Cancel) then guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientPlayerWasted", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end) Server. function spawnBike (lol) local id = getElementModel(thevehicle) if id == 509 or id == 510 or id == 481 then local x, y, z = getElementPosition ( source ) local xr, yr, zr = getElementRotation ( source ) createVehicle = createVehicle (id, x, y, z + 0.5, xr, yr, zr ) warpPedIntoVehicle(source, createVehicle) end end addEvent( "spawnBike", true) addEventHandler("spawnBike",root,spawnBike)
  6. Muchos usuarios piden esto.Este lo cree yo, ami me funciona re bien. door = createObject (posX, posY, posZ, rotX, rotY, rotZ ) function opendoor() moveObject (door, Time, posX,posY,posZ) end addCommandHandler("Comando|Para|Abrir", opendoor) function closedoor() moveObject (door, Time, posX,posY,posZ) end addCommandHandler("Comando|Para|Cerrar", closedoor) P.D.: Perdon SolidSnake14 por hacer el script a el, porque las reglas dicen que no podemos hacerle los scripts, pues yo lo hise porque siempre piden esto.
  7. engineLoadDFF engineReplaceModel engineLoadTXD engineImportTXD
  8. JuegosPato

    Hola :)

    Usa esta, la que publicaste. lvltgreja = createObject ( 980, 2497.2998046875, 2773.3994140625, 12.600001335144, 0, 0, 90) function opendoor() moveObject (lvltgreja, 2000, 2497.2998046875, 2773.3994140625, 5.600001335144, 0, 0, 0) end addCommandHandler("lvltgreja", opendoor) function closedoor() moveObject (lvltgreja, 2000, 2497.2998046875, 2773.3994140625, 12.600001335144, 0, 0, 0) end addCommandHandler("lvltgreja", closedoor) Es muy básica, y, te ayudara a entender más rápido Lua. También si quered poner un mensaje, usa esta función. outputChatBox
  9. No entendí la primera, creo que no es posible. Para crear un ped es esa función que dijiste. createPed
  10. Para crear un GUI con las funciones de seleccionar un team. guiCreateWindow guiCreateGridList guiGridListAddColumn guiGridListSetItemText guiWindowSetMovable guiCreateButton addEventHandler triggerServerEvent Server. setPlayerTeam outputChatBox addEventHandle addEvent Para crear teams. createTeam addEventHandler Spanw team. addEventHandler setPlayerTeam spawnPlayer
  11. ¿Como quitaste el settings?
  12. Ya lo arregle, este es de comando y hay otros que se abren automáticamente con un marker invisible, como la de Yakuza357. door = createObject (7017, 1521.6103515625, 1789.4267578125, 7.57905626297, 0, 90, 0 ) function opendoor() moveObject (door, 4000, 1527.1838378906, 1789.4267578125, 7.57905626297, 0, 0, 0) end addCommandHandler("abrir", opendoor) function closedoor() moveObject (7017, 1521.6103515625, 1789.4267578125, 7.57905626297, 0, 90, 0) end addCommandHandler("cerrar", closedoor)
  13. Client: local vehicles = {"BMX", "Bike", "Mountain Bike"} local bikes = createMarker(1183.2487792969, -1314.9769287109, 12.546875, 'cylinder', 1.5, 255, 255, 255, 255) function createVehGui () MainGui = guiCreateWindow(408,203,240,349,"Vehicle",false) VehGrid = guiCreateGridList(17,32,200,256,false,MainGui) guiGridListSetSelectionMode(VehGrid,2) _bikes = guiGridListAddColumn(VehGrid,"Vehicle name:",0.85) Spawn = guiCreateButton(15,305,96,35,"Use",false,MainGui) guiSetFont(Spawn,"clear-normal") Cancel = guiCreateButton(128,305,96,35,"Close",false,MainGui) guiSetFont(Cancel,"clear-normal") for index, vehicle in ipairs(vehicles) do local row = guiGridListAddRow (VehGrid) guiGridListSetItemText ( VehGrid, row, _bikes, tostring(vehicle), false, false ) end end addEventHandler("onClientMarkerHit", bikes, function ( hitElement ) if (hitElement == localPlayer) then createVehGui ( hitElement ) if (MainGui ~= nil) then guiSetVisible(MainGui, true) showCursor(true) guiSetInputEnabled(true) else outputChatBox ("Error: Please Re-enter in the marker to get your vehicle.", 255, 0, 0) end end end ) addEventHandler("onClientGUIClick", root, function () if (source == Spawn) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName then triggerServerEvent("spawnBike",localPlayer,vehicleName) end else outputChatBox("Erro: Please select a vehicle from the list.",255,0,0) end elseif (source == Cancel) then guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientPlayerWasted", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end) Server: function spawnBike (lol) local id = getElementModel(thevehicle) if id == 509 or id == 510 or id == 481 then local x, y, z = getElementPosition ( source ) local xr, yr, zr = getElementRotation ( source ) createVehicle = createVehicle (id, x, y, z + 0.5, xr, yr, zr ) warpPedIntoVehicle(source, createVehicle) end end addEvent( "spawnBike", true) addEventHandler("spawnBike",root,spawnBike)
  14. Mmm. Yo solamente quería solucionar sobre el botón del "Use" porque seleccionaba a un vehículo y después tocabas el botón y no aparecía, solamente quiero ayuda en eso.
  15. Usa el gamemode race, para que te ande el map.
  16. Eso es shooter. Hay muchos mapas de shooter en la comunity. Esto son algunos de los mapas: https://community.multitheftauto.com/ind ... ls&id=5213 https://community.multitheftauto.com/ind ... ls&id=5206 https://community.multitheftauto.com/ind ... ls&id=4453
  17. Depende aveces. Como dijo "Solidsnake14" las mayorías de esos problemas son por los "Upgrades". También otro de los problema son los lua, txd, o Dff.
  18. Me podes ayudar un poco.No soy un gran scripter.
  19. Mira, hay muchas formas para hacer una puerta automática. Esta es la más sencilla, usando los comando y funciones fáciles. door = createObject (posX, posY, posZ, rotX, rotY, rotZ ) function opendoor() moveObject (door, Time, posX,posY,posZ) end addCommandHandler("Comando|Para|Abrir", opendoor) function closedoor() moveObject (door, Time, posX,posY,posZ) end addCommandHandler("Comando|Para|Cerrar", closedoor) Y Esta es la meta: "Name" version="1.3" type="script" />
  20. Dice: INFO: Votemanager precreateGuiElements
  21. No.No funcionó. No se.Creo que puse mal en la linea. Era así, no? local vehicles = {"BMX", "Bike", "Mountain Bike"} local bikes = createMarker(1183.2487792969, -1314.9769287109, 12.546875, 'cylinder', 1.5, 255, 255, 255, 255) function createVehGui () MainGui = guiCreateWindow(408,203,240,349,"Vehicle",false) VehGrid = guiCreateGridList(17,32,200,256,false,MainGui) guiGridListSetSelectionMode(VehGrid,2) _bikes = guiGridListAddColumn(VehGrid,"Vehicle name:",0.85) Spawn = guiCreateButton(15,305,96,35,"Use",false,MainGui) guiSetFont(Spawn,"clear-normal") Cancel = guiCreateButton(128,305,96,35,"Close",false,MainGui) guiSetFont(Cancel,"clear-normal") for index, vehicle in ipairs(vehicles) do local row = guiGridListAddRow (VehGrid) guiGridListSetItemText ( VehGrid, row, _bikes, tostring(vehicle), false, false ) end end addEventHandler("onClientMarkerLeave", bikes, function ( leaveElement ) if (leaveElement == localPlayer) then guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientGUIClick", root, function () if (source == Spawn) then local row,col = guiGridListGetSelectedItem(VehGrid) if (row and col and row ~= -1 and col ~= -1) then local vehicleName = guiGridListGetItemText(VehGrid, row, 1) if vehicleName then triggerServerEvent("spawnBike",localPlayer,vehicleName) end else outputChatBox("Erro: Please select a vehicle from the list.",255,0,0) end elseif (source == Cancel) then guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end end ) addEventHandler("onClientPlayerWasted", root, function () guiSetVisible(MainGui, false) showCursor(false) guiSetInputEnabled(false) end)
×
×
  • Create New...