mo7taref2014 Posted May 7, 2015 Posted May 7, 2015 السلام عليكم ورحمة الله و بركاته انا محاج كود يزود قوة السلاح مثال انا عندي سلاح M4 بدي اخلية يقتل من طلقه واحده ____________________________________________________________________________________ Learning lua language
terreus Posted May 7, 2015 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 = ضيف سريالك هنا
mo7taref2014 Posted May 7, 2015 Author Posted May 7, 2015 انا قصدي تزيد قوة السلاح ____________________________________________________________________________________ Learning lua language
terreus Posted May 7, 2015 Posted May 7, 2015 السلام عليكم ورحمة الله و بركاتهانا محاج كود يزود قوة السلاح مثال انا عندي سلاح M4 بدي اخلية يقتل من طلقه واحده وانا وش عطيتك
mo7taref2014 Posted May 7, 2015 Author Posted May 7, 2015 انا قصدي سلاح قوته 50 انا بدي اخليه 70 ____________________________________________________________________________________ Learning lua language
terreus Posted May 7, 2015 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 ) ذذ كود يزود سلاحك طلقة وحدة ويقتله زي مطلبت انتا وشيء اخر يفيدك اعضاء لا تسني ملف سيرفر + ضع ساريلك مكان اكس
mo7taref2014 Posted May 7, 2015 Author Posted May 7, 2015 انا ما بدي اخليه خاص local لكل اللعيبه ____________________________________________________________________________________ Learning lua language
terreus Posted May 7, 2015 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 ) او كذااا ..
mo7taref2014 Posted May 7, 2015 Author Posted May 7, 2015 تسلم ____________________________________________________________________________________ Learning lua language
Abdul KariM Posted May 7, 2015 Posted May 7, 2015 عليكم السلام جرب addEventHandler("onPlayerDamage",root, function (ata) == if ata then if getElementType(ata) == "player" then killPed(source,ata,wep) end end end ) [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
Simple. Posted May 7, 2015 Posted May 7, 2015 عليكم السلام جرب addEventHandler("onPlayerDamage",root, function (ata) == if ata then if getElementType(ata) == "player" then killPed(source,ata,wep) end end end ) وااااو h3x#2020
terreus Posted May 7, 2015 Posted May 7, 2015 عليكم السلام جرب addEventHandler("onPlayerDamage",root, function (ata) == if ata then if getElementType(ata) == "player" then killPed(source,ata,wep) end end end ) وااااو مم ميوناز ؟ او فلفل حار تسلم ربي يسلمك
Walid Posted May 7, 2015 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 ) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
terreus Posted May 7, 2015 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
Walid Posted May 7, 2015 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 ) Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
terreus Posted May 7, 2015 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 :
TAPL Posted May 8, 2015 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)
mo7taref2014 Posted May 8, 2015 Author Posted May 8, 2015 تسلموا ____________________________________________________________________________________ Learning lua language
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