3ssol Posted July 8, 2013 Posted July 8, 2013 السلام عليكم شباب ابي لما اكتب كلمه كل الي يكونون معي بل سياره ينزلون حاولت حااولت حاااولت وماضبطت وحذفت الكود كله واتمني تساعدوني
3ssol Posted July 8, 2013 Author Posted July 8, 2013 يعني لو انت راكب معي مثلا اكتب كلمه مثلا نقول out تنزل من السياره وتطلع فوقها فهمت ؟
iPrestege Posted July 8, 2013 Posted July 8, 2013 getVehicleOccupants getVehicleMaxPassengers getPedOccupiedVehicle addCommandHandler removePedFromVehicle
iPrestege Posted July 8, 2013 Posted July 8, 2013 هذا الكود وش فايدته ؟getVehicleOccupants + يجيب الراكبين فقط مايجيب السائق ذذ
3ssol Posted July 8, 2013 Author Posted July 8, 2013 addCommandHandler("out", function (thePlayer) local theVehicle = getPedOccupiedVehicle ( thePlayer ) local pepol = getVehicleOccupants(thePlayer) if theVehicle then removePedFromVehicle ( pepol ) end end) ماضبط :\
iPrestege Posted July 8, 2013 Posted July 8, 2013 -- Server Side addCommandHandler('out', function ( thePlayer ) local vehicle = getPedOccupiedVehicle ( thePlayer ) if vehicle then for i = 0,getVehicleMaxPassengers ( vehicle ) do local getPlayer = getVehicleOccupant( vehicle, i ) if getPlayer then removePedFromVehicle( getPlayer ) end end end end ) لم يتم التجربة .. الى الان
3ssol Posted July 8, 2013 Author Posted July 8, 2013 ضبط بس انه يطردني حتي انا معاهم انا ابيه ينزلهم وانا لا
iPrestege Posted July 8, 2013 Posted July 8, 2013 -- Server Side addCommandHandler('out', function ( thePlayer ) local vehicle = getPedOccupiedVehicle ( thePlayer ) if vehicle then for i = 0,getVehicleMaxPassengers ( vehicle ) do local getPlayer = getVehicleOccupant( vehicle, i ) if thePlayer and getPlayer and getPlayer ~= thePlayer then removePedFromVehicle( getPlayer ) end end end end ) لم يتم التجربة
iPrestege Posted July 8, 2013 Posted July 8, 2013 يجيب من بداية 0 يعني الراكب 0 ذذ الى اخر شيء الماكس الفل يعني $
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