[DONE]* Posted January 5, 2015 Share Posted January 5, 2015 السلام عليكم ورحمة الله و بركاته ___________________________________________________________________________________________________________ لما واحد يموت يما تروح اسلحته مثال: مثلا واحد عنده سلاح ومات ما تروح اسلحته __________________________________________________________________________________________________________ وشكرا لكم Link to comment
# L 7 N Posted January 5, 2015 Share Posted January 5, 2015 save_system مود https://community.multitheftauto.com/index.php?p= ... ils&id=977 رآح يحفظ لك اشياء كثيره ...الفلوس - النجوم - الدم - الدرع - الاسلحه الخ ! وهو مفتوح المصدر تقدر تعدل عليه بحيث يحفظ لك الاسلحه فقط . موفق Link to comment
TAPL Posted January 5, 2015 Share Posted January 5, 2015 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now