hassan.k.s.a Posted July 24, 2012 Share Posted July 24, 2012 بسم الله الرحمن الرحيم . . السلام عليكم ورحمة الله وبركاته . . . انا عندي اكواد الكنترول السواقه . . . --server side-- triggerClientEvent ( "setPedControl", getRootElement(), ped ) --client side-- addEvent( "setPedControl", true ) addEventHandler( "setPedControl", getRootElement(), function ( ped ) setPedControlState ( ped, "accelerate", true ) end ) طلبي صغير مررره اكواد فرامل وشكرا . . . Link to comment
TAPL Posted July 24, 2012 Share Posted July 24, 2012 https://wiki.multitheftauto.com/wiki/Control_names 'brake_reverse' Link to comment
hassan.k.s.a Posted July 24, 2012 Author Share Posted July 24, 2012 طيب لو كان ودي اخلي القياده بزر --client side-- addEventHandler ("onClientGUIClick", getRootElement(), function(button, state, absoluteX, absoluteY) if ( source == start ) then playSound("button.wav") function ( ped ) setPedControlState ( ped, "accelerate", true ) end end ) ابغى التصحيح لاهنتو -o_O- Link to comment
3NAD Posted July 24, 2012 Share Posted July 24, 2012 addEventHandler ("onClientGUIClick", getRootElement(), function(ped) if ( source == start ) then playSound("button.wav") setPedControlState ( ped, "accelerate", true ) end end ) لم اججرب الككود وإذا فيه أخطططآء تفضضل Link to comment
hassan.k.s.a Posted July 24, 2012 Author Share Posted July 24, 2012 انا ودي اخليها للاعب مو للبيد الوهمي . . فهل هاذي setPedControlState ( ped, "accelerate", true ) تصلح للاعب اذا ضغطها تسوق السياره تماتك او هاذا setPedControlState ( source, "accelerate", true ) انا جربت الثنين مانفع Link to comment
JR10 Posted July 24, 2012 Share Posted July 24, 2012 هذه للبيد فقط :استخدم لللاعب setControlState Link to comment
hassan.k.s.a Posted July 24, 2012 Author Share Posted July 24, 2012 هاذا للاعب setControlState ( "accelerate", true ) ؟ Link to comment
3NAD Posted July 24, 2012 Share Posted July 24, 2012 addCommandHandler("go", function(player) if isPedInVehicle ( player ) then setControlState ( player, "accelerate", true ) end end ) Link to comment
hassan.k.s.a Posted July 24, 2012 Author Share Posted July 24, 2012 مشكور وماقصرت لاكن لو زر؟ Link to comment
3NAD Posted July 24, 2012 Share Posted July 24, 2012 addEventHandler("onClientGUIClick", getRootElement(), function(player) if ( source == start ) and isPedInVehicle ( player ) then playSound("button.wav") setControlState ( player, "accelerate", true ) end end ) Link to comment
TAPL Posted July 24, 2012 Share Posted July 24, 2012 addEventHandler("onClientGUIClick", getRootElement(), function(player) if ( source == start ) and isPedInVehicle ( player ) then playSound("button.wav") setControlState ( player, "accelerate", true ) end end ) addEventHandler("onClientGUIClick", root, function() if (source == start) and isPedInVehicle(localPlayer) then playSound("button.wav") setControlState("accelerate", true) end end ) 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