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 ) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Castillo Posted April 7, 2013 Posted April 7, 2013 El script deberia funcionar, algun error? San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Plate Posted April 7, 2013 Author Posted April 7, 2013 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
Plate Posted April 7, 2013 Author Posted April 7, 2013 No no creo por que usaba otro y tambien pasaba Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
PhantomDamn Posted April 7, 2013 Posted April 7, 2013 no interferira con el deathpickup? |El Sabio no tiene intereses propios, hace suyos los intereses del pueblo| (scripting= -20%)
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 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
Plate Posted April 7, 2013 Author Posted April 7, 2013 Ok gracias yakuza en que parte edito Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
Recommended Posts