Jump to content

تصحيح كود


Mr.SAUD

Recommended Posts

السلام عليكم و رحمةة الله و بركاتة

شباب ابيكم تصلحون لي ذا الكود

addEventHandler('onPlayerQuit',root, 
function()  
    local vAcc = getPlayerAccount(source) 
        if not vAcc or isGuestAccount(vAcc) then return end  
            setAccountData(vAcc,'SAUD',giveWeapon(source)) 
    end  
) 
  
addEventHandler('onPlayerLogin',root, 
function(_,acc) 
    local v_Data = getAccountData(acc,'SAUD') 
        if ( v_Data ) then 
            giveWeapon(source,vData) 
        end 
    end 
)  

انا ابيه يحفظ السلحة لو طلع و دخل بس ما ضبط

وما عرفت له

و محتاج مساعداتكم لبى قلوبكم

Link to comment
addEventHandler('onPlayerQuit',root, 
function() 
    local vAcc = getPlayerAccount(source) 
        if not vAcc or isGuestAccount(vAcc) then return end 
            setAccountData( vAcc,'WeaponID0',getPedWeapon( source, 0) ) -- 0 = Weapon ID 
            setAccountData (account, "TotalAmmo0", getPedTotalAmmo ( source, 0 ) ) -- 0 = Weapon ID 
    end 
) 
  
addEventHandler('onPlayerLogin',root, 
function(_,acc) 
    local Weapon = getAccountData(acc,'WeaponID0') 
    local Ammo = getAccountData(acc,'TotalAmmo0') 
        if ( Weapon ) then 
            giveWeapon(source, Weapon, Ammo) 
        end 
    end 
) 

Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...