Jump to content

Problema Con Mi Respawn!!


maauroo

Recommended Posts

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?

Link to comment
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

Link to comment
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.

Link to comment

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 

Link to comment
  • Recently Browsing   0 members

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