MiLaNo-ميلآنو Posted September 12, 2016 Share Posted September 12, 2016 السسلآم عليكم ورحمه الله وبركاته يا شباب انا ابي احط مثلا ب ماب باصات بس ابي الباصات م تتحرك .. فريز ابيكم تساعدوني : ) Link to comment
MiLaNo-ميلآنو Posted September 12, 2016 Author Share Posted September 12, 2016 معليش بتعبك معاي ممكن تكمل ؟ لان انا مبتدء بالبرمجه ^^ Link to comment
a7zan Posted September 12, 2016 Share Posted September 12, 2016 Bus = createVehicle(id,x,y,z) setElementFrozen(Bus,true) id = اي دي الباص x,y,z = الاحداثيات 1 Link to comment
MiLaNo-ميلآنو Posted September 12, 2016 Author Share Posted September 12, 2016 شكرا <3 Link to comment
SycroX Posted September 12, 2016 Share Posted September 12, 2016 تقدر تستعمل الجداول احسن شي عشان تسوي عدد علي مزاجك + تسوي له فريز و الأماكن بدل ما تسوي صف طويل مثال : local Buses = { {ID = 437, PosX = 0, PosY = 0, PosZ = 0, Freeze = true}, {ID = 431, PosX = 10, PosY = 0, PosZ = 0, Freeze = true} } addEventHandler("onResourceStart", resourceRoot, function() for _,v in ipairs(Buses) do local Bus = createVehicle(v["ID"], v["PosX"], v["PosY"], v["PosZ"]) setElementFrozen(Bus, v["Freeze"]) end end) 1 Link to comment
MiLaNo-ميلآنو Posted September 13, 2016 Author Share Posted September 13, 2016 شكرا لك 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