EdeN Posted July 23, 2016 Share Posted July 23, 2016 (edited) السلام عليكم ورحمة الله وبركاته وش احتاج اذا كنت معطي شخص سياره و بعطيه سياره ثانيه اذا عطيته السياره الثانيه تنسحب اولى Edited July 23, 2016 by Guest Link to comment
!#NssoR_) Posted July 23, 2016 Share Posted July 23, 2016 (edited) Table = {} function givePlayerVehicle(thePlayer,ID) if getElementType (thePlayer) == "player" then if type(ID) == "number" then if thePlayer and ID then if ( Table[thePlayer] ) then destroyElement(Table[thePlayer]) end local x,y,z = getElementPosition(thePlayer) Table[thePlayer] = createVehicle(tonumber(ID),x,y,z) warpPedIntoVehicle(thePlayer,Table[thePlayer]) else error("There is Argument minus") end else error("Bad Argument 2 must number") end else error("Bad Argument 1 must player") end end Edited July 23, 2016 by Guest Link to comment
shwaeki Posted July 23, 2016 Share Posted July 23, 2016 @NssoR ما في كود يتححق و و يحذف السيارة السابقة ---------------------- @EdeN table or setElementData isElement -- بتتحقق من جدول الاعب او من الداتا destroyElement createVehicle warpPedIntoVehicle Link to comment
!#NssoR_) Posted July 23, 2016 Share Posted July 23, 2016 @NssoRما في كود يتححق و و يحذف السيارة السابقة ---------------------- @EdeN table or setElementData isElement -- بتتحقق من جدول الاعب او من الداتا destroyElement createVehicle warpPedIntoVehicle نسخة الكود ومانتبهتله حسبته فيه حذف السيارة ع العموم يعطيك العافية ع التنبيه 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