Professional Posted February 11, 2015 Share Posted February 11, 2015 السلام عليكم كودي هو بس اكبس كبسه تطلع السياره لابيها شوفوه function( player ) bindKey("x", "down", x, y, z = getElementPosition(source) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(source, theVehicle) end end بس ما يعمل ليه؟ Link to comment
iMr.TZ[W]ER Posted February 11, 2015 Share Posted February 11, 2015 ترتيب الجمل خطأ يا ريت لو تشوف ارقمنتات ال bindkey صح Link to comment
Professional Posted February 11, 2015 Author Share Posted February 11, 2015 طيب ممكن ترتبهم اطلب طلب صغير ما اطلب تعملي الكود كله Link to comment
nxFairlywell Posted February 11, 2015 Share Posted February 11, 2015 جرب ... bindKey(source, "x", "down", function( player ) x, y, z = getElementPosition(source) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(source, theVehicle) end ) الكود سيرفر . Link to comment
TAPL Posted February 11, 2015 Share Posted February 11, 2015 شي طبيعي ما يشتغل سورس مو معرف و بلاير غير مستخدم Link to comment
Professional Posted February 11, 2015 Author Share Posted February 11, 2015 طيب عرفلي اياه هل كود ما يجي قد 0.1 من الكودات الي تعملها يا تابل بس اعملي اياه انا عامله بس حطلي السورس ولبلاير مستخدمه في الفنكش Link to comment
TAPL Posted February 11, 2015 Share Posted February 11, 2015 addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do bindKey(player, "x", "down", bKey) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "x", "down", bKey) end) function bKey(player) local x, y, z = getElementPosition(player) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(player, theVehicle) end الكود سيرفر لا تخبصه كلينت ._. Link to comment
Professional Posted February 11, 2015 Author Share Posted February 11, 2015 طيب اقدر احط ان السياره تظل نسبه اصلاحها 1000 ؟ وشكرا لك تابل حبيبي Link to comment
™!>VàLéNTiNô<!™ Posted February 11, 2015 Share Posted February 11, 2015 [lua] addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do bindKey(player, "x", "down", bKey) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "x", "down", bKey) end) function bKey(player) local x, y, z = getElementPosition(player) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(player, theVehicle) end addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do bindKey(player, "x", "down", bKey) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "x", "down", bKey) end) function bKey(player) local x, y, z = getElementPosition(player) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(player, theVehicle) addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do bindKey(player, "x", "down", bKey) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "x", "down", bKey) end) function bKey(player) local x, y, z = getElementPosition(player) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(player, theVehicle) setVehicleDamageProof(newvehicle, true) end[/lua] Link to comment
#MFGR7OM Posted February 11, 2015 Share Posted February 11, 2015 addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do bindKey(player, "x", "down", bKey) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "x", "down", bKey) end) function bKey(player) local x, y, z = getElementPosition(player) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(player, theVehicle) end addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do bindKey(player, "x", "down", bKey) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "x", "down", bKey) end) function bKey(player) local x, y, z = getElementPosition(player) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(player, theVehicle) addEventHandler("onResourceStart", resourceRoot, function() for i, player in ipairs(getElementsByType("player")) do bindKey(player, "x", "down", bKey) end end) addEventHandler("onPlayerJoin", root, function() bindKey(source, "x", "down", bKey) end) function bKey(player) local x, y, z = getElementPosition(player) local theVehicle = createVehicle(518, x, y, z) warpPedIntoVehicle(player, theVehicle) setVehicleDamageProof(newvehicle, true) end استخدم [lua] 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