Jump to content

طلب كود ^^


Recommended Posts

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 

Link to comment
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
Link to comment

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

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 

Link to comment

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

Link to comment

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 

Link to comment

الكود سيرفر 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 
) 

Link to comment
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 

Link to comment
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
Link to comment
الكود سيرفر 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:

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

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

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

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

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

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

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

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