charaf_gamer Posted July 19, 2014 Share Posted July 19, 2014 انا الحين مسوي سيارات القروب بس اي واحد يقدر يركبهم ابي كود جعل هده السيارات مخصصة ل للقروب فقط معاي كود بس ما يبي يضبط ما بعرف ليش local groupName = '[ARMY]' local activeVehicles = {} local playersVehicles = {} local occupiedVehicles = {} addEventHandler("onVehicleStartEnter", root, function(player, seat) for i,v in pairs(activeVehicles) do if v == source then if getElementData(player, "[ARMY]") ~= groupName then outputChatBox("This vehicle is only for "..groupName.." group!", player, 255, 0, 0) cancelEvent() else if seat == 0 and occupiedVehicles[i] then outputChatBox("You cannot take this vehicle as someone in it already!", player, 255, 0, 0) cancelEvent() end end break end end end ) هدا هو ارجو الافادة بكود جديد او تصحيح ادا ما في Link to comment
Simba Posted July 19, 2014 Share Posted July 19, 2014 بسطر 11 عندك حطا استبدلها بذي اذا كنت تستعمل مود القروبات حقت العقرب if getElementData(player, "Group") ~= groupName then اما لو كانت مود القروبات حق احمد فيف استخدم if getElementData(player, "gang") ~= groupName then Link to comment
charaf_gamer Posted July 19, 2014 Author Share Posted July 19, 2014 ما ضبطت ممكن كود كامل مو الي معي Link to comment
charaf_gamer Posted July 19, 2014 Author Share Posted July 19, 2014 خلص تم حل المشكلة الي ساعدني كيمو عن طرق سكايب Link to comment
Simba Posted July 19, 2014 Share Posted July 19, 2014 خلص تم حل المشكلة الي ساعدني كيمو عن طرق سكايب الله يعطيه العافيه 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