faisl2002 Posted March 19, 2012 Share Posted March 19, 2012 (edited) السلام عليكم وين احط الوظيفة واذا ماعليكم ضرر اشروحلي الكود theMarker = createMarker( -687.9, 937.8, 13.6, "cylinder", 2.0, 255, 0, 0, 80 ) -- create a red cylinder marker inside Toreno's house function checkOnMarker ( thePlayer ) local isIn = isPlayerInMarker( thePlayer, theMarker ) -- use the function to check if player is in the marker if isIn then outputChatBox( "You are on the marker.", thePlayer ) else outputChatBox( "You are not on the marker.", thePlayer ) end end addCommandHandler ( "amionmarker", checkOnMarker ) Edited March 20, 2012 by Guest Link to comment
faisl2002 Posted March 19, 2012 Author Share Posted March 19, 2012 انا ابغى اغير الوظيفة الي تسير اذا دخل العلامة ووين الوظيفة المرفقة بالكود ؟؟ Link to comment
JR10 Posted March 20, 2012 Share Posted March 20, 2012 الكود لا يوجد به وظيفة عندما يدخل الماركر Link to comment
faisl2002 Posted March 20, 2012 Author Share Posted March 20, 2012 طيب تقدر تعدلي عليه اذا دخل الماركر يقوم بوظيفة محددة Link to comment
faisl2002 Posted March 20, 2012 Author Share Posted March 20, 2012 مثلا اعطاء سيارة او اعطاء سلاح Link to comment
JR10 Posted March 20, 2012 Share Posted March 20, 2012 theMarker = createMarker( -687.9, 937.8, 13.6, "cylinder", 2.0, 255, 0, 0, 80 ) -- create a red cylinder marker inside Toreno's house addEventHandler("onMarkerHit", theMarker, function(hElement) --insert functions end ) --insert functions ضع كل الوظائف مكان Link to comment
faisl2002 Posted March 20, 2012 Author Share Posted March 20, 2012 مشكوووووور يااخوي والله تعبتك سامحني بس بصراحة انتم ابداع !!ماشاء الله Link to comment
faisl2002 Posted March 20, 2012 Author Share Posted March 20, 2012 لوسمحت في خطأ بالكود انت عطني مثال حط وظيفة مثلا setPedVoice(getLocalPlayer(), "PED_TYPE_GANG", "VOICE_GNG_MACCER") Link to comment
TAPL Posted March 20, 2012 Share Posted March 20, 2012 لوسمحت في خطأ بالكودانت عطني مثال حط وظيفة مثلا setPedVoice(getLocalPlayer(), "PED_TYPE_GANG", "VOICE_GNG_MACCER") Client side ^ theMarker = createMarker( -687.9, 937.8, 13.6, "cylinder", 2.0, 255, 0, 0, 80 ) -- create a red cylinder marker inside Toreno's house addEventHandler("onClientMarkerHit", theMarker, function(hitElement) setPedVoice(hitElement, "PED_TYPE_GANG", "VOICE_GNG_MACCER") end ) Link to comment
faisl2002 Posted March 20, 2012 Author Share Posted March 20, 2012 تتتتتابل معقولة شرف كبير لي انك ترد على الموضوع ومشكور على الكود 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