AHMED MOSTAFA Posted June 15, 2016 Share Posted June 15, 2016 السلام عليكم ورحمة الله وبركاته ابي استفسر عن كود مدري وش الخطأ فيه الحين انا معي مود زومبي اول ما تقتل الزومبي تكسب 50 دولار بس ابي تيم معين يكسب الفلوس مب الكل حاولت لكن ما نفعت local Team = getPlayerTeam(getLocalPlayer()) if Team and getTeamName(Team) == Assassins_Zombie then givePlayerMoney (attacker, 50) else givePlayerMoney (attacker, 50) end ابي حل - وشكراً Link to comment
iMr.SFA7 Posted June 15, 2016 Share Posted June 15, 2016 بـدل التـحقق الـي في السـطر الثـالث ليـصبح هكـذا if Team and Team == getTeamFromName( 'Assassins_Zombie' ) then وقم بحذف السـطر الخامس والسادس Link to comment
AHMED MOSTAFA Posted June 15, 2016 Author Share Posted June 15, 2016 (edited) ما اقدر اطرح الكود كامل ذا مود زومبي يعني مب قليل ذا بعد التعديل + به نفس الخطأ الخطأ هنا local Team = getPlayerTeam(getLocalPlayer()) وبالتحديد هنا getLocalPlayer() function deanimated( ammo, attacker, weapon, bodypart ) if (attacker) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then if (getElementData (source, "zombie") == true) then local oldZcount = getElementData ( attacker, "Zombie kills" ) if oldZcount ~= false then setElementData ( attacker, "Zombie kills", oldZcount+1 ) local Team = getPlayerTeam(getLocalPlayer()) if Team and Team == getTeamFromName( Assassins_Zombie ) then givePlayerMoney (attacker, 50) end triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) else setElementData ( attacker, "Zombie kills", 1 ) triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) end end end end end addEventHandler("onPedWasted", resourceRoot, deanimated) Edited June 15, 2016 by Guest Link to comment
' A F . Posted June 15, 2016 Share Posted June 15, 2016 الكود سيرفر ليه سطر 9 حاط getLocalPlayer ? Link to comment
iMr.SFA7 Posted June 15, 2016 Share Posted June 15, 2016 function deanimated( ammo, attacker, weapon, bodypart ) if (attacker) then if (getElementType ( attacker ) == "player") and (getElementType ( source ) == "ped") then if (getElementData (source, "zombie") == true) then local oldZcount = getElementData ( attacker, "Zombie kills" ) if oldZcount ~= false then setElementData ( attacker, "Zombie kills", oldZcount+1 ) local Team = getPlayerTeam(attacker) if Team and Team == getTeamFromName( 'Assassins_Zombie' ) then givePlayerMoney (attacker, 50) end --- givePlayerMoney (attacker, 50) --outputChatBox ( "* your kill one zombie and get [50$] your killes [".. oldZcount+1 .."]" , attacker, 255, 255, 255 ) triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) else setElementData ( attacker, "Zombie kills", 1 ) triggerEvent ( "onZombieWasted", source, attacker, weapon, bodypart ) end end end end end addEventHandler("onPedWasted", resourceRoot, deanimated) getLocalPlayer() -- Client Side Only Link to comment
AHMED MOSTAFA Posted June 15, 2016 Author Share Posted June 15, 2016 خلاص سويتها ب شخصية بدل التيم ونفعت شكراً سفاح لتعبك معي + انت تعرف سيرفر فدرالي ؟ ام انت سفاح غير ؟ Link to comment
iMr.SFA7 Posted June 15, 2016 Share Posted June 15, 2016 خلاص سويتها ب شخصية بدل التيم ونفعت شكراً سفاح لتعبك معي + انت تعرف سيرفر فدرالي ؟ ام انت سفاح غير ؟ ايه أنا الي في رآسك Link to comment
AHMED MOSTAFA Posted June 15, 2016 Author Share Posted June 15, 2016 خلاص سويتها ب شخصية بدل التيم ونفعت شكراً سفاح لتعبك معي + انت تعرف سيرفر فدرالي ؟ ام انت سفاح غير ؟ ايه أنا الي في رآسك هههههه منور المنتدى 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