Chaz-CR Posted May 2, 2013 Share Posted May 2, 2013 Hola, es que tengo un problema con este respawn ya que a la hora de respawnearte en los hospitales se me pierde el skin y me tira el de CJ osea el 0, no se porque porque el resource de los hospitales no tiene nada referiado a skins y el resource de hospitales pasado que tenia me lo guardaba bien aca dejo una parte del resource function() local x, y, z = getElementPosition ( source ) local city = getZoneName ( x, y, z, true ) if city == "Las Venturas" then setTimer( spawnPlayer, 2000, 1, source, unpack ( spawnV[ math.random ( #spawnV ) ] ) ) fadeCamera (source, true) setCameraTarget (source, source) elseif city == "San Fierro" then setTimer( spawnPlayer, 2000, 1, source, unpack ( spawnF[ math.random ( #spawnF ) ] ) ) fadeCamera (source, true) setCameraTarget (source, source) Link to comment
AlvareZ_ Posted May 2, 2013 Share Posted May 2, 2013 Si no me equivoco te refieres a que al spawnear en el hospital te sale con el skin 0 ? Link to comment
Castillo Posted May 2, 2013 Share Posted May 2, 2013 spawnPlayer tiene un argumento para el skin, tenes que poner el que tenia antes ( usa: getElementModel para obtenerlo ). Link to comment
Chaz-CR Posted May 2, 2013 Author Share Posted May 2, 2013 Es que es un resource completamente aparte. y si alvarez exactamente! Link to comment
Alexs Posted May 2, 2013 Share Posted May 2, 2013 function() local x, y, z = getElementPosition ( source ) local city = getZoneName ( x, y, z, true ) if city == "Las Venturas" then setTimer( spawnPlayer, 2000, 1, source, unpack ( spawnV[ math.random ( #spawnV ) ] ), 0, getElementModel( source ) ) fadeCamera (source, true) setCameraTarget (source, source) elseif city == "San Fierro" then setTimer( spawnPlayer, 2000, 1, source, unpack ( spawnF[ math.random ( #spawnF ) ] ), 0, getElementModel( source ) ) fadeCamera (source, true) setCameraTarget (source, source) end end Link to comment
Recommended Posts