Jump to content

مساعده


Recommended Posts

هذا الكود يقتل اللاعب بس بسلاح

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
السلام عليكم ورحمة الله و بركاته

انا محاج كود يزود قوة السلاح

مثال

انا عندي سلاح M4

بدي اخلية يقتل من طلقه واحده

وانا وش عطيتك :|:?

Link to comment
انا قصدي سلاح قوته 50 انا بدي اخليه 70
addEventHandler("onPlayerDamage",root, 
    function (ata,wep) 
        if ata then 
            if getPlayerSerial(ata) == "xxxxx" then 
                killPed(source,ata,wep) 
            end 
        end 
    end 
) 

ذذ كود يزود سلاحك طلقة وحدة ويقتله زي مطلبت انتا وشيء اخر يفيدك اعضاء 8)

لا تسني ملف سيرفر + ضع ساريلك مكان اكس

Link to comment
انا ما بدي اخليه خاص local

لكل اللعيبه

addEventHandler("onPlayerDamage",root, 
    function (ata,wep) 
        if ata then 
        if getElementType(source) == "player" then 
                killPed(source,ata,wep) 
            end 
        end 
    end 
) 

مو مجربه .. :D

addEventHandler("onPlayerDamage",root, 
    function (ata,wep) 
        if ata then 
                killPed(source,ata,wep) 
        end 
    end 
) 

او كذااا .. :arrow:

Link to comment

عليكم السلام

جرب

addEventHandler("onPlayerDamage",root, 
    function (ata) == 
        if ata then 
        if getElementType(ata) == "player" then 
                killPed(source,ata,wep) 
            end 
        end 
    end 
) 

Link to comment
عليكم السلام

جرب

addEventHandler("onPlayerDamage",root, 
    function (ata) == 
        if ata then 
        if getElementType(ata) == "player" then 
                killPed(source,ata,wep) 
            end 
        end 
    end 
) 

وااااو :lol::lol::lol::lol::lol::lol::lol::lol::lol:

Link to comment
عليكم السلام

جرب

addEventHandler("onPlayerDamage",root, 
    function (ata) == 
        if ata then 
        if getElementType(ata) == "player" then 
                killPed(source,ata,wep) 
            end 
        end 
    end 
) 

وااااو :lol::lol::lol::lol::lol::lol::lol::lol::lol:

:lol: مم ميوناز ؟ او فلفل حار :arrow:

تسلم

ربي يسلمك :mrgreen:

Link to comment

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
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 :mrgreen:

Link to comment

بس هو يبي كل اسلحةة

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

بس هو يبي كل اسلحةة

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
-- كل الأسلحة 
  
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

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