Stranger Posted June 1, 2013 Posted June 1, 2013 السلام عليكم , العنوان واضح ,ا local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster(hitElement) if (getPlayerMoney (sourcee) >= 4000) then setPedArmor(source,100) setElementHealth(source,100) takePlayerMoney(source,4000) setElementPosition(hitElement, 321.32462, 1979.65381, 17.6406) setElementInterior(hitElement, 0) end addEventHandler("onClientMarkerHit", marker2, Manster)
S4MuEL Posted June 1, 2013 Posted June 1, 2013 local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster(player) if getElementType(player)=="player" then if (getPlayerMoney (player) >= 4000) then setPedArmor(player,100) setElementHealth(player,100) takePlayerMoney(player,4000) setElementPosition(player, 321.32462, 1979.65381, 17.6406) setElementInterior(player, 0) end end end addEventHandler("onMarkerHit", marker2, Manster)
Stranger Posted June 1, 2013 Author Posted June 1, 2013 local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster(player) if getElementType(player)=="player" then if (getPlayerMoney (player) >= 4000) then setPedArmor(player,100) setElementHealth(player,100) takePlayerMoney(player,4000) setElementPosition(player, 321.32462, 1979.65381, 17.6406) setElementInterior(player, 0) end end end addEventHandler("onMarkerHit", marker2, Manster) الكود خطأ ا ^
Stranger Posted June 1, 2013 Author Posted June 1, 2013 local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster(player) if getElementType(player)=="player" then if (getPlayerMoney (player) >= 4000) then setPedArmor(player,100) setElementHealth(player,100) takePlayerMoney(player,4000) setElementPosition(player, 321.32462, 1979.65381, 17.6406) setElementInterior(player, 0) end end end addEventHandler("onMarkerHit", marker2, Manster) مشكوور لبى قلبك
S4MuEL Posted June 1, 2013 Posted June 1, 2013 يوب , = ) ومآ سويت آلـ getElementType , عشآن تتحقق من آن آلألمنت هو آللآعب , + setPedArmor سيرففر مآ يصير مع onClientMarkerHit خليتهـ لكـ onMarkerHit , إنتبه للأخططآء !!
Stranger Posted June 1, 2013 Author Posted June 1, 2013 يوب , = ) ومآ سويت آلـ getElementType , عشآن تتحقق من آن آلألمنت هو آللآعب , + setPedArmor سيرففر مآ يصير مع onClientMarkerHit خليتهـ لكـ onMarkerHit , إنتبه للأخططآء !! يب مشكور , انا اول ما حطيت الكود ما اشتغل , استغربت ,تذكرت اني حاطه كلنت, ا
Stranger Posted June 1, 2013 Author Posted June 1, 2013 ححيآك آلله حبي .. طيب فيه طريقة اذا واحد معه سياره ودخل في الماركر مايصير له شي لأن الكود الحين اذا واحد معه سياره ووقف في الماركر فلوسه تروح وبسرعه وما ينتقل !! يليت وضحت المعلومه ا
AHMAD1234 Posted June 1, 2013 Posted June 1, 2013 ححيآك آلله حبي .. طيب فيه طريقة اذا واحد معه سياره ودخل في الماركر مايصير له شي لأن الكود الحين اذا واحد معه سياره ووقف في الماركر فلوسه تروح وبسرعه وما ينتقل !! يليت وضحت المعلومه ا if isPedInVehicle ( player ) then
iPrestege Posted June 1, 2013 Posted June 1, 2013 local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster( player ) if getElementType ( player ) == 'player' then if not isPedInVehicle ( player ) then if ( getPlayerMoney ( player ) >= 4000 ) then setPedArmor(player,100) setElementHealth(player,100) takePlayerMoney(player,4000) setElementPosition(player, 321.32462, 1979.65381, 17.6406) setElementInterior(player, 0) end end end end addEventHandler("onMarkerHit", marker2, Manster,false)
K1NG Posted June 2, 2013 Posted June 2, 2013 local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster( player ) if getElementType ( player ) == 'player' then if not isPedInVehicle ( player ) then if ( getPlayerMoney ( player ) >= 4000 ) then setPedArmor(player,100) setElementHealth(player,100) takePlayerMoney(player,4000) setElementPosition(player, 321.32462, 1979.65381, 17.6406) setElementInterior(player, 0) end end end end addEventHandler("onMarkerHit", marker2, Manster,false) تقدر تختصر كل الشروط بشرط واحد .. local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == 'player' ) and not ( isPedInVehicle ( player ) ) and ( getPlayerMoney ( player ) >= 4000 ) then setPedArmor ( player, 100 ) setElementHealth ( player, 100 ) takePlayerMoney ( player, 4000 ) setElementPosition ( player, 321.32462, 1979.65381, 17.6406 ) setElementInterior ( player, 0 ) end end, false )
Stranger Posted June 2, 2013 Author Posted June 2, 2013 local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster( player ) if getElementType ( player ) == 'player' then if not isPedInVehicle ( player ) then if ( getPlayerMoney ( player ) >= 4000 ) then setPedArmor(player,100) setElementHealth(player,100) takePlayerMoney(player,4000) setElementPosition(player, 321.32462, 1979.65381, 17.6406) setElementInterior(player, 0) end end end end addEventHandler("onMarkerHit", marker2, Manster,false) مشكور
Stranger Posted June 2, 2013 Author Posted June 2, 2013 آعذرني مآ رديت عليكـ ,كنت نآيم ! .. عادي ماعليك!!
iPrestege Posted June 2, 2013 Posted June 2, 2013 local marker2 = createMarker(211.55113, 1918.80383, 16.640, "cylinder", 1.5, 245, 9, 10, 153) function Manster( player ) if getElementType ( player ) == 'player' then if not isPedInVehicle ( player ) then if ( getPlayerMoney ( player ) >= 4000 ) then setPedArmor(player,100) setElementHealth(player,100) takePlayerMoney(player,4000) setElementPosition(player, 321.32462, 1979.65381, 17.6406) setElementInterior(player, 0) end end end end addEventHandler("onMarkerHit", marker2, Manster,false) مشكور @ #|=x=|K!NG|=x=|# : كل وآحد ولة طريقتة بـ البرمجة # @ Manster : حياكـ الله ..
K1NG Posted June 3, 2013 Posted June 3, 2013 @ #|=x=|K!NG|=x=|# : كل وآحد ولة طريقتة بـ البرمجة # . ؟ عشان تختصر على نفسكـ أحسن ما تسوي شرط كل شوي and أخوي هذي لاتعتبر طريقة برمجة .. أجل ليه مسويين لكـ المتغير
iPrestege Posted June 3, 2013 Posted June 3, 2013 @ #|=x=|K!NG|=x=|# : كل وآحد ولة طريقتة بـ البرمجة # . ؟ عشان تختصر على نفسكـ أحسن ما تسوي شرط كل شوي and أخوي هذي لاتعتبر طريقة برمجة .. أجل ليه مسويين لكـ المتغير و الله هذي طريقتي مآنت ملزوم تعجب بها اذا بها شيء خطأ جب وآحدن يثبت لي انها خطأ ~
K1NG Posted June 3, 2013 Posted June 3, 2013 @ #|=x=|K!NG|=x=|# : كل وآحد ولة طريقتة بـ البرمجة # . ؟ عشان تختصر على نفسكـ أحسن ما تسوي شرط كل شوي and أخوي هذي لاتعتبر طريقة برمجة .. أجل ليه مسويين لكـ المتغير و الله هذي طريقتي مآنت ملزوم تعجب بها اذا بها شيء خطأ جب وآحدن يثبت لي انها خطأ ~ السالفة مهي سالفة خطأ لكن من باب الإختصار ؛ أنت مشكلتكـ تزعل يوم أحد يصحح لكـ ، أنا ابيكـ تتعلم من أخطائكـ لا أكثر ولا أقل .. -- طريقتك if ( ... ) then if ( ... ) then if ( ... ) then -- Any thing .. end end end -- الطريقة إلي مفروض تستعملها if ( ... ) and ( ... ) and ( ... ) then -- Any thing .. end شايف كيف تختصر على نفسكـ ؟ ؛ تختصر 7 أسطر بـ 3 أسطر ..
iPrestege Posted June 3, 2013 Posted June 3, 2013 السالفة مهي سالفة خطأ لكن من باب الإختصار ؛ أنت مشكلتكـ تزعل يوم أحد يصحح لكـ ، أنا ابيكـ تتعلم من أخطائكـ لا أكثر ولا أقل .. -- طريقتك if ( ... ) then if ( ... ) then if ( ... ) then -- Any thing .. end end end -- الطريقة إلي مفروض تستعملها if ( ... ) and ( ... ) and ( ... ) then -- Any thing .. end شايف كيف تختصر على نفسكـ ؟ ؛ تختصر 7 أسطر بـ 3 أسطر .. مازعلت ابدا بس مافية اي خطأ بـ طريقتي ومآشوفها خطأ .. اذا انت تحب تختصر غيركـ مايحب هذي طريقتي عجبتكـ اهلاَ وسهلاَ ..
K1NG Posted June 3, 2013 Posted June 3, 2013 السالفة مهي سالفة خطأ لكن من باب الإختصار ؛ أنت مشكلتكـ تزعل يوم أحد يصحح لكـ ، أنا ابيكـ تتعلم من أخطائكـ لا أكثر ولا أقل .. -- طريقتك if ( ... ) then if ( ... ) then if ( ... ) then -- Any thing .. end end end -- الطريقة إلي مفروض تستعملها if ( ... ) and ( ... ) and ( ... ) then -- Any thing .. end شايف كيف تختصر على نفسكـ ؟ ؛ تختصر 7 أسطر بـ 3 أسطر .. مازعلت ابدا بس مافية اي خطأ بـ طريقتي ومآشوفها خطأ .. اذا انت تحب تختصر غيركـ مايحب هذي طريقتي عجبتكـ اهلاَ وسهلاَ .. أوكـ ، بس ماظن فيه إنسان بهالدنيا ما يحب يختصر على نفسه ؛ المهم قفل الموضوع مانبي نسوي سالفة ذذ
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