Jump to content

مهارات السلاح


rabe3

Recommended Posts

السلام عليكم عندي هاذ المود اذا قتلت واحد لازم يزيد ستات تبع السلاح البيستول بس مدري ليش مايشتغل

addEventHandler( "onPlayerWasted", root, 
    function (ammo, killer, weapon, bodypart ) 
    local weapon = getElementType ( "weapon" ) 
        if killer and killer ~= source then 
            if bodypart == 9 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 2 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 8 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 7 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 6 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 5 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 4 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 3 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        end 
    end 
); 

Link to comment
السلام عليكم عندي هاذ المود اذا قتلت واحد لازم يزيد ستات تبع السلاح البيستول بس مدري ليش مايشتغل
addEventHandler( "onPlayerWasted", root, 
    function (ammo, killer, weapon, bodypart ) 
    local weapon = getElementType ( "weapon" ) 
        if killer and killer ~= source then 
            if bodypart == 9 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 2 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 8 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 7 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 6 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 5 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 4 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        elseif killer and killer ~= source then 
            if bodypart == 3 and weapon then 
                setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ); end 
        end 
    end 
); 

؟

Link to comment
addEventHandler( "onPlayerWasted", root, 
 function (ammo, killer, weapon, bodypart ) 
   if killer and killer ~= source and weapon == 22 then 
    if bodypart == 9 then 
     setPedStat( killer, 69, getPedStat( killer, 69 ) + 2 ) 
 else 
       setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ) 
   end 
  end 
end 
) 

Link to comment
addEventHandler( "onPlayerWasted", root, 
 function (ammo, killer, weapon, bodypart ) 
   if killer and killer ~= source and weapon == 22 then 
    if bodypart == 9 then 
     setPedStat( killer, 69, getPedStat( killer, 69 ) + 2 ) 
 else 
       setPedStat( killer, 69, getPedStat( killer, 69 ) + 1 ) 
   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...