#MostafaSaadi Posted February 20, 2015 Share Posted February 20, 2015 سلام عليكم بدي فنكشات لو كتبت في اف 8 " mark " يعمل ماركر في مكان معين Link to comment
TAPL Posted February 20, 2015 Share Posted February 20, 2015 addCommandHandler createMarker Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 واشلون اخليه بمكان معين Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 لا ما زبط Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 ما زبط الكود لأسف Link to comment
TAPL Posted February 20, 2015 Share Posted February 20, 2015 حط الكود مو تقول ما زبط انا وش يعرفني وش مسوي انت Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 طيب خلاص عطني كود من صنعك احسن Link to comment
TAPL Posted February 20, 2015 Share Posted February 20, 2015 https://wiki.multitheftauto.com/wiki/Scripting_Introduction Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 لحين اعطيك كود Link to comment
Professional Posted February 20, 2015 Share Posted February 20, 2015 addCommandHandler ( "mark", CreateMarker ) function CreateMarker CreateMarker (x,y,z) end Link to comment
nxFairlywell Posted February 20, 2015 Share Posted February 20, 2015 addCommandHandler("mark", function ( player, cmd ) if cmd then local marker local x = math.random( 1.4, 3.7 ) local y = math.random( 4.2, 6.3 ) local z = math.random( 1.3, 1.8 ) if not ( isElement( marker ) ) then local marker = createMarker( x, y, z, "cylinder", 2, 255, 0, 0, root ) else return outputChatBox("Could not create marker", player) end end end ) Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 addCommandHandler ( "mark", CreateMarker ) function CreateMarker CreateMarker (x,y,z) end ما اشتغل اخي Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 addCommandHandler("mark", function ( player, cmd ) if cmd then local marker local x = math.random( 1.4, 3.7 ) local y = math.random( 4.2, 6.3 ) local z = math.random( 1.3, 1.8 ) if not ( isElement( marker ) ) then local marker = createMarker( x, y, z, "cylinder", 2, 255, 0, 0, root ) else return outputChatBox("Could not create marker", player) end end end ) انت احداثيات معينه لانه ما يشتغل بس تجي رساله Link to comment
The Don Posted February 20, 2015 Share Posted February 20, 2015 addEventHandler('onPlayerCommand',root, function ( doncommand ) if doncommand == 'marker' then local x, y, z = getElementPosition ( source ) -- يمكن ما تحتاجه اذا تبيه لـ مكان معين local marker = createMarker ( x,y,z, 'cylinder', 1, 255, 255, 255, 150 ) outputChatBox ( 'Successfully create the marker!',source, 255,255,0) end end ) Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 addEventHandler('onPlayerCommand',root, function ( doncommand ) if doncommand == 'marker' then local x, y, z = getElementPosition ( source ) -- يمكن ما تحتاجه اذا تبيه لـ مكان معين local marker = createMarker ( x,y,z, 'cylinder', 1, 255, 255, 255, 150 ) outputChatBox ( 'Successfully create the marker!',source, 255,255,0) end end ) كفو اشتغل بس يروح لوحده بعد كم ثانيه Link to comment
The Don Posted February 20, 2015 Share Posted February 20, 2015 addEventHandler('onPlayerCommand',root, function ( doncommand ) if doncommand == 'marker' then local x, y, z = getElementPosition ( source ) -- يمكن ما تحتاجه اذا تبيه لـ مكان معين local marker = createMarker ( x,y,z, 'cylinder', 1, 255, 255, 255, 150 ) outputChatBox ( 'Successfully create the marker!',source, 255,255,0) end end ) كفو اشتغل بس يروح لوحده بعد كم ثانيه كيف يروح لـ " وحده " ؟ Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 ما ادري كيف بس اكم ثانيه ويختفي Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 يروح لوحده = قصدي يختفي يعني Link to comment
#Mr.alkmasha Posted February 20, 2015 Share Posted February 20, 2015 يروح لوحده = قصدي يختفي يعني ماشاء الله لسا قبل يومين تقول ل شوكي مود السجن الي سويته سهل و ل احمد فيف مود البيوت سهل Link to comment
#MostafaSaadi Posted February 20, 2015 Author Share Posted February 20, 2015 نتمنى مساعده شباب 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