Plate Posted April 7, 2013 Share 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 ) Link to comment
Castillo Posted April 7, 2013 Share Posted April 7, 2013 El script deberia funcionar, algun error? Link to comment
Plate Posted April 7, 2013 Author Share Posted April 7, 2013 Si funciona de 10 pero pierden las armas igual deves en cuando Link to comment
Plate Posted April 7, 2013 Author Share Posted April 7, 2013 No no creo por que usaba otro y tambien pasaba Link to comment
PhantomDamn Posted April 7, 2013 Share Posted April 7, 2013 no interferira con el deathpickup? Link to comment
BorderLine Posted April 7, 2013 Share 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 Link to comment
Plate Posted April 7, 2013 Author Share Posted April 7, 2013 Ok gracias yakuza en que parte edito Link to comment
Recommended Posts