maauroo Posted July 21, 2012 Posted July 21, 2012 Hola.. Em Como Dice El Titulo No Me Funciona Mi Respawn: addEventHandler ( "onPlayerWasted", getRootElement( ), function ( ) if ( jugadoresEnDM [ source ] ) then local azar = math.random ( #posiciones ) local interior = getElementInterior ( source ) local skin = getElementModel ( source ) local x, y, z = unpack ( posiciones [ azar ] ) setTimer( spawnPlayer, 2000, 1, source, x, y, z,0, skin, interior ) end end ) Supuestamente Cuando No Estoy En ZonaDm"jugadoresEnDm" Tendria Que Respawnear "X,Z,Y" Pero No Lo Hace.. ¿Que Problema Tiene?
Alexs Posted July 21, 2012 Posted July 21, 2012 addEventHandler ( "onPlayerWasted", getRootElement( ), function ( ) --Esta linea esta mal deberia ser if not ( jugadoresEnDM [ source ] ) then if not ( jugadoresEnDM [ source ] ) then --Aca te la puse bien, solo pegala en tu script local azar = math.random ( #posiciones ) local interior = getElementInterior ( source ) local skin = getElementModel ( source ) local x, y, z = unpack ( posiciones [ azar ] ) setTimer( spawnPlayer, 2000, 1, source, x, y, z,0, skin, interior ) end end ) Post Numero 1000!! :D
iFoReX Posted July 21, 2012 Posted July 21, 2012 addEventHandler ( "onPlayerWasted", getRootElement( ), function ( ) if not ( jugadoresEnDM [ source ] ) then local azar = math.random ( #posiciones ) local interior = getElementInterior ( source ) local skin = getElementModel ( source ) local x, y, z = unpack ( posiciones [ azar ] ) setTimer( spawnPlayer, 2000, 1, source, x, y, z,0, skin, interior ) end end ) Prueba con eso e.e alexs me robo la respuesta OkNo.
maauroo Posted July 21, 2012 Author Posted July 21, 2012 Funciona Perfecto.. Por Ultimo Quisiera Saber Como Hago Que Las Personas Se Vean En El Radar?? Entienden?
maauroo Posted July 22, 2012 Author Posted July 22, 2012 Puedes Ya Darmelo Armado? No Lo Tiendo Mucho Por eso.. Ademas Lo Puse Asi Pero No Funciona.. function setupRandomRobber () local myPlayer = getRandomPlayer () -- Create a radar blip at the player's position, with a 'cash' icon and only visible to everyone (no 'visibleTo' parameter) local myBlip = createBlipAttachedTo ( myPlayer, 52 ) end
maauroo Posted July 22, 2012 Author Posted July 22, 2012 Disculpame Pero Sigo Sin Entender.. Como Puedo Hacerlo Funcionar ?
iFoReX Posted July 22, 2012 Posted July 22, 2012 function crearElBlip() if getElementDimension(source) == TUDIMENSION then createBlipAttachedTo(source,IDBlip) end end proba con eso. c:
BorderLine Posted July 22, 2012 Posted July 22, 2012 por que no pones start playerblips Como dice plate, los servers traen por default scripts y uno de esos es Playerblips. Que crea blips acordes al color del team y de destruyen cuando los jugadores mueren o se desconectan.
Recommended Posts