кιηg-αвα∂у Posted March 7, 2013 Share Posted March 7, 2013 طيب ليه ماتسوي السيارة والعلامة خارج الأفنت والزر يسحبها شوف هاذه مثل انا مسويه Car = createVehicle ( 562, 1844.6, 1215.9, 10.8, 0, 0, 90 ) function get( playerSource ) if ( getPlayerSerial(playerSource) == theSerial ) then local x,y,z = getElementPosition(playerSource) setElementPosition(Car, x, y, z) warpPedIntoVehicle(playerSource, Car) outputChatBox("We have successfully Get a car", playerSource, 0, 255, 0, false ) end end addCommandHandler ( "gc", get ) Link to comment
Rm-Dj Posted March 7, 2013 Author Share Posted March 7, 2013 ايه بس كفوو ي الشنب هذا الي طلبته يععطيك العاااافيه وماااتقصر وجزاااك الله خير بس انا الي للحين ماني فاهمه الـ return يعني بـ اي وضع نحطها او ليش حطيته ي ليت تفهمني Link to comment
iPrestege Posted March 7, 2013 Share Posted March 7, 2013 نقدر نختصر كذا : car = {} Blip = {} addEvent("car", true) addEventHandler("car", root, function () if car[source] and isElement(car[source]) then x, y, z = getElementPosition(source) setElementPosition(car[source], x, y, z) return end x, y, z = getElementPosition(source) car[source] = createVehicle(416, x, y, z) end ) addEventHandler("onVehicleEnter",resourceRoot, function (thePlayer) if not Blip[thePlayer] and car[thePlayer] then Blip[thePlayer] = createBlipAttachedTo( car[thePlayer], 27) end end ) addEventHandler("onVehicleExit",resourceRoot, function (thePlayer) if Blip[thePlayer] and isElement(Blip[thePlayer]) then destroyElement (Blip[thePlayer]) end end ) بالنسبة لـ return ترجع للفنكشن حياك الله يالغالي #, 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