samosavo Posted September 6, 2016 Share Posted September 6, 2016 ازاى اخلى job خاصه ب عصابه معينه افراد العصابه بس الى يقدرون يستعملونها ؟ Link to comment
Abdul KariM Posted September 6, 2016 Share Posted September 6, 2016 استخدم getElementData Link to comment
samosavo Posted September 6, 2016 Author Share Posted September 6, 2016 1 minute ago, Abdul KariM said: استخدم getElementData انا مبرمج مبتدأ ف ياريت تقولى اضعها فين هنا function createJob ( name, x, y, z, rz ) if ( name == 'Terrorists' ) then create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } ) local p = createElement ( "GodmodePed" ) setElementData ( p, "Model", 109 ) setElementData ( p, "Position", { x, y, z, rz } ) createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 ) addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p ) if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 ) end triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' ) end end ) Link to comment
Abdul KariM Posted September 6, 2016 Share Posted September 6, 2016 تسوي الكود ذا كله ومنتب عارف تحط سطر واحد بس ؟ الله يالدنيا Link to comment
samosavo Posted September 6, 2016 Author Share Posted September 6, 2016 1 minute ago, Abdul KariM said: تسوي الكود ذا كله ومنتب عارف تحط سطر واحد بس ؟ الله يالدنيا مش انا لوحدى الى عامل انا مع مجموعه من الناس بس انا محتاج اعرف كيف اضع الكود دا بالله عليك Link to comment
Abdul KariM Posted September 6, 2016 Share Posted September 6, 2016 طيب خلاص خلي المجموعه الي معك تسويه Link to comment
samosavo Posted September 6, 2016 Author Share Posted September 6, 2016 Just now, Abdul KariM said: طيب خلاص خلي المجموعه الي معك تسويه بقولك بالله عليك خلاص شكرا لو مش عاوز تساعدنى عادى Link to comment
samosavo Posted September 6, 2016 Author Share Posted September 6, 2016 منتظر المساعد Link to comment
Abdul KariM Posted September 6, 2016 Share Posted September 6, 2016 (edited) لا تخاف هنا كلنا طبعة وحده الا اذا جا واحد يبي يتعلم فيك , هذا شي ثاني Edited September 6, 2016 by Abdul KariM Link to comment
samosavo Posted September 6, 2016 Author Share Posted September 6, 2016 Just now, Abdul KariM said: لا تخاف هنا كلنا طبعة وحده الا اذا جا واحد يبي يتعلم فيك , هذا شي ثاني انا مش فاهم انت قاصدك ايه ؟ انا عملت ايه Link to comment
samosavo Posted September 7, 2016 Author Share Posted September 7, 2016 24 minutes ago, Abdul KariM said: لا تخاف هنا كلنا طبعة وحده الا اذا جا واحد يبي يتعلم فيك , هذا شي ثاني مستنى الرد Link to comment
#Soking Posted September 7, 2016 Share Posted September 7, 2016 function createJob ( name, x, y, z, rz ) if ( name == 'Terrorists' ) and ( getElementData(Element, 'YouDataName') == false ) then create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } ) local p = createElement ( "GodmodePed" ) setElementData ( p, "Model", 109 ) setElementData ( p, "Position", { x, y, z, rz } ) createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 ) addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p ) if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 ) end triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' ) end end ) Link to comment
</Mr.Tn6eL> Posted September 7, 2016 Share Posted September 7, 2016 1 hour ago, #Soking said: function createJob ( name, x, y, z, rz ) if ( name == 'Terrorists' ) and ( getElementData(Element, 'YouDataName') == false ) then create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } ) local p = createElement ( "GodmodePed" ) setElementData ( p, "Model", 109 ) setElementData ( p, "Position", { x, y, z, rz } ) createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 ) addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p ) if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 ) end triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' ) end end ) لا غلط function createJob ( name, x, y, z, rz ) if ( name == 'Terrorists' ) then create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } ) local p = createElement ( "GodmodePed" ) setElementData ( p, "Model", 109 ) setElementData ( p, "Position", { x, y, z, rz } ) createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 ) addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p ) if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) and getElementData(p, "YourDataName") == "YourValueName" ) then if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 ) end triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' ) end end ) 1 Link to comment
samosavo Posted September 7, 2016 Author Share Posted September 7, 2016 7 hours ago, </Mr.Tn6eL> said: لا غلط function createJob ( name, x, y, z, rz ) if ( name == 'Terrorists' ) then create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } ) local p = createElement ( "GodmodePed" ) setElementData ( p, "Model", 109 ) setElementData ( p, "Position", { x, y, z, rz } ) createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 ) addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p ) if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) and getElementData(p, "YourDataName") == "YourValueName" ) then if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 ) end triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' ) end end ) شكرااااااااا و اطلب اى شيه تبيه 9 hours ago, #Soking said: function createJob ( name, x, y, z, rz ) if ( name == 'Terrorists' ) and ( getElementData(Element, 'YouDataName') == false ) then create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } ) local p = createElement ( "GodmodePed" ) setElementData ( p, "Model", 109 ) setElementData ( p, "Position", { x, y, z, rz } ) createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 ) addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p ) if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 ) end triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' ) end end ) شكرا للمحاوله بس خاطأه ان شاء الله المره الجايه تظبط معك Link to comment
#Al3aGraB<3 Posted September 7, 2016 Share Posted September 7, 2016 مب ضروري تزبط هو بس برمجه لك على السريع .. يعني مب 100% راح يزبط 1 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