Brad96 Posted August 12, 2013 Posted August 12, 2013 estoy aprendiendo y estoy intentando hacer esto .. aparecer un vehiculo al iniciar el script diganme que estoy haciendo mal porque , y como podria hacer que el vehiculo apareciera donde estuviese yo .. gracias function CrearCoche() createVehicle ( 411, x, y, z, 0, 0, 0, "Brad" ) end addEventHandler ("onResourceStart", getRootElement(), CrearCoche) Mi Nick En El Juego : Bs|Brad Mi Skype : fer_va_96
Castillo Posted August 12, 2013 Posted August 12, 2013 Donde esta definido "x, y, z"? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Brad96 Posted August 12, 2013 Author Posted August 12, 2013 Ps puse asi para no poner la posicion , pero se como va colocado ahi Mi Nick En El Juego : Bs|Brad Mi Skype : fer_va_96
Castillo Posted August 12, 2013 Posted August 12, 2013 Si pusiste el recurso como server side, entonces tiene que funcionar. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Brad96 Posted August 12, 2013 Author Posted August 12, 2013 explicame eso de serverside y como ponerlo porque nada de eso hise Mi Nick En El Juego : Bs|Brad Mi Skype : fer_va_96
Castillo Posted August 12, 2013 Posted August 12, 2013 Se define en el archivo meta.xml, postea el contenido. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Brad96 Posted August 12, 2013 Author Posted August 12, 2013 Mi Nick En El Juego : Bs|Brad Mi Skype : fer_va_96
Castillo Posted August 12, 2013 Posted August 12, 2013 Cambialo a type="server". San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Brad96 Posted August 12, 2013 Author Posted August 12, 2013 Gracias ! ,ya funcion , ahora podrias decirme cmo hacer para que aparesca al jugador ? ponme en cada linea para q sirve cada line , y gracias .. por tu ayuda Mi Nick En El Juego : Bs|Brad Mi Skype : fer_va_96
Castillo Posted August 12, 2013 Posted August 12, 2013 No entiendo. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Brad96 Posted August 12, 2013 Author Posted August 12, 2013 Me POdrias decir como hacer aparecer el coche pero en donde este el jugador ? que el auto aparesca donde este yo Mi Nick En El Juego : Bs|Brad Mi Skype : fer_va_96
Castillo Posted August 12, 2013 Posted August 12, 2013 Queres que aparezca un vehiculo para cada jugador? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Brad96 Posted August 12, 2013 Author Posted August 12, 2013 No , Quiero que aparesca el vehiculo alado del jugador sin necesidad de estar poniendo posiciones en el script Mi Nick En El Juego : Bs|Brad Mi Skype : fer_va_96
Sasu Posted August 13, 2013 Posted August 13, 2013 Usa getElementPosition para obtener las coordenadas de un jugador. State: Inactive
Castillo Posted August 13, 2013 Posted August 13, 2013 No , Quiero que aparesca el vehiculo alado del jugador sin necesidad de estar poniendo posiciones en el script A eso me referia... San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
BorderLine Posted August 13, 2013 Posted August 13, 2013 myV = createVehicle ( 411, 0, 0, 0, 0, 0, 0, "Brad" ) function warpV() x,y,y = getElementPosition(source) setElementPosition(myV, x +2,y +2 ,z +2) end addCommandHandler("warpv",warpV) con eso se creara el vehiculo al iniciar el script y cada vez ke ejecutes el comando el vehiculo estara a tu lado. le agrege algunas cordenadas mas para que no bugee al player y aparesca exactamente donde mismo. Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
Daniel1zD Posted August 13, 2013 Posted August 13, 2013 addCommandHandler("bradcar",function(thePlayer) ------cmd para que valla el auto asia ti local account = getPlayerAccount ( thePlayer ) if not isGuestAccount(account) and getAccountName(account) == "brad" then ----- cuenta de usuario local x,y,z = getElementPosition(thePlayer) setElementPosition( brad ,x+3,y,z+3) end end ) no se si te sirva esto es para que el auto aparezca a tu lado
Recommended Posts