Jump to content

تعديل خصائص السلاح ؟


mr.ekoo

Recommended Posts

الكود الاول AK-47 يطلق ملتوف

كلنت

function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
           if ( weapon ==  30) then 
            createProjectile(getLocalPlayer(),18,hitX, hitY, hitZ) 
            end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) 

الكود الثاني اخلي عدد الطلقات محدود

سيرفر

setWeaponProperty(30, "pro", "maximum_clip_ammo", 3) 
  

Link to comment
function narBullets(weapon,ammo,ammoInClip,hitX,hitY,hitZ,hitElement) 
           if ( weapon ==  29) then 
            createProjectile(getLocalPlayer(),16,hitX, hitY, hitZ) 
            end 
end 
addEventHandler("onClientPlayerWeaponFire", getLocalPlayer(), narBullets) 

setWeaponProperty(29, "pro", "maximum_clip_ammo", 1) 
  

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