MrCor Posted November 16, 2012 Share Posted November 16, 2012 بسم الله الرحمن الرحيم اليوم سويت كود بس طلع غلط ما يشتغل و حاولت حل شي و هذا الكود شوفوه marker1 = createMarker(1544.7, -1721.4, 13.55, 'cylinder', 5, 255, 0, 0, 150) Ped1 = createPed ( 280, 1544.7, -1721.4, 13.55 ) attachElements ( marker1, Ped1, 0, 0, -1 ) function MarkerHit( hitElement, matchingDimension ) local elementType = getElementType( hitElement ) if isPedInVehicle ( thePlayer ) then if getPlayerTeam ( thePlayer ) == getTeamFromName ( "police" ) then setPedAnimation( ped1, "ped", "CopTraf_Come") end end addEventHandler( "onMarkerHit", marker1, MarkerHit ) عمل الكود : بيد أذا أحد تقرب منه بسياره و شرطي يسوي أنميشن Link to comment
Mr-Kartha Posted November 16, 2012 Share Posted November 16, 2012 تبيه اذا احد قرب للماركر يعطيك ساره ولا وش Link to comment
MrCor Posted November 16, 2012 Author Share Posted November 16, 2012 تبيه اذا احد قرب للماركر يعطيك ساره ولا وش أنت شوف الكود وبتفهم ! أنا أبيه اذا أحد قرب من البيد و كان عنده سياره و من تيم معين يسوي البيد أنميشن Link to comment
MrCor Posted November 16, 2012 Author Share Posted November 16, 2012 شباب أحد يسوي ليي كود الخروج من الماركر حق نفس الكود Link to comment
MrCor Posted November 17, 2012 Author Share Posted November 17, 2012 marker1 = createMarker ( 1544.7, -1721.4, 13.55, 'cylinder', 5, 255, 0, 0, 150 ) Ped1 = createPed ( 280, 1544.7, -1721.4, 13.55 ) attachElements ( marker1, Ped1, 0, 0, -1 ) function MarkerHit ( hitElement, matchingDimension ) if ( getElementType ( hitElement ) == "player" and isPedInVehicle ( hitElement ) ) then if ( getPlayerTeam ( hitElement ) == getTeamFromName ( "police" ) ) then setPedAnimation ( ped1, "ped", "CopTraf_Come" ) end end end addEventHandler ( "onMarkerHit", marker1, MarkerHit ) المطلوب الآن معرفة الخطأ لأن البيد لا يظهر Link to comment
Bssol Posted November 17, 2012 Share Posted November 17, 2012 local x,y,z = 1544.7,-1721.4,13.55 marker1 = createMarker ( x, y, z, 'cylinder', 5, 255, 0, 0, 150 ) Ped1 = createPed ( 280, x, y, z ) 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