Jump to content

مشكلة


SycroX

Recommended Posts

Posted

السلام عليكم انا سويت محل سلاح

المشكلة انو

كل ما اشتري

يشتري تمام

و له حد الشرا

500

بس اجي اسوي ريكونكت

ادخل السيرفر تاني

اللاقي الأسلحة

لا نهائية

وش الحل ؟

Posted
السلام عليكم انا سويت محل سلاح

المشكلة انو

كل ما اشتري

يشتري تمام

و له حد الشرا

500

بس اجي اسوي ريكونكت

ادخل السيرفر تاني

اللاقي الأسلحة

لا نهائية

وش الحل ؟

اعتقد انك مشغل محلين اسلحه بنفس الوقت ويحتوون على نفس الاكونت داتا ذا طبعا لو انت مسويها بالاكونت داتا

Posted
اطرح اكوادك #

كود شو

المحل

2180

سطر

كلنت

و

1214

سيرفر

-_-

اطرح شو

اطرح كود الحفظ فقط

Posted
اطرح اكوادك #

كود شو

المحل

2180

سطر

كلنت

و

1214

سيرفر

-_-

اطرح شو

اطرح كود الحفظ فقط

function CheckBug() 
    for i, player in ipairs(getElementsByType("player")) do 
        local wep = getPedWeapon(player, 8 ) 
        local gr = getPedTotalAmmo(player, 8 ) 
        if gr > 4 then 
            if wep == 16 then 
                takeWeapon ( player, 16 ) 
                giveWeapon ( player, 16, 4) 
            end 
            if wep == 17 then 
                takeWeapon ( player, 17 ) 
                giveWeapon ( player, 17, 4) 
              end 
          end 
            if wep == 22 then 
            if gr > 1000 then 
                takeWeapon ( player, 22 ) 
                giveWeapon ( player, 22, 1000) 
            end 
        end 
            if wep == 23 then 
            if gr > 1000 then 
                takeWeapon ( player, 23 ) 
                giveWeapon ( player, 23, 1000) 
                end 
            end 
            if wep == 24 then 
            if gr > 1000 then    
                takeWeapon ( player, 24 ) 
                giveWeapon ( player, 24, 1000) 
                end 
            end 
            if wep == 25 then 
            if gr > 1000 then 
                takeWeapon ( player, 25 ) 
                giveWeapon ( player, 25, 1000) 
                end 
            end 
            if wep == 26 then 
            if gr > 1000 then 
                takeWeapon ( player, 26 ) 
                giveWeapon ( player, 26, 1000) 
                end 
            end 
            if wep == 27 then 
            if gr > 1000 then    
                takeWeapon ( player, 27 ) 
                giveWeapon ( player, 27, 1000) 
                end 
            end 
            if wep == 28 then 
            if gr > 1200 then 
                takeWeapon ( player, 28 ) 
                giveWeapon ( player, 28, 1200) 
                end 
            end 
            if wep == 29 then 
            if gr > 1200 then 
                takeWeapon ( player, 29 ) 
                giveWeapon ( player, 29, 1200) 
                end 
            end 
            if wep == 32 then 
            if gr > 1200 then 
                takeWeapon ( player, 32 ) 
                giveWeapon ( player, 32, 1200) 
                end 
            end 
            if wep == 30 then 
            if gr > 2000 then 
                takeWeapon ( player, 30 ) 
                giveWeapon ( player, 30, 2000) 
                end 
            end 
            if wep == 31 then 
            if gr > 2000 then 
                takeWeapon ( player, 31 ) 
                giveWeapon ( player, 31, 2000) 
                end 
            end 
            if wep == 33 then 
            if gr > 1000 then 
                takeWeapon ( player, 33 ) 
                giveWeapon ( player, 33, 1000) 
                end 
            end 
            if wep == 34 then 
            if gr > 1200 then 
                takeWeapon ( player, 34 ) 
                giveWeapon ( player, 34, 1000) 
                end 
            end 
        end 
    end 
end 
setTimer(CheckBug, 1000, 0, true) 

Posted
wpTable = { 
    ["16"] = 4, 
    ["17"] = 4, 
    ["22"] = 1000, 
    ["23"] = 1000, 
    ["24"] = 1000, 
    ["25"] = 1000, 
    ["26"] = 1000, 
    ["27"] = 1000, 
    ["28"] = 1200, 
    ["29"] = 1200, 
    ["30"] = 2000, 
    ["31"] = 2000, 
    ["32"] = 1200, 
    ["33"] = 1000, 
    ["34"] = 1000, 
} 
  
function CheckBug() 
    for i, player in ipairs(getElementsByType("player")) do 
        for slot=2, 8 do 
            local wpID = getPedWeapon(player, slot) 
            local wpLimit = tonumber(wpTable[tostring(wpID)]) 
            if wpID and wpID > 0 and wpLimit then 
                if getPedTotalAmmo(player, slot) > wpLimit then 
                    setWeaponAmmo(player, wpID, wpLimit) 
                end 
            end 
        end 
    end 
end 
setTimer(CheckBug, 1000, 0) 

Posted
اذا انت مسوي حفظ الاسلحه بالاكونت داتا داخل الشوب اطرح الاكواد

خلاص تحلت شكرا للجميع

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...