rabe3 Posted October 16, 2013 Share Posted October 16, 2013 السلام عليكم عندي هاذ المود اذا قتلت واحد لازم يزيد ستات تبع السلاح البيستول بس مدري ليش مايشتغل 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
rabe3 Posted October 17, 2013 Author Share Posted October 17, 2013 السلام عليكم عندي هاذ المود اذا قتلت واحد لازم يزيد ستات تبع السلاح البيستول بس مدري ليش مايشتغل 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
./BlackBird# Posted October 17, 2013 Share Posted October 17, 2013 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
rabe3 Posted October 17, 2013 Author Share Posted October 17, 2013 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
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