likemike12 Posted April 21, 2016 Share Posted April 21, 2016 السلام عليكم ممكن اي حد يصلحلي الكود ذا bindKey("x","down", function() nn = createVehicle (411,getElementPosition(source)) warpPedIntoVehicle(source,nn) end end end ) Link to comment
3SM Posted April 21, 2016 Share Posted April 21, 2016 (edited) bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) Edited April 21, 2016 by Guest Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end end end ) ERROR: Loading script failed: fff\Server.lua:7: ')' expected (to close '(' at line 1) near 'end' Link to comment
3SM Posted April 21, 2016 Share Posted April 21, 2016 bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) Link to comment
Ahmed Ly Posted April 21, 2016 Share Posted April 21, 2016 function Key1() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end bindKey("x","down",Key1) Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 function Key1() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end bindKey("x","down",Key1) WARNING: fff\Server.lua:6: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x'] Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) WARNING: fff\Server.lua:6: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x'] Link to comment
Ahmed Ly Posted April 21, 2016 Share Posted April 21, 2016 function Key1() local x,y,z = getElementPosition(source) local nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end bindKey("F1","down",Key1) Link to comment
iMr.WiFi..! Posted April 21, 2016 Share Posted April 21, 2016 حطه في الكلينت ي عبقري @ Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 function Key1() local x,y,z = getElementPosition(source) local nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end bindKey("F1","down",Key1) WARNING: fff\Server.lua:6: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x'] Link to comment
3SM Posted April 21, 2016 Share Posted April 21, 2016 bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) حطو بالكلنت دد Link to comment
Ahmed Ly Posted April 21, 2016 Share Posted April 21, 2016 function Key1() local x,y,z = getElementPosition(source) local nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end bindKey("F1","down",Key1) WARNING: fff\Server.lua:6: Bad argument @ 'bindKey' [Expected player at argument 1, got string 'x'] حطه في كلنت و بدل source بــ localPlayer Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 حطه في الكلينت ي عبقري @ طيب كيف اصير انزل سيارات الحين صح لازم يكون كود السياره في سيرفر ؟ Link to comment
Ahmed Ly Posted April 21, 2016 Share Posted April 21, 2016 حطه في الكلينت ي عبقري @ طيب كيف اصير انزل سيارات الحين صح لازم يكون كود السياره في سيرفر ؟ لا Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 (edited) ياخي مشكله بتنزيل السياره اضن لازم كود تنزيل السياره يكون في سيرفر Edited April 21, 2016 by Guest Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 ياخي في مشكله بالانتقال للسياره ومشكله برسبنة السياره Link to comment
iMr.WiFi..! Posted April 21, 2016 Share Posted April 21, 2016 يا اخوان احمد ليبيا وعسم ياخي الاكواد غلط غلط كان لازم من الاول احطه بكلانييت وخلااص خلااص شكراً على كل حال شرايك تجرب الكود ذذ ؟ bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) وحطه في الكلينت ولا تسوي دافور انه لازم سيرفر Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 يا اخوان احمد ليبيا وعسم ياخي الاكواد غلط غلط كان لازم من الاول احطه بكلانييت وخلااص خلااص شكراً على كل حال شرايك تجرب الكود ذذ ؟ bindKey("x","down", function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) وحطه في الكلينت ولا تسوي دافور انه لازم سيرفر اخي لازمني كود لتنزيل السياره في سيرفر لازم اسوي triggerServerEvent Link to comment
iMr.SFA7 Posted April 21, 2016 Share Posted April 21, 2016 -- Client Side bindKey("x","down", function() local x,y,z = getElementPosition(localPlayer) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(localPlayer,nn) end ) وملاحظـة: بالكلنت السيارة وهمية والركوب بالسيارة وهمي Link to comment
likemike12 Posted April 21, 2016 Author Share Posted April 21, 2016 (edited) client bindKey("x","down", function() triggerServerEvent("Mico",localPlayer) end ) server addEvent ("Mico",true) addEventHandler("Mico",root, function() local x,y,z = getElementPosition(source) nn = createVehicle (411,x,y,z) warpPedIntoVehicle(source,nn) end ) ياخي سويته لوحدي خلاص شكراً على كل حال Edited April 21, 2016 by Guest Link to comment
iMr.WiFi..! Posted April 21, 2016 Share Posted April 21, 2016 يفضل تقول سويته ببعض المساعدة !, Link to comment
#Soking Posted April 21, 2016 Share Posted April 21, 2016 Veh = { } bindKey("x","down", function ( ) if ( Veh[source] ) then destroyElement(Veh[source]) end local xPosition , yPosition , zPosition = getElementPosition ( source ) Veh[source] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) warpPedIntoVehicle(source,Veh[source]) end ) Link to comment
iMr.SFA7 Posted April 21, 2016 Share Posted April 21, 2016 Veh = { } bindKey("x","down", function ( ) if ( Veh[source] ) then destroyElement(Veh[source]) end local xPosition , yPosition , zPosition = getElementPosition ( source ) Veh[source] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) warpPedIntoVehicle(source,Veh[source]) end ) السورس غـير مـعـرف Link to comment
#Soking Posted April 21, 2016 Share Posted April 21, 2016 Veh = { } bindKey("x","down", function ( ) if ( Veh[client] ) then destroyElement(Veh[client]) end local xPosition , yPosition , zPosition = getElementPosition ( client ) Veh[client] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) warpPedIntoVehicle(client,Veh[client]) end ) function Destory( ) if Vehcile[client] then destroyElement(Vehcile[client]) end end addEventHandler("onPlayerWasted",getRootElement( ), Destory ) addEventHandler("onPlayerQuit",getRootElement( ), Destory ) addEventHandler("onVehicleExplode",getRootElement( ), Destory ) 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