mo7taref2014 Posted May 7, 2015 Share Posted May 7, 2015 السلام عليكم ورحمة الله و بركاته انا محاج كود يزود قوة السلاح مثال انا عندي سلاح M4 بدي اخلية يقتل من طلقه واحده Link to comment
terreus Posted May 7, 2015 Share Posted May 7, 2015 هذا الكود يقتل اللاعب بس بسلاحak47 addEventHandler("onPlayerDamage",root, function (ata,wep) if ata then if getPlayerSerial(ata) == "xxxxx" then if wep == 30 then -- Ak47 = 30 killPed(source,ata,wep) end end end end ) و ذا يقتل بكل الاسلحه addEventHandler("onPlayerDamage",root, function (ata,wep) if ata then if getPlayerSerial(ata) == "xxxxx" then killPed(source,ata,wep) end end end ) xxxxx = ضيف سريالك هنا Link to comment
mo7taref2014 Posted May 7, 2015 Author Share Posted May 7, 2015 انا قصدي تزيد قوة السلاح Link to comment
terreus Posted May 7, 2015 Share Posted May 7, 2015 السلام عليكم ورحمة الله و بركاتهانا محاج كود يزود قوة السلاح مثال انا عندي سلاح M4 بدي اخلية يقتل من طلقه واحده وانا وش عطيتك Link to comment
mo7taref2014 Posted May 7, 2015 Author Share Posted May 7, 2015 انا قصدي سلاح قوته 50 انا بدي اخليه 70 Link to comment
terreus Posted May 7, 2015 Share Posted May 7, 2015 انا قصدي سلاح قوته 50 انا بدي اخليه 70 addEventHandler("onPlayerDamage",root, function (ata,wep) if ata then if getPlayerSerial(ata) == "xxxxx" then killPed(source,ata,wep) end end end ) ذذ كود يزود سلاحك طلقة وحدة ويقتله زي مطلبت انتا وشيء اخر يفيدك اعضاء لا تسني ملف سيرفر + ضع ساريلك مكان اكس Link to comment
mo7taref2014 Posted May 7, 2015 Author Share Posted May 7, 2015 انا ما بدي اخليه خاص local لكل اللعيبه Link to comment
terreus Posted May 7, 2015 Share Posted May 7, 2015 انا ما بدي اخليه خاص local لكل اللعيبه addEventHandler("onPlayerDamage",root, function (ata,wep) if ata then if getElementType(source) == "player" then killPed(source,ata,wep) end end end ) مو مجربه .. addEventHandler("onPlayerDamage",root, function (ata,wep) if ata then killPed(source,ata,wep) end end ) او كذااا .. Link to comment
Abdul KariM Posted May 7, 2015 Share Posted May 7, 2015 عليكم السلام جرب addEventHandler("onPlayerDamage",root, function (ata) == if ata then if getElementType(ata) == "player" then killPed(source,ata,wep) end end end ) Link to comment
*[MSN]MHMD Posted May 7, 2015 Share Posted May 7, 2015 تفضل هذا الفنكشن ينفع كلنت وسيرفر setWeaponProperty Link to comment
Simple. Posted May 7, 2015 Share Posted May 7, 2015 عليكم السلام جرب addEventHandler("onPlayerDamage",root, function (ata) == if ata then if getElementType(ata) == "player" then killPed(source,ata,wep) end end end ) وااااو Link to comment
terreus Posted May 7, 2015 Share Posted May 7, 2015 عليكم السلام جرب addEventHandler("onPlayerDamage",root, function (ata) == if ata then if getElementType(ata) == "player" then killPed(source,ata,wep) end end end ) وااااو مم ميوناز ؟ او فلفل حار تسلم ربي يسلمك Link to comment
Walid Posted May 7, 2015 Share Posted May 7, 2015 this is how you can change it addEventHandler ( "onResourceStart", root, function ( ) for _,weaponSkill in ipairs({"poor","std","pro"}) do setWeaponProperty("m4", weaponSkill, "damage", 70) -- ضع هنا القوة end end ) Link to comment
terreus Posted May 7, 2015 Share Posted May 7, 2015 this is how you can change it addEventHandler ( "onResourceStart", root, function ( ) for _,weaponSkill in ipairs({"poor","std","pro"}) do setWeaponProperty("m4", weaponSkill, "damage", 70) -- ضع هنا القوة end end ) مشاء الله كود حلو وسريع وافضل بس هو يبي كل اسلحةة Nice Job Link to comment
Walid Posted May 7, 2015 Share Posted May 7, 2015 بس هو يبي كل اسلحةة here you go -- كل الأسلحة addEventHandler ( "onResourceStart", root, function ( ) weaponList = { "colt 45", "silenced", "deagle", "shotgun", "sawed-off", "combat shotgun", "uzi", "mp5", "ak-47", "m4", "tec-9", "rifle", "sniper", "minigun" } for _,weapon in ipairs( weaponList ) do for _,skill in ipairs( { "poor", "std", "pro" } ) do setWeaponProperty( weapon, skill,"damage", 70) -- ضع هنا القوة end end end ) Link to comment
terreus Posted May 7, 2015 Share Posted May 7, 2015 بس هو يبي كل اسلحةة here you go -- كل الأسلحة addEventHandler ( "onResourceStart", root, function ( ) weaponList = { "colt 45", "silenced", "deagle", "shotgun", "sawed-off", "combat shotgun", "uzi", "mp5", "ak-47", "m4", "tec-9", "rifle", "sniper", "minigun" } for _,weapon in ipairs( weaponList ) do for _,skill in ipairs( { "poor", "std", "pro" } ) do setWeaponPropertyFlag( weapon, skill,"damage", 70) -- ضع هنا القوة end end end ) مبدع ولله الله ياعطيك عافية وبنسبة لي أخ صاحب موضوع اذا تبي تضيف اي سلاح ضيف هنا /// weaponList : Link to comment
TAPL Posted May 8, 2015 Share Posted May 8, 2015 -- كل الأسلحة addEventHandler("onResourceStart", resourceRoot, function() weaponList = {"colt 45", "silenced", "deagle", "shotgun", "sawed-off", "combat shotgun", "uzi", "mp5", "ak-47", "m4", "tec-9", "rifle", "sniper", "minigun"} for _,weapon in ipairs(weaponList) do for _,skill in ipairs({"poor", "std", "pro"}) do setWeaponProperty(weapon, skill, "damage", 70) -- ضع هنا القوة end end end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now