Jump to content

طلب اكواد


Recommended Posts

Posted

warpPedIntoVehicle 

يمديكـ الحين تسويها كلنت [ = مآبه مشكلة ومآزيد على كلام تابل .. :roll:

@ سمويل : | = اقرآ زين الويكي

  

Posted

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

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

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.

Posted

شوف انا مسوي سيارة بهذي الطريقة

    vehicle = createVehicle(579, 0, 0, 0) 

ابغي اسحب السيارة لعند الاعب واخليه داخلها

Posted

-- # 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 
) 

  

Posted

debugscript 3 ?

+ إذا مافي شي اطرح الميتا

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
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 
) 

Posted

كود برستيج صحيح مافيه شي, لازم ما تكون في سيارة لمن تكتب الأمر

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
طيب الكود حق برستيج معدل عليه وهذا هو فوق

وش الخطاء فيه ؟

وش يطلع لك ب الدي بق سكربت ؟

Posted

سوي الجدول خارج الوظيفة

+ تأكد من السيريال تمام

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
     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 
    ) 

Posted
     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 
    ) 

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

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

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

-- # 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 
) 

  

Posted
     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 
    ) 

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

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

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

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

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

وتحياتي...

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