RLP[Farouk] Posted October 7, 2012 Posted October 7, 2012 السلام عليكم بدي كود اضع اوجيكت على المركبة
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 (edited) AttachElements createVehicle CreateObject Edited October 7, 2012 by Guest http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 1مثال function v() if isPedInVehicle ( source ) then local x,y,z = getElementPosition (source) ob = createObject ( id, x, y, z )--add id the object Vehicle = getPedOccupiedVehicle(source) attachElements ( ob, Vehicle, 0, 0, -1 ) end end مثال2 function v() ob = createObject ( id, x, y, z ) local Vehicle = createVehicle ( 432, x, y, z + 5 ) attachElements ( ob, Vehicle, 0, 0, 5 ) end http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 ما شتغل لايكون نسخته ولصقته هذا مثال بس http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
abu5lf Posted October 7, 2012 Posted October 7, 2012 (edited) modelid = 980 addCommandHandler ( 'مركبة', function ( playerSource ) if isPedInVehicle ( playerSource ) then local object = createObject ( modelid, getElementPosition ( getPedOccupiedVehicle( playerSource ) ) ) attachElements ( object, getPedOccupiedVehicle ( playerSource ), 0, 0, 5 ) end end ) ماجربت وسويته على السريع Edited October 7, 2012 by Guest ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 جرب هذا شوف يطلع باب فوق السياره ولا لا function () if isPedInVehicle ( source ) then local x,y,z = getElementPosition (source) if Marker then end ob = createObject ( 2634, x, y, z ) Vehicle = getPedOccupiedVehicle(source) attachElements ( ob, Vehicle, 0, 0, 1 ) end end http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 ليه نجربه قبل لانحطه انت المحتاج ولا احنا وبعدين انت تبي تصنع سياره جديده وتدمج معها اوبجكت ولا تبي في نفس السيارات الي من الفري روم او الأدمنيه ؟ وضح شوي http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
abu5lf Posted October 7, 2012 Posted October 7, 2012 ما شتغلطيب جربوه قبل ما تحطوه /debugscript 3 والصق الاخطاء ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
TAPL Posted October 7, 2012 Posted October 7, 2012 -- Server Side -- addCommandHandler("att", function(player) local vehicle = getPedOccupiedVehicle(player) if (vehicle) then local x, y, z = getElementPosition(player) local object = createObject(2634, x, y, z) attachElements(object, vehicle, 0, 0, 2.5) end end)
RLP[Farouk] Posted October 7, 2012 Author Posted October 7, 2012 WARNING: Loading script failed: object-test\client.lua:1:''expected near '(' WARNING: Loading script failed: object-test\client.lua:1:''expected near '(' function () if isPedInVehicle ( source ) then local x,y,z = getElementPosition (source) if Marker then end ob = createObject ( 2634, x, y, z ) Vehicle = getPedOccupiedVehicle(source) attachElements ( ob, Vehicle, 0, 0, 1 ) end end
abu5lf Posted October 7, 2012 Posted October 7, 2012 الكود سيرفر u.u انسخ الكود كامل modelid = 980 addCommandHandler ( 'مركبة', function ( playerSource ) if isPedInVehicle ( playerSource ) then local object = createObject ( modelid, getElementPosition ( getPedOccupiedVehicle( playerSource ) ) ) attachElements ( object, getPedOccupiedVehicle ( playerSource ), 0, 0, 5 ) end end ) ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
Joker_Mta Posted October 7, 2012 Posted October 7, 2012 WARNING: Loading script failed: object-test\client.lua:1:''expected near '('WARNING: Loading script failed: object-test\client.lua:1:''expected near '(' function xxx() if isPedInVehicle ( source ) then local x,y,z = getElementPosition (source) if Marker then end ob = createObject ( 2634, x, y, z ) Vehicle = getPedOccupiedVehicle(source) attachElements ( ob, Vehicle, 0, 0, 1 ) end end function () if isPedInVehicle ( source ) then local x,y,z = getElementPosition (source) if Marker then end ob = createObject ( 2634, x, y, z ) Vehicle = getPedOccupiedVehicle(source) attachElements ( ob, Vehicle, 0, 0, 1 ) end end
abu5lf Posted October 7, 2012 Posted October 7, 2012 (edited) function () if isPedInVehicle ( source ) then local x,y,z = getElementPosition (source) if Marker then end ob = createObject ( 2634, x, y, z ) Vehicle = getPedOccupiedVehicle(source) attachElements ( ob, Vehicle, 0, 0, 1 ) end end هههههههههههههههههههههه Edited October 7, 2012 by Guest ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
TAPL Posted October 7, 2012 Posted October 7, 2012 هههههههههه وش تخربطون وين أسم الفنكشن source من وين جا Marker من وين جا
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 بالنسبه للفنكشن نسيت اضيف الاسم له وثانيآً Marker خطأ مطبعي http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
RLP[Farouk] Posted October 7, 2012 Author Posted October 7, 2012 الكود سيرفر u.uانسخ الكود كامل modelid = 980 addCommandHandler ( 'مركبة', function ( playerSource ) if isPedInVehicle ( playerSource ) then local object = createObject ( modelid, getElementPosition ( getPedOccupiedVehicle( playerSource ) ) ) attachElements ( object, getPedOccupiedVehicle ( playerSource ), 0, 0, 5 ) end end ) THANKSSSSSSSSS! الكود الوحيد الي اشتغل
TAPL Posted October 7, 2012 Posted October 7, 2012 بالنسبه للفنكشن نسيت اضيف الاسم له وثانيآً Marker خطأ مطبعي أها من وين جا source طيب
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 كمآن خطأ مطبعي لأني كنت ضايف ألأكواد بأيفنت بأيفنت قصدي رابطها يعني من كلينت لسيرفر http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
abu5lf Posted October 7, 2012 Posted October 7, 2012 حسن لاعد تساعد احد اذا منت فاهم اصلا وفيه غيرك يغطي حاول تتعلم قبل تساعد الناس ╔═╦╦╦╗╔╦═╦═╦═╦═╦╦╦╦╦╦╦═╦╦╦╦╗ ║║║║║╠╝║║╚╣║║║║║║║║║║║║║║║║║ ║║║║║╚╦╦═╦╦╦╦╣║║║║║║║║║║║║║║ ║║║║╠═╣╠╝╔══╝║║║║║╟╢║║║║║╟╢║ ╚╩══╩══╩═╩═══╩╩══╩╩═╩╩╩═╩╩═╝ «سبحانك اللهم وبحمدك أشهد أن لا إله إلا أنت أستغفرك وأتوب إليك» M7mdAl7arthy : لتواصل سكايب
hassan.k.s.a Posted October 7, 2012 Posted October 7, 2012 حسن لاعد تساعد احد اذا منت فاهم اصلاوفيه غيرك يغطي حاول تعلم قبل تساعد الناس خلك صاكت بس http://www.h7server.allalla.com/ -- http://qs-server.tk/ -- http://tfbgaming.net
TAPL Posted October 7, 2012 Posted October 7, 2012 كمآن خطأ مطبعي لأني كنت ضايف ألأكواد بأيفنتبأيفنت قصدي رابطها يعني من كلينت لسيرفر الكود أساساً مافيه كلينت ولا أفنت و الموضوع مافيه كلينت ولا أفنت -_-" كذا ما ينفع إذا أنت مو فاهم كودك و تبي تساعد غيرك
Recommended Posts