فاّرس Posted March 29, 2013 Share Posted March 29, 2013 (edited) السلام عليكم ورحمه الله وبركاته ابي حركات للبيد ,, مثلا عندنا ماركر في مكان معين, ابي اذا راح للماركر يلقى بيد ابي احدد حركاته , مثلا ابي معه سلاح ويقتلني اذا لمست الماركر, + مثلا ابي بس يلحقني لين اروح لماركر ثاني ويختفي,, Edited April 1, 2013 by Guest Link to comment
TAPL Posted March 29, 2013 Share Posted March 29, 2013 Event: "onMarkerHit" OR "onClientMarkerHit" createMarker createPed giveWeapon -- Server Side only !!! setPedAnimation setPedAimTarget setPedControlState -- Client Side only !!! getElementPosition getDistanceBetweenPoints2D destroyElement https://wiki.multitheftauto.com/wiki/FindRotation Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 Event: "onMarkerHit" OR "onClientMarkerHit" createMarker createPed giveWeapon -- Server Side only !!! setPedAnimation setPedAimTarget setPedControlState -- Client Side only !!! getElementPosition getDistanceBetweenPoints2D destroyElement https://wiki.multitheftauto.com/wiki/FindRotation عطني مثال على : setPedControlState + getDistanceBetweenPoints2D Edit : + FindRotation Link to comment
#Al-Ha[J]aRii Posted March 29, 2013 Share Posted March 29, 2013 Event: "onMarkerHit" OR "onClientMarkerHit" createMarker createPed giveWeapon -- Server Side only !!! setPedAnimation setPedAimTarget setPedControlState -- Client Side only !!! getElementPosition getDistanceBetweenPoints2D destroyElement https://wiki.multitheftauto.com/wiki/FindRotation عطني مثال على : setPedControlState + getDistanceBetweenPoints2D Edit : + FindRotation setPedControlState ( ped ,اسم الكونترول ,true ) تقدر تاخدها من https://wiki.multitheftauto.com/wiki/Control_names getDistanceBetweenPoints2D ( x, y, x2, y2) x y احداثيات النقطة الاولى x2 y2 احداثيات النقطة الثانيه findRotation(x1 , y1 , x2 , y2) x1 + y1 احداثيات البدايه x2 + y 2 نقطة الهدف Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 Event: "onMarkerHit" OR "onClientMarkerHit" createMarker createPed giveWeapon -- Server Side only !!! setPedAnimation setPedAimTarget setPedControlState -- Client Side only !!! getElementPosition getDistanceBetweenPoints2D destroyElement https://wiki.multitheftauto.com/wiki/FindRotation عطني مثال على : setPedControlState + getDistanceBetweenPoints2D Edit : + FindRotation setPedControlState ( ped ,اسم الكونترول ,true ) تقدر تاخدها من https://wiki.multitheftauto.com/wiki/Control_names getDistanceBetweenPoints2D ( x, y, x2, y2) x y احداثيات النقطة الاولى x2 y2 احداثيات النقطة الثانيه findRotation(x1 , y1 , x2 , y2) x1 + y1 احداثيات البدايه x2 + y 2 نقطة الهدف Syntax bool setPedControlState ( ped thePed, string control, bool state ) ؟؟ Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 يطلع ترليون بيد Server side Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder", 1, R, G, B, Alpha ) function MarkerHit(player) if Marker then createPed ( 120, 1797.19958, 851.72058, 10.67187 ) end end addEventHandler("onMarkerHit",Marker,MarkerHit) Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 يطلع ترليون بيد Server side Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder", 1, R, G, B, Alpha ) function MarkerHit(player) if Marker then createPed ( 120, 1797.19958, 851.72058, 10.67187 ) end end addEventHandler("onMarkerHit",Marker,MarkerHit) لانك تسوي البيد يوم يلمس الماركر .__. سوية برآ Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 يطلع ترليون بيد Server side Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder", 1, R, G, B, Alpha ) function MarkerHit(player) if Marker then createPed ( 120, 1797.19958, 851.72058, 10.67187 ) end end addEventHandler("onMarkerHit",Marker,MarkerHit) لانك تسوي البيد يوم يلمس الماركر .__. سوية برآ انا ابيه اذا لمس الماركر يطلع له البيد Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then if isElement (Ped) then return false end Ped = createPed ( 120, 1797.19958, 851.72058, 10.67187 ); end end addEventHandler("onMarkerHit",Marker,MarkerHit); Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then if isElement (Ped) then return false end Ped = createPed ( 120, 1797.19958, 851.72058, 10.67187 ); end end addEventHandler("onMarkerHit",Marker,MarkerHit); كودي طلع صح , بس المشكله كانت اني حاطم لما تلمس الماركر يطلع البيد في نص الماركر ويتكرر, المهم ضبط كودي ,, بس آبي يطلع أكثر من بيد , ؟createPed اكرر Edit : + آبي fadeCamera ما ضبطت سيرفر,, Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 لية تكرر اصلا هو كذا بيكرر ( : لانة كل ماتلمس الماركر بيسوي البيد ( : وافكرك تقول تبية يطلع مرهـ وحدهـ وكذا fadeCamera : fadeCamera(source,false); Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 لية تكرر اصلا هو كذا بيكرر ( : لانة كل ماتلمس الماركر بيسوي البيد ( : وافكرك تقول تبية يطلع مرهـ وحدهـ وكذا fadeCamera : fadeCamera(source,false); ابي يوم يلمس الماركر الشاشه تجي سودا لمده دقيقه Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then createPed ( 120, 1797.19958, 851.72058, 10.67187 ); fadeCamera(player,false); setTimer(fadeCamera,60000,1,player,true); end end addEventHandler("onMarkerHit",Marker,MarkerHit); يصير كذا ^ والافضل تتحقق من الاعب مثل مآسويت , Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 ؟ giveWeapon اقدر استخدمها مع الماركر اذا آيه يصير كذآ ؟ local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then createPed ( 120, 1797.49914, 841.18896, 10.64881 ); fadeCamera(player,false); setTimer(fadeCamera,60000,1,player,true); giveWeapon ( source, 31, 200 ) end end addEventHandler("onMarkerHit",Marker,MarkerHit); Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" ) then createPed ( 120, 1797.49914, 841.18896, 10.64881 ); fadeCamera(player,false); setTimer(fadeCamera,60000,1,player,true); giveWeapon ( player, 31, 200 ); end end addEventHandler("onMarkerHit",Marker,MarkerHit); Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 Edit : خلاص ابي اذا لمس الماركر على طول ياخذ سلاح + الحركات,, local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then Ped = createPed ( 120, 1797.49914, 841.18896, 10.64881 ); setPedRotation(Ped, 315); setPedAnimation( Ped, "ped", "VEND_Drink2_P"); fadeCamera(player,false); setTimer(fadeCamera,10000,1,player,true); giveWeapon ( player, 31, 200 ); end end addEventHandler("onMarkerHit",Marker,MarkerHit); ما ضبطت,, Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then Ped = createPed ( 120, 1797.49914, 841.18896, 10.64881 ); giveWeapon ( Ped, 31, 200 ); setPedRotation(Ped, 315); setPedAnimation( Ped, "VENDING", "VEND_Drink2_P"); fadeCamera(player,false); setTimer(fadeCamera,10000,1,player,true); end end addEventHandler("onMarkerHit",Marker,MarkerHit); Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then Ped = createPed ( 120, 1797.49914, 841.18896, 10.64881 ); giveWeapon ( Ped, 31, 200 ); setPedRotation(Ped, 315); setPedAnimation( Ped, "VENDING", "VEND_Drink2_P"); fadeCamera(player,false); setTimer(fadeCamera,10000,1,player,true); end end addEventHandler("onMarkerHit",Marker,MarkerHit); طيب كيف اخلي البيد يضربني بالسلاح Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then Ped = createPed ( 120, 1797.49914, 841.18896, 10.64881 ); giveWeapon ( Ped, 31, 200 ); setPedRotation(Ped, 315); setPedAnimation( Ped, "VENDING", "VEND_Drink2_P"); fadeCamera(player,false); setTimer(fadeCamera,10000,1,player,true); end end addEventHandler("onMarkerHit",Marker,MarkerHit); طيب كيف اخلي البيد يضربني بالسلاح سوي ترايقر كلنت وشوف وظائف تابل في الصفحة الاولى : triggerClientEvent Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 local Marker = createMarker ( 1797.19958, 851.72058, 10.67187, "cylinder",1, R, G, B, Alpha ); function MarkerHit(player) if ( getElementType(player) == "player" and source == Marker ) then Ped = createPed ( 120, 1797.49914, 841.18896, 10.64881 ); giveWeapon ( Ped, 31, 200 ); setPedRotation(Ped, 315); setPedAnimation( Ped, "VENDING", "VEND_Drink2_P"); fadeCamera(player,false); setTimer(fadeCamera,10000,1,player,true); end end addEventHandler("onMarkerHit",Marker,MarkerHit); طيب كيف اخلي البيد يضربني بالسلاح سوي ترايقر كلنت وشوف وظائف تابل في الصفحة الاولى : triggerClientEvent بس هو حاط وظائف كثير,, ابي الي احتاجها ,, Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 setPedControlState -- Client > تخلي البيد يمشي تقدر ذذ -- اشياء كثير افتح وشوف الويكي setPedAimTarget -- تخلي البيد يطالع بـ مكان معين # Link to comment
فاّرس Posted March 29, 2013 Author Share Posted March 29, 2013 setPedControlState -- Client > تخلي البيد يمشي تقدر ذذ -- اشياء كثير افتح وشوف الويكي setPedAimTarget -- تخلي البيد يطالع بـ مكان معين # setPedControlState ما لها مثال ... Link to comment
MSHOOSH Posted March 29, 2013 Share Posted March 29, 2013 setPedControlState -- Client > تخلي البيد يمشي تقدر ذذ -- اشياء كثير افتح وشوف الويكي setPedAimTarget -- تخلي البيد يطالع بـ مكان معين # setPedControlState ما لها مثال ... setPedControlState ( ped, "F2", true ) ped --- ما يحتاج شرح F2 -- الزر true -- اذا ضغط الزر or false -- بعد الضغط على الزر Link to comment
iPrestege Posted March 29, 2013 Share Posted March 29, 2013 addEvent("setPedControlState",true) addEventHandler("setPedControlState",getRootElement(), function ( Ped ) if not isElement( Ped ) then return outputChatBox(" ( Client ) : Error Can't Find The Ped !",255,0,0,true); end setPedControlState(Ped,"fire",true); outputChatBox("* Successful Set The Control State ( :",0,255,0,true); end ); سوي ترايقر يوم يلمس الماركر : triggerClientEvent("setPedControlState",player,Ped); 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