Jump to content

Puertas automaticas


Josmar

Recommended Posts

Posted

Hola chicos como veran hice un post pasado bn bn pero como hago para q una puerta se mueva e visto en muchos servidores la tienen,en resoruces de mta la tienen o q?si no es asi podrian pasarme los codes? porfavor no se como pagarle xD ya q soy de venezuela y no soy mayor de edad ni tampoco uso paypal

Posted
createObject 
moveObject 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Si no sos scripter, entonces te recomiendo empezar a aprender si queres hacer las "puertas automaticas".

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
  
laReja = createObject(ModelID,PosX,PosY,PosZ) 
elSensor = createMarker(PosX,PosY,PosZ,"cylinder",ElTamaño,RED,GREEN,BLUE,ALPHA) 
  
addEventHandler("onClientMarkerHit",root,function(hitElement,matchingDimension) 
if source == elSensor then 
if hitElement == getLocalPlayer() then 
moveObject(laReja,ElTime,MPosX,MPosY,MPosZ) 
end 
end 
end 
) 
  

ademas...

No solo tienes que pagar por cuentas vancarias yo soy de Chile y pago mi host sin cuentas bancarias C:

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted

Eso no tiene el menor sentido, aprende el syntax de Lua y luego empeza con esto.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
  
laReja = createObject(ModelID,PosX,PosY,PosZ) 
elSensor = createMarker(PosX,PosY,PosZ,"cylinder",ElTamaño,RED,GREEN,BLUE,ALPHA) 
  
addEventHandler("onClientMarkerHit",root,function(hitElement,matchingDimension) 
if source == elSensor then 
if hitElement == getLocalPlayer() then 
moveObject(laReja,ElTime,MPosX,MPosY,MPosZ) 
end 
end 
end 
) 
  

ademas...

No solo tienes que pagar por cuentas vancarias yo soy de Chile y pago mi host sin cuentas bancarias C:

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted (edited)

a ver mirne ise ste script :

     "Josmar" type="createVehicle" name="ZombieBiohazard" description="ZOMBIO BIOHAZARD" /> 
     

ese es el meta ahora el script

function crearVehículoParaJugador(Josmar, /createvehicle, 411) 
end 
addCommandHandler("/createvehicle", Buffalo) 

esta bueno o no? q le debo cambiar? a ver q le cambiaria en gamemode?

Edited by Guest
Posted

que p**ts es eso joer E.E aprende a scriptear primero

el meta:

addCommandHandler("crearvehiculo",function() 
local x,y,z = getElementPosition(getLocalPlayer()) 
createVehicle(ElModel,x,y+6,z) 
end 
) 
  

algo asi, almenos aprende la sintaxis basica lol

elMota/elFoReX De Vuelta En MTA *---------*

Cuenta De Youtube En La Que Subo Tutoriales Acerca De MTA :3

https://www.youtube.com/user/KillersGPs

430x73_FFFFFF_FF9900_000000_000000.png
Posted

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" /> 

My nickname is: Pato

I am a good mapper, an apprentice in scripting and a talented in photoshop.

Scripting & Mapping server -bmx-

430x73.png

Posted
que lo modifique vuelve a ver el lua q puse atras y cuando quiero q en ves de ser gamemode cree un vehiculo o otra cosa?

Te recomiendo Aprender sobre elementos y otros conceptos, agregame a Skype y mañana a eso de las 2 te podria dar apoyo en todo esto.

Developer @ MYVAL

Posted
que lo modifique vuelve a ver el lua q puse atras y cuando quiero q en ves de ser gamemode cree un vehiculo o otra cosa? ._., como es que los profesores te entienden en tus proyectos ._., ( no entiendo ni Alexs_Steel ( if you know what i mean ) )

q por lo q lei q cuando no es gamemode el type cambia

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...