فاّرس Posted July 4, 2013 Share Posted July 4, 2013 بما إني معطيه الكود صح ليه تجي ترد وتقول هذا صح , كلها الاثنين صح وكأنك طرحت كود جديد , خلاص عطيته الكود صح ليه تبي تعطيه مره ثانيه ؟ الله لا يبلانا بس Link to comment
xxsamixx Posted July 4, 2013 Author Share Posted July 4, 2013 الله يعطيكم العافيه اخيرا اشتغل Link to comment
MSHOOSH Posted July 4, 2013 Share Posted July 4, 2013 بما إني معطيه الكود صح ليه تجي ترد وتقول هذا صح , كلها الاثنين صح وكأنك طرحت كود جديد , خلاص عطيته الكود صح ليه تبي تعطيه مره ثانيه ؟ الله لا يبلانا بس هيا طيرلك Link to comment
xxsamixx Posted July 5, 2013 Author Share Posted July 5, 2013 ابي اعرف الخطاء هنا local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(3437, 5412,793,126, 0, 0, 0) local omg1017 = createObject(3437, 5412, 793, 126, 0, 0, 0) addEventHandler("onMarkerHit",marker, if getElementType(player) == 'player' then end function omgMoveomg1017(point) if point == 1 then moveObject(omg1017, 5000, 5412, 793, 162.40542602539, 0, 0, 0) setTimer(omgMoveomg1017, 5000, 1, 2) elseif point == 2 then moveObject(omg1017, 5000, 5413.34765625, 793, 173.93621826172, 0, 13.333312988281, 0) setTimer(omgMoveomg1017, 5000, 1, 3) elseif point == 3 then end end) Link to comment
PaiN^ Posted July 5, 2013 Share Posted July 5, 2013 - فنكشن الحدث جاي بعد تحقق - الفنكشن المفروض يكون خارج الحدث, مو داخله عالعموم صلحته لكـ : local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(3437, 5412,793,126, 0, 0, 0) local omg1017 = createObject(3437, 5412, 793, 126, 0, 0, 0) local points = { } function omgMoveomg1017( point ) if point == 1 then moveObject( omg1017, 5000, 5412, 793, 162.40542602539, 0, 0, 0 ) setTimer( omgMoveomg1017, 5000, 1, 2 ) elseif point == 2 then moveObject( omg1017, 5000, 5413.34765625, 793, 173.93621826172, 0, 13.333312988281, 0 ) setTimer( omgMoveomg1017, 5000, 1, 3 ) elseif point == 3 then setTimer( omgMoveomg1017, 5000, 1, 1 ) end end addEventHandler( "onMarkerHit", marker, function( player ) if getElementType(player) == "player" then if points[player] then if points[player] >= 3 then points[player] = 0 end points[player] = points[player] + 1 else points[player] = 1 end omgMoveomg1017( points[player] ) end end ) Link to comment
xxsamixx Posted July 5, 2013 Author Share Posted July 5, 2013 - فنكشن الحدث جاي بعد تحقق- الفنكشن المفروض يكون خارج الحدث, مو داخله عالعموم صلحته لكـ : local marker = createMarker(5411,738,138, "corona", 3, 255, 0, 0, 255) local move = createObject(3437, 5412,793,126, 0, 0, 0) local omg1017 = createObject(3437, 5412, 793, 126, 0, 0, 0) local points = { } function omgMoveomg1017( point ) if point == 1 then moveObject( omg1017, 5000, 5412, 793, 162.40542602539, 0, 0, 0 ) setTimer( omgMoveomg1017, 5000, 1, 2 ) elseif point == 2 then moveObject( omg1017, 5000, 5413.34765625, 793, 173.93621826172, 0, 13.333312988281, 0 ) setTimer( omgMoveomg1017, 5000, 1, 3 ) elseif point == 3 then setTimer( omgMoveomg1017, 5000, 1, 1 ) end end addEventHandler( "onMarkerHit", marker, function( player ) if getElementType(player) == "player" then if points[player] then if points[player] >= 3 then points[player] = 0 end points[player] = points[player] + 1 else points[player] = 1 end omgMoveomg1017( points[player] ) 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