Jump to content

طلب اكواد


Recommended Posts

في مشكلة لو خليتهم مع بعض

مكتوب بالويكي

Attention: Do not use this function to spawn a ped/player. It will cause problems with other functions like warpPedIntoVehicle.

Use spawnPlayer and createPed instead.

Link to comment

-- # Server Side : 
  
local vehicle = createVehicle ( 579,0,0,0 ) 
  
addCommandHandler('warp', 
    function ( player ) 
        if isElement ( vehicle ) and not isPedInVehicle ( player ) then 
            local x,y,z = getElementPosition ( player ) 
            setElementPosition ( vehicle,x,y+5,z ) 
            warpPedIntoVehicle ( player,vehicle,0 ) 
    end 
end 
) 
Link to comment
vehicle = createVehicle(579, 5, 0, 0) 
  
addCommandHandler('sw', 
    function ( player ) 
        if isElement ( vehicle ) and not isPedInVehicle ( player ) then 
            local g_Serials = { 
            ['serile'] = true, 
            } 
            local x,y,z = getElementPosition ( player ) 
            if g_Serials [ getPlayerSerial ( player ) ] then 
                setElementPosition ( vehicle,x,y,z ) 
                warpPedIntoVehicle ( player,vehicle,0 ) 
            end 
        end 
    end 
) 

Link to comment
     vehTapl = {} 
    addEventHandler("onPlayerLogin", root, 
    function () 
    local x,y,z = getElementPosition(source) 
    vehTapl[source] = createVehicle(555, x,y,z) 
    setVehicleColor(vehTapl[source], 255, 255, 255) 
    warpPedIntoVehicle(source, vehTapl[source]) 
    end 
    ) 
     
    addEventHandler("onPlayerLogout", root, 
    function () 
    if vehTapl[source] and isElement( vehTapl[source] ) then  
    destroyElement( vehTapl[source] )  
    vehTapl[source] = nil  
    end 
    end 
    ) 

Link to comment
     vehTapl = {} 
    addEventHandler("onPlayerLogin", root, 
    function () 
    local x,y,z = getElementPosition(source) 
    vehTapl[source] = createVehicle(555, x,y,z) 
    setVehicleColor(vehTapl[source], 255, 255, 255) 
    warpPedIntoVehicle(source, vehTapl[source]) 
    end 
    ) 
     
    addEventHandler("onPlayerLogout", root, 
    function () 
    if vehTapl[source] and isElement( vehTapl[source] ) then  
    destroyElement( vehTapl[source] )  
    vehTapl[source] = nil  
    end 
    end 
    ) 

كودك ماله علاقة بطلبه

+ أتوقع انك ناسخه من موضوع آخر

Link to comment

-- # Server Side ! 
  
g_Vehicle = createVehicle ( 579,0,0,0 ) 
g_Serials = {  
    ['PlayerSerial'] = true, 
} 
  
  
addCommandHandler('sw', 
    function ( g_Player ) 
        if isElement ( g_Vehicle ) and not isPedInVehicle ( g_Player ) then 
        if g_Serials [ getPlayerSerial ( g_Player ) ] then 
            local x,y,z = getElementPosition ( g_Player ) 
                setElementPosition ( g_Vehicle,x,y,z ) 
                warpPedIntoVehicle ( g_Player,g_Vehicle,0 ) 
            end 
        end 
    end 
) 
Link to comment
     vehTapl = {} 
    addEventHandler("onPlayerLogin", root, 
    function () 
    local x,y,z = getElementPosition(source) 
    vehTapl[source] = createVehicle(555, x,y,z) 
    setVehicleColor(vehTapl[source], 255, 255, 255) 
    warpPedIntoVehicle(source, vehTapl[source]) 
    end 
    ) 
     
    addEventHandler("onPlayerLogout", root, 
    function () 
    if vehTapl[source] and isElement( vehTapl[source] ) then  
    destroyElement( vehTapl[source] )  
    vehTapl[source] = nil  
    end 
    end 
    ) 

كودك ماله علاقة بطلبه

+ أتوقع انك ناسخه من موضوع آخر

لا يا باين هادى مسويه قبل شوي

وبعدين الموضوع حقه يتكلم عن انه يبغى يصير للاعب وارب داخل السيارة

والكود حقي لمى يسجل دخول يدخله في سيارة ولمى يسجل خروج تنسحب منه السيارة

وتحياتي...

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...