Jump to content

طلب كود ^^


Recommended Posts

Posted

1مثال

function v() 
if isPedInVehicle ( source ) then 
local x,y,z = getElementPosition (source) 
ob = createObject ( id, x, y, z )--add id the object 
Vehicle = getPedOccupiedVehicle(source) 
attachElements ( ob, Vehicle, 0, 0, -1 ) 
end 
end 

مثال2

function v() 
ob = createObject ( id, x, y, z ) 
local Vehicle = createVehicle ( 432, x, y, z + 5 ) 
attachElements ( ob, Vehicle, 0, 0, 5 ) 
end 

Posted (edited)
modelid = 980 
  
addCommandHandler ( 
    'مركبة', 
    function ( playerSource ) 
        if isPedInVehicle ( playerSource ) then 
            local object = createObject ( modelid, getElementPosition ( getPedOccupiedVehicle( playerSource ) ) ) 
            attachElements ( object, getPedOccupiedVehicle ( playerSource ), 0, 0, 5 ) 
        end 
    end 
) 

ماجربت وسويته على السريع

Edited by Guest
Posted

جرب هذا شوف يطلع باب فوق السياره ولا لا

function () 
if isPedInVehicle ( source ) then 
local x,y,z = getElementPosition (source) 
    if Marker then 
    end 
 ob = createObject ( 2634, x, y, z ) 
    Vehicle = getPedOccupiedVehicle(source) 
    attachElements ( ob, Vehicle, 0, 0, 1 ) 
    end 
    end 

Posted

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

او الأدمنيه ؟

وضح شوي

Posted

-- Server Side --

addCommandHandler("att", 
function(player) 
     local vehicle = getPedOccupiedVehicle(player) 
     if (vehicle) then 
          local x, y, z = getElementPosition(player) 
          local object = createObject(2634, x, y, z) 
          attachElements(object, vehicle, 0, 0, 2.5) 
     end 
end) 

Posted

WARNING: Loading script failed: object-test\client.lua:1:''expected near '('

WARNING: Loading script failed: object-test\client.lua:1:''expected near '('

function () 
if isPedInVehicle ( source ) then 
local x,y,z = getElementPosition (source) 
    if Marker then 
    end 
 ob = createObject ( 2634, x, y, z ) 
    Vehicle = getPedOccupiedVehicle(source) 
    attachElements ( ob, Vehicle, 0, 0, 1 ) 
    end 
    end 

Posted

الكود سيرفر u.u

انسخ الكود كامل

modelid = 980 
  
addCommandHandler ( 
    'مركبة', 
    function ( playerSource ) 
        if isPedInVehicle ( playerSource ) then 
            local object = createObject ( modelid, getElementPosition ( getPedOccupiedVehicle( playerSource ) ) ) 
            attachElements ( object, getPedOccupiedVehicle ( playerSource ), 0, 0, 5 ) 
        end 
    end 
) 

Posted
WARNING: Loading script failed: object-test\client.lua:1:''expected near '('

WARNING: Loading script failed: object-test\client.lua:1:''expected near '('

function xxx() 
if isPedInVehicle ( source ) then 
local x,y,z = getElementPosition (source) 
    if Marker then 
    end 
 ob = createObject ( 2634, x, y, z ) 
    Vehicle = getPedOccupiedVehicle(source) 
    attachElements ( ob, Vehicle, 0, 0, 1 ) 
    end 
    end 

function () 
if isPedInVehicle ( source ) then 
local x,y,z = getElementPosition (source) 
    if Marker then 
    end 
 ob = createObject ( 2634, x, y, z ) 
    Vehicle = getPedOccupiedVehicle(source) 
    attachElements ( ob, Vehicle, 0, 0, 1 ) 
    end 
    end 

Posted (edited)
function () 
if isPedInVehicle ( source ) then 
local x,y,z = getElementPosition (source) 
    if Marker then 
    end 
 ob = createObject ( 2634, x, y, z ) 
    Vehicle = getPedOccupiedVehicle(source) 
    attachElements ( ob, Vehicle, 0, 0, 1 ) 
    end 
    end 

هههههههههههههههههههههه

Edited by Guest
Posted

هههههههههه

وش تخربطون

وين أسم الفنكشن

source من وين جا

Marker من وين جا

Posted
الكود سيرفر u.u

انسخ الكود كامل

modelid = 980 
  
addCommandHandler ( 
    'مركبة', 
    function ( playerSource ) 
        if isPedInVehicle ( playerSource ) then 
            local object = createObject ( modelid, getElementPosition ( getPedOccupiedVehicle( playerSource ) ) ) 
            attachElements ( object, getPedOccupiedVehicle ( playerSource ), 0, 0, 5 ) 
        end 
    end 
) 

THANKSSSSSSSSS! :fadein:

الكود الوحيد الي اشتغل

Posted
بالنسبه للفنكشن نسيت اضيف الاسم له

وثانيآً

Marker

خطأ مطبعي

أها

من وين جا source طيب

Posted

حسن لاعد تساعد احد اذا منت فاهم اصلا

وفيه غيرك يغطي

حاول تتعلم قبل تساعد الناس

Posted
كمآن خطأ مطبعي لأني كنت ضايف ألأكواد بأيفنت

بأيفنت قصدي رابطها يعني من كلينت لسيرفر

الكود أساساً مافيه كلينت ولا أفنت

و الموضوع مافيه كلينت ولا أفنت

-_-" كذا ما ينفع إذا أنت مو فاهم كودك و تبي تساعد غيرك

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...