khaledmhammed Posted August 28, 2015 Share Posted August 28, 2015 الكود لذا كيلير ع ماعتقد لا قتلت يجيك فلوس بس لا قتلت نفسك بقنبلة تربح فلوس بدون ماتقتل احد addEvent ("onPlayerKilled", true) addEventHandler ("onPlayerKilled", root, function (killer, weapon) givePlayerMoney (killer, 300) outputChatBox ("You have been killed by " .. getPlayerName (killer), source, 255, 0, 0) outputChatBox ("You have killed " .. getPlayerName (source) .. " and you earned $3000", killer, 0, 255, 0) end ) اتمنى الحل Link to comment
Al3grab Posted August 28, 2015 Share Posted August 28, 2015 مافيه إيفنت اسمه onPlayerKilled الا اذا كنت انت مسويه تقدر تغيره addEvent ("onPlayerWasted", true) addEventHandler ("onPlayerWasted", root, function (ammo,killer, weapon) if killer == source then outputChatBox ("Yoi killed yourself dipshit", killer, 0, 255, 0) return end givePlayerMoney (killer, 300) outputChatBox ("You have been killed by " .. getPlayerName (killer), source, 255, 0, 0) outputChatBox ("You have killed " .. getPlayerName (source) .. " and you earned $300", killer, 0, 255, 0) end ) Link to comment
Jupi Posted August 28, 2015 Share Posted August 28, 2015 علي ما اعتقد هذا ايفينت تريقر + خذ هذا جربه addEventHandler ("onPlayerWasted", root, function (killer, weapon) givePlayerMoney (killer, 300) outputChatBox ("You have been killed by " .. getPlayerName (killer), source, 255, 0, 0) outputChatBox ("You have killed " .. getPlayerName (source) .. " and you earned $3000", killer, 0, 255, 0) end ) Link to comment
Al3grab Posted August 28, 2015 Share Posted August 28, 2015 علي ما اعتقد هذا ايفينت تريقر+ خذ هذا جربه addEventHandler ("onPlayerWasted", root, function (killer, weapon) givePlayerMoney (killer, 300) outputChatBox ("You have been killed by " .. getPlayerName (killer), source, 255, 0, 0) outputChatBox ("You have killed " .. getPlayerName (source) .. " and you earned $3000", killer, 0, 255, 0) end ) parameters of onPlayerWasted int totalAmmo, element killer, int killerWeapon, int bodypart, bool stealth killer = القاتل source = المقتول if killer == source then outputChatBox ("Yoi killed yourself :~", killer, 0, 255, 0) return end تشوف اذا القاتل نفسه المقتول وتوقف الفنكشن Link to comment
khaledmhammed Posted August 28, 2015 Author Share Posted August 28, 2015 يعطيكم العافية العقرب قولت فوق لذا كيلير ع ماعتقد ع العموم بجرب وشوف Link to comment
khaledmhammed Posted August 28, 2015 Author Share Posted August 28, 2015 خلاص تمام زبط يعطيك العافية : ) 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