Jump to content

Problema Con Mi Respawn!!


maauroo

Recommended Posts

Posted

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?

Posted
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 :D

Posted
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.

Posted

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 

Posted
function crearElBlip() 
if getElementDimension(source) == TUDIMENSION then 
createBlipAttachedTo(source,IDBlip) 
end 
end 
  

proba con eso. c:

Posted
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.

  • Recently Browsing   0 members

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