+1HidroNex Posted June 6, 2018 Share Posted June 6, 2018 السلام عليكم ورحمة الله عندي استفسار بسيط في هاذا الكود وبتحديد " getElementType" السطر الثاني هل يوجد خطاء ؟ وشكرآ function ChokThePlayer( theElement, matchingDimension ) --- هل يوجد في هاذا الكود خطاء ؟ if getElementType ( theElement ) == "ped" and ( isPlayerDead ( getLocalPlayer () ) == false ) then if ( getElementData ( theElement, "target" ) == getLocalPlayer () ) and (getElementData (theElement, "zombie") == true) then local px,py,pz = getElementPosition( getLocalPlayer () ) setTimer ( checkplayermoved, 600, 1, theElement, px, py, pz) end end end addEventHandler ( "onClientColShapeHit", getRootElement(), ChokThePlayer ) Link to comment
+1HidroNex Posted June 6, 2018 Author Share Posted June 6, 2018 (edited) 45 minutes ago, #DesTroeyR said: ايوه وش تبي تسوي الحين ؟ السؤال اضن واضح مايحتاج اوضح بأن اذا كان في خطاء عكس الخطاء التصحيح .. : ] Edited June 6, 2018 by +1HidroNex Link to comment
N3xT Posted June 6, 2018 Share Posted June 6, 2018 فيه استعمال لفنكشن قديم, ويمكن الخطأ لأنك ما تحققت انه فيه المنت من الأساس function ChokThePlayer( theElement, matchingDimension ) if ( theElement ) and ( getElementType ( theElement ) == "ped" ) and ( isPedDead ( localPlayer ) == false ) then if ( getElementData ( theElement, "target" ) == localPlayer ) and ( getElementData ( theElement, "zombie" ) == true ) then local px,py,pz = getElementPosition ( localPlayer ) setTimer ( checkplayermoved, 600, 1, theElement, px, py, pz) end end end addEventHandler ( "onClientColShapeHit", getRootElement(), ChokThePlayer ) 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