Sign in to follow this  
SWAT-M7MD

مساعدة ف كود حفظ اسلحة

Recommended Posts

addEventHandler("onPlayerWasted",root,saveWeaponsOnWasted)

function loadWeaponsOnSpawn()
local account = getPlayerAccount(source)
local weapon0 = getAccountData(account,"weapon0")
local weapon1 = getAccountData(account,"weapon1")
local weapon2 = getAccountData(account,"weapon2")
local weapon3 = getAccountData(account,"weapon3")
local weapon4 = getAccountData(account,"weapon4")
local weapon5 = getAccountData(account,"weapon5")
local weapon6 = getAccountData(account,"weapon6")
local weapon7 = getAccountData(account,"weapon7")
local weapon8 = getAccountData(account,"weapon8")
local weapon9 = getAccountData(account,"weapon9")
local weapon10 = getAccountData(account,"weapon10")
local weapon11 = getAccountData(account,"weapon11")
local weapon12 = getAccountData(account,"weapon12")
local ammo0 = getAccountData(account,"ammo0")
local ammo1 = getAccountData(account,"ammo1")
local ammo2 = getAccountData(account,"ammo2")
local ammo3 = getAccountData(account,"ammo3")
local ammo4 = getAccountData(account,"ammo4")
local ammo5 = getAccountData(account,"ammo5")
local ammo6 = getAccountData(account,"ammo6")
local ammo7 = getAccountData(account,"ammo7")
local ammo8 = getAccountData(account,"ammo8")
local ammo9 = getAccountData(account,"ammo9")
local ammo10 = getAccountData(account,"ammo10")
local ammo11 = getAccountData(account,"ammo11")
local ammo12 = getAccountData(account,"ammo12")
if (weapon0) and (weapon1) and (weapon2) and (weapon3) and (weapon4) and (weapon5) and (weapon6) and (weapon7) and (weapon8) and (weapon9) and (weapon10) and (weapon11) and (weapon12) and
(ammo0) and (ammo1) and (ammo2) and (ammo3) and (ammo4) and (ammo5) and (ammo6) and (ammo7) and (ammo8) and (ammo9) and (ammo10) and (ammo11) and (ammo12) then
giveWeapon(source,weapon0,ammo0)
giveWeapon(source,weapon1,ammo1)
giveWeapon(source,weapon2,ammo2)
giveWeapon(source,weapon3,ammo3)
giveWeapon(source,weapon4,ammo4)
giveWeapon(source,weapon5,ammo5)
giveWeapon(source,weapon6,ammo6)
giveWeapon(source,weapon7,ammo7)
giveWeapon(source,weapon8,ammo8)
giveWeapon(source,weapon9,ammo9)
giveWeapon(source,weapon10,ammo10)
giveWeapon(source,weapon11,ammo11)
giveWeapon(source,weapon12,ammo12)
end
end
addEventHandler("onPlayerSpawn",root,loadWeaponsOnSpawn)

صحيح انو يحفظ الاسلحة

بس لما اموت عم يتكرر الرصاص الضعف

ممكن حل انا حاولت

Share this post


Link to post

(setAccountData)وريني الكود اللي تعطي فيه الداتا للحساب

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.