Jump to content

طلب كود


Recommended Posts

اريد اضافة الى هذا الكود

لا يمك للاعب الا الوصول الى 1000 رصاصة فقط

ولا يمكنة تخطى ال1000 رصاصة

ممكن احد يساعدنى

        elseif(weapon_name == "weapon_m4") then 
            if(player_money >= tonumber(price_m4)) then 
                giveWeapon(source, 31, 100) 
                takePlayerMoney(source, tonumber(price_m4)) 
                outputChatBox("M4 لقد اشتريت 100 رصارة من", source, 0, 255, 0) 
            else 
                outputChatBox("انت لا تملك مال كافى لشراء هذا السلاح", source, 255, 0, 0) 
            end 

Link to comment

دا جزأ منو بس ضفلى على اللى انا اقصد لو سمحت

اريد عند شراء اللعب مثلا

M4

الحد الاقصى للروصاص الذى ممكن ان يصل اليه هو 1.000

    if(getAccountData(player_account, "GunLicense") == true) then 
     
        if(weapon_name == "weapon_porrete") then 
            if(player_money >= tonumber(price_porrete)) then 
                giveWeapon(source, 24, 100) 
                takePlayerMoney(source, tonumber(price_porrete)) 
                outputChatBox("Desert eagle لقد اشتريت 100 رصارة من", source, 0, 255, 0) 
            else 
                outputChatBox("انت لا تملك مال كافى لشراء هذا السلاح", source, 255, 0, 0) 
            end 
  
        elseif(weapon_name == "weapon_m4") then 
            if(player_money >= tonumber(price_m4)) then 
                giveWeapon(source, 31, 100) 
                takePlayerMoney(source, tonumber(price_m4)) 
                outputChatBox("M4 لقد اشتريت 100 رصارة من", source, 0, 255, 0) 
            else 
                outputChatBox("انت لا تملك مال كافى لشراء هذا السلاح", source, 255, 0, 0) 
            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...