mohssan123 Posted April 21, 2013 Share Posted April 21, 2013 ويش الخطأ بلكود انا ما اشوف خطأ ان اذا الاعب لمس الماركر يطلع له كلام في الجات بس الكلام ما يطلع addEventHandler ( "onMarkerHit", marker, function ( player ) if ( getElementType ( player ) == "player" ) then outputChatBox("mohssan", source, 255, 0, 0, true) end end ) Link to comment
iPrestege Posted April 21, 2013 Share Posted April 21, 2013 outputChatBox("mohssan", source, 255, 0, 0, true) source للايفنت هو الماركر يصير كذا : outputChatBox("mohssan", player, 255, 0, 0, true) Link to comment
mohssan123 Posted April 21, 2013 Author Share Posted April 21, 2013 outputChatBox("mohssan", source, 255, 0, 0, true) source للايفنت هو الماركر يصير كذا : outputChatBox("mohssan", player, 255, 0, 0, true) مشكور بس مدام الموضوع عن الماركر بغيت شلون احذف الماركر يعني مو بس يختفي لكن بعدين اقدر ارد اطلعه Link to comment
mohssan123 Posted April 21, 2013 Author Share Posted April 21, 2013 setElementVisibleTo تصحيح ابغي اذا لمس الماركر ينحدف addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == "player" ) then setElementVisibleTo ( marker2,false ) end end ) Link to comment
iPrestege Posted April 21, 2013 Share Posted April 21, 2013 addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == "player" ) then destroyElement(marker2) marker2 = nil end end ) Link to comment
mohssan123 Posted April 21, 2013 Author Share Posted April 21, 2013 addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == "player" ) then destroyElement(marker2) marker2 = nil end end ) اقدر بعدين اطلعها ؟ Link to comment
iPrestege Posted April 21, 2013 Share Posted April 21, 2013 لا هذا يحذفة نهائي مثل ماقلت Link to comment
mohssan123 Posted April 21, 2013 Author Share Posted April 21, 2013 لا هذا يحذفة نهائي مثل ماقلت بل انا ابغي بعدين اسوي فكتيشن يطلعه Link to comment
iPrestege Posted April 21, 2013 Share Posted April 21, 2013 لم يتم التجربة : addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == "player" ) then setElementVisibleTo ( marker2,getRootElement(),false ) end end ) Link to comment
PaiN^ Posted April 21, 2013 Share Posted April 21, 2013 marker2 = nil , destroyElement بدل setElementAlpha , setElementVisibleTo إستخدم Link to comment
mohssan123 Posted April 21, 2013 Author Share Posted April 21, 2013 لم يتم التجربة : addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == "player" ) then setElementVisibleTo ( marker2,getRootElement(),false ) end end ) يختفي الماركر لكن اذا اروح ليه و هو مختفي تتنفذ الاوامر الي فيه Link to comment
iPrestege Posted April 21, 2013 Share Posted April 21, 2013 اكيد لازم تسويها تقدر تسوي كذا addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == "player" ) then destroyElement(marker2) marker2 = nil end end ) وتسوي وظيفة ثانية تسويه if isElement(marker2) then destroyElement(marker2) marker2 = nil end marker2 = createMarker(..) Link to comment
===|OSAMA|=== Posted April 21, 2013 Share Posted April 21, 2013 -- لما تبي تخفيه removeEventHandler setElementVisibleTo -- لما تبي تظهره addEventHandler setElementVisibleTo Link to comment
mohssan123 Posted April 21, 2013 Author Share Posted April 21, 2013 اكيد لازم تسويها تقدر تسوي كذا addEventHandler ( "onMarkerHit", marker2, function ( player ) if ( getElementType ( player ) == "player" ) then destroyElement(marker2) marker2 = nil end end ) وتسوي وظيفة ثانية تسويه if isElement(marker2) then destroyElement(marker2) marker2 = nil end marker2 = createMarker(..) تسلم برستيج تعبتك وياي 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