Jump to content

Ayuda pierden las armas


Plate

Recommended Posts

Posted

Hola estube usando este script para guardar las armas al morir pero pierden las armas y me tienen cansado con reportar cada 2x3 que las perdieron si alguien me puede ayudar

local playerWeapons = { } 
  
addEventHandler ( "onPlayerWasted", root, 
    function ( ) 
        if ( not playerWeapons [ source ] ) then 
            playerWeapons [ source ] = { } 
        end 
        for slot = 0, 12 do 
            local weapon = getPedWeapon ( source, slot ) 
            if ( weapon > 0 ) then 
                local ammo = getPedTotalAmmo ( source, slot ) 
                if ( ammo > 0 ) then 
                    playerWeapons [ source ] [ weapon ] = ammo 
                end 
            end 
        end 
    end 
) 
  
addEventHandler ( "onPlayerSpawn", root, 
    function ( ) 
        if ( playerWeapons [ source ] ) then 
            for weapon, ammo in pairs ( playerWeapons [ source ] ) do 
                giveWeapon ( source, tonumber ( weapon ), tonumber ( ammo ) ) 
            end 
        end 
  
        playerWeapons [ source ] = nil 
    end 
) 
  

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

El script deberia funcionar, algun error?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Si funciona de 10 pero pierden las armas igual deves en cuando

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

No no creo por que usaba otro y tambien pasaba

Visita Full GameZ DayZ Mod

Server IP: mtasa://158.69.125.144:29015

Posted

Si usas los zombies de slothbot. tendras errores.. Se supone ke si te matan los zombies cuando no tienes las armas en mano, se pierden.

Debes editar el script de zombie

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

  • Recently Browsing   0 members

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