Plate Posted April 7, 2013 Posted April 7, 2013 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 )
Plate Posted April 7, 2013 Author Posted April 7, 2013 Si funciona de 10 pero pierden las armas igual deves en cuando
Plate Posted April 7, 2013 Author Posted April 7, 2013 No no creo por que usaba otro y tambien pasaba
BorderLine Posted April 7, 2013 Posted April 7, 2013 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
Recommended Posts