Jump to content

طـلب


Recommended Posts

طيب ليه ماتسوي السيارة والعلامة خارج الأفنت

والزر يسحبها

شوف هاذه مثل انا مسويه

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
  • Replies 77
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

ايه بس كفوو ي الشنب هذا الي طلبته :mrgreen:

يععطيك العاااافيه وماااتقصر وجزاااك الله خير

بس انا الي للحين ماني فاهمه الـ return

يعني بـ اي وضع نحطها او ليش حطيته ي ليت تفهمني :roll:

Link to comment

نقدر نختصر كذا :

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...