likemike12 Posted May 9, 2016 Share Posted May 9, 2016 السلام عليكم الكود الي قبل شوي ساعدتوني فيه محتاج الحين اتعلم كيف اخيه يمشي مشيه ذكيه ذا الكود server function mike() ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) setTimer(setElementHealth,50,0,ped1,200) dd = createVehicle (411,getElementPosition(ped1)) warpPedIntoVehicle(ped1,dd) setTimer (ss, 1000, 1) triggerClientEvent("Pedd", getRootElement(), thePlayer, ped1) end addCommandHandler("make", mike) client addEvent ("Pedd",true) addEventHandler("Pedd",root, function() setPedControlState(source, "accelerate", true) setPedControlState(source, "forwards", true) end ) محتاج اتعلم كيف اخليه يمشي لقدام شوي وبعدها يوقف Link to comment
s7BaT Posted May 9, 2016 Share Posted May 9, 2016 جرب هذا الكود كامل كلينت function mike() ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) setTimer(setElementHealth,50,0,ped1,200) dd = createVehicle (411,getElementPosition(ped1)) warpPedIntoVehicle(ped1,dd) setPedControlState(ped1, "accelerate", true) setTimer (ss, 3000, 1) end addCommandHandler("make", mike) function ss() setPedControlState(ped1, "accelerate", false) setPedControlState(ped1, "brake_reverse ", true) 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