haitham1 Posted March 16, 2014 Share Posted March 16, 2014 سلام عليكم ممكن كود يعطي سيارة واكون مشكور Link to comment
#Rmad~> Posted March 16, 2014 Share Posted March 16, 2014 (edited) "onClientGUIClick" addEventHandler createVehicle warpPedIntoVehicle triggerServerEvent getElementPosition isElement destroyElement vehicle Edited March 17, 2014 by Guest Link to comment
haitham1 Posted March 16, 2014 Author Share Posted March 16, 2014 ممكن تعطني الكود ويكون شغال Link to comment
EH10 Posted March 16, 2014 Share Posted March 16, 2014 (edited) جـرب * # Client Side addEventHandler("onClientGUIClick", Button, function () triggerServerEvent("onVehicleHit", localPlayer) end ) # Server Side local vehicle = {} addEvent("onVehicleHit", true) addEventHandler("onVehicleHit", root, function (player) if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end x, y, z = getElementPosition( source ) vehicle[source] = createVehicle( id, x, y, z ) warpPedIntoVehicle ( player، Vehicles ) end ) Edited March 16, 2014 by Guest Link to comment
!#NssoR_) Posted March 16, 2014 Share Posted March 16, 2014 (edited) جـرب *# Client Side addEventHandler("onClientGUIClick", Button, function () triggerServerEvent("onVehicleHit", localPlayer) end ) # Server Side local vehicle = {} addEvent("onVehicleHit", true) addEventHandler("onVehicleHit", root, function () if isElement ( vehicle[source] ) then destoryElement ( vehicle[source] ) end vehicle[source] = createVehicle( id, x, y, z ) warpPedIntoVehicle ( vehicle[source]، Vehicles ) x, y, z = getElementPosition( Vehicles ) end ) سطر 6 destoryElement > destroyElement سطر 8 عاكس الارقمنت warpPedIntoVehicle ( vehicle[source]، Vehicles ) خله كذا warpPedIntoVehicle ( Player , Vehicles ) وسطر 9 المفروض يكون فوق الكود هذا vehicle[source] = createVehicle( id, x, y, z ) ويكون كذا x, y, z = getElementPosition(source) Edited March 16, 2014 by Guest Link to comment
EH10 Posted March 16, 2014 Share Posted March 16, 2014 جـرب *# Client Side addEventHandler("onClientGUIClick", Button, function () triggerServerEvent("onVehicleHit", localPlayer) end ) # Server Side local vehicle = {} addEvent("onVehicleHit", true) addEventHandler("onVehicleHit", root, function () if isElement ( vehicle[source] ) then destoryElement ( vehicle[source] ) end vehicle[source] = createVehicle( id, x, y, z ) warpPedIntoVehicle ( vehicle[source]، Vehicles ) x, y, z = getElementPosition( Vehicles ) end ) سطر 6 destoryElement > destroyElement سطر 8 عاكس الارقمنت warpPedIntoVehicle ( vehicle[source]، Vehicles ) خله كذا warpPedIntoVehicle ( Player , Vehicles ) وسطر 9 المفروض يكون فوق الكود هذا vehicle[source] = createVehicle( id, x, y, z ) ويكون كذا x, y, z = getElementPosition(source) تم التعديل اسفين بس مستعجل بالكتابة Link to comment
!#NssoR_) Posted March 16, 2014 Share Posted March 16, 2014 جـرب *# Client Side addEventHandler("onClientGUIClick", Button, function () triggerServerEvent("onVehicleHit", localPlayer) end ) # Server Side local vehicle = {} addEvent("onVehicleHit", true) addEventHandler("onVehicleHit", root, function (player) if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end x, y, z = getElementPosition( source ) vehicle[source] = createVehicle( id, x, y, z ) warpPedIntoVehicle ( player، Vehicles ) end ) سطر 5 خلي الفنكشن فاضي - 1 2 - vehicle[source] غيرها لـ Vehicles و source الي player سطر 9 ولا شي معرف بل كود غير Link to comment
EH10 Posted March 16, 2014 Share Posted March 16, 2014 سطر 5 خلي الفنكشن فاضي - 1 2 - vehicle[source] غيرها لـ Vehicles و source الي player سطر 9 ولا شي معرف بل كود غير قصدك اخلية كذا warpPedIntoVehicle ( Player، vehicle[source] ) Link to comment
!#NssoR_) Posted March 16, 2014 Share Posted March 16, 2014 source الي player يب بس غير Link to comment
EH10 Posted March 16, 2014 Share Posted March 16, 2014 يـصـيـر كـذا * # Client Side addEventHandler("onClientGUIClick", Button, function () triggerServerEvent("onVehicleHit", localPlayer) end ) # Server Side local vehicle = {} addEvent("onVehicleHit", true) addEventHandler("onVehicleHit", root, function () if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end x, y, z = getElementPosition( source ) vehicle[source] = createVehicle( id, x, y, z ) warpPedIntoVehicle ( source، vehicle[source] ) end ) Link to comment
mouamle Posted March 17, 2014 Share Posted March 17, 2014 هيثم حبيبي هذا الكود الي ردته function onjoin () setElementData(source,"CanUseTheMarkeryesorNo",tostring("Yes")) end addEventHandler("onPlayerJoin",root,onjoin) marcker1ofGive = createMarker (x,y,z, "cylinder", 4.5, 0, 0, 255, 320 ) function MarkerHit( thePlayer ) permission = getElementData(thePlayer,"CanUseTheMarkeryesorNo") if permission == "Yes" then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) infurnuis = createVehicle ( 411, x, y, z ) warpPedIntoVehicle(thePlayer,infurnuis) setElementData(thePlayer,"CanUseTheMarkeryesorNo",tostring("No")) end end end addEventHandler( "onMarkerHit", marcker1ofGive, MarkerHit ) Link to comment
abu5lf Posted March 17, 2014 Share Posted March 17, 2014 هيثم حبيبي هذا الكود الي ردته function onjoin () setElementData(source,"CanUseTheMarkeryesorNo",tostring("Yes")) end addEventHandler("onPlayerJoin",root,onjoin) marcker1ofGive = createMarker (x,y,z, "cylinder", 4.5, 0, 0, 255, 320 ) function MarkerHit( thePlayer ) permission = getElementData(thePlayer,"CanUseTheMarkeryesorNo") if permission == "Yes" then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) infurnuis = createVehicle ( 411, x, y, z ) warpPedIntoVehicle(thePlayer,infurnuis) setElementData(thePlayer,"CanUseTheMarkeryesorNo",tostring("No")) end end end addEventHandler( "onMarkerHit", marcker1ofGive, MarkerHit ) الكود هذا لو تنفجر السيارة او تنحذف معد يقدر ياخذ وحدة ثانية ولازم يطلع ويدخل اذا شغلت المود عشان الداتا تجيه Link to comment
al-Kobra Posted March 17, 2014 Share Posted March 17, 2014 @max ur هذا warpPedIntoVehicle ( source، vehicle[source] ) end يصير كذا warpPedIntoVehicle ( source, vehicle[source] ) end "الفاصلة غلط" Link to comment
haitham1 Posted March 17, 2014 Author Share Posted March 17, 2014 الاحداثيات اخليها من الماب ايديتور ولا من اللعبة Link to comment
mouamle Posted March 17, 2014 Share Posted March 17, 2014 الاحداثيات اخليها من الماب ايديتور ولا من اللعبة ههههههههههههههههه هيثم هاي مشكلتك أنو أنت ما تعرف تجيب أحداثيات Link to comment
iPrestege Posted March 17, 2014 Share Posted March 17, 2014 My Resource? Vehicle Markers Creator viewtopic.php?f=108&t=54920 Link to comment
haitham1 Posted March 18, 2014 Author Share Posted March 18, 2014 My Resource? Vehicle Markers Creator viewtopic.php?f=108&t=54920 اي من الازرار اضغط وتضهر لي قائمة المود Link to comment
iPrestege Posted March 18, 2014 Share Posted March 18, 2014 My Resource? Vehicle Markers Creator viewtopic.php?f=108&t=54920 اي من الازرار اضغط وتضهر لي قائمة المود local Key = "o" 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