3ssol Posted July 8, 2013 Share Posted July 8, 2013 السلام عليكم شباب ابي لما اكتب كلمه كل الي يكونون معي بل سياره ينزلون حاولت حااولت حاااولت وماضبطت وحذفت الكود كله واتمني تساعدوني Link to comment
#DRAGON!FIRE Posted July 8, 2013 Share Posted July 8, 2013 # اخوي ما فهمت ممكن توضضح * Link to comment
3ssol Posted July 8, 2013 Author Share Posted July 8, 2013 يعني لو انت راكب معي مثلا اكتب كلمه مثلا نقول out تنزل من السياره وتطلع فوقها فهمت ؟ Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 getVehicleOccupants getVehicleMaxPassengers getPedOccupiedVehicle addCommandHandler removePedFromVehicle Link to comment
3ssol Posted July 8, 2013 Author Share Posted July 8, 2013 هذا الكود وش فايدته ؟ getVehicleOccupants Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 هذا الكود وش فايدته ؟getVehicleOccupants + يجيب الراكبين فقط مايجيب السائق ذذ Link to comment
3ssol Posted July 8, 2013 Author Share Posted July 8, 2013 addCommandHandler("out", function (thePlayer) local theVehicle = getPedOccupiedVehicle ( thePlayer ) local pepol = getVehicleOccupants(thePlayer) if theVehicle then removePedFromVehicle ( pepol ) end end) ماضبط :\ Link to comment
iPrestege Posted July 8, 2013 Share 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 ) لم يتم التجربة .. الى الان Link to comment
3ssol Posted July 8, 2013 Author Share Posted July 8, 2013 ضبط بس انه يطردني حتي انا معاهم انا ابيه ينزلهم وانا لا Link to comment
iPrestege Posted July 8, 2013 Share 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 ) لم يتم التجربة Link to comment
iPrestege Posted July 8, 2013 Share Posted July 8, 2013 يجيب من بداية 0 يعني الراكب 0 ذذ الى اخر شيء الماكس الفل يعني $ Link to comment
iPrestege Posted July 9, 2013 Share Posted July 9, 2013 كان مداك تخلي اللوب من 1 فهم الكود وخلصنا 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