Jump to content

Argument 2


Recommended Posts

Posted

السلآمم عليكمم

الحين وش الخطأ بالأرققمنت الثآني

addEventHandler("onVehicleStartExit", Vehicle, 
function () 
cancelEvent() 
end 
) 

آنآ آبي اللآعب لو حآول ينزل من السيآرةة يلي مسويهآ

مآ يققدر

وذآ الكود مآ يأثر ع جميع الاعبين

يعني فققط الاعب يأثر عليه !

آدري آن الففنكشن سيرففر

بس السيآرةة

مسويهآ بالسيرففر

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

warpPedIntoVehicle 

!

  • Replies 84
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted

server

addEventHandler("onVehicleStartExit",getRootElement(), 
function () 
    if ( source == Vehicle ) then 
    cancelEvent() 
    end 
end 
) 
  

وسوية جدول تفادياَ للمشاكل !

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Posted

ثآنكسس الإثنين

كودكـ ي برستيج مآ إششتغل

بس حقق سعد إشتغل !

ممكن ممثآل ع الجدول ذآ ؟

Posted
ثآنكسس الإثنين

كودكـ ي برستيج مآ إششتغل

بس حقق سعد إشتغل !

ممكن ممثآل ع الجدول ذآ ؟

اي كود مسحتة شفت رد سعد ذذ لا صح حقي :lol: ذذ

ورني كودكـ اللي تسوي بة السيارهـ

  

Posted
local Vehicle = createVehicle (.............) 
warpPedIntoVehicle(source,Vehicle) 
  
addEventHandler("onVehicleStartExit",root, 
    function () 
        cancelEvent(true) 
    end 
) 

Posted

كيف ذا لحاله ؟؟؟؟؟؟؟؟

warpPedIntoVehicle(source,Vehicle)

مهو معرف الألمنت؟؟ source :?

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Posted (edited)
ممآ طرحت الكود كآممل !

بس كل شي ششغآل معي تمآمم !

  
  
 Vehicle = {} 
  
Vehicle[source] = createVehicle (...)  
warpPedIntoVehicle(source,Vehicle[source]) 
  
addEventHandler("onVehicleStartExit",getRootElement(), 
    function () 
    if ( Vehicle[source] and isElement ( Vehicle[source] ) ) then 
             cancelEvent( true ) 
         end 
    end 
) 
  
  

Edited by Guest

Welcom to my server Q.5

Current game type in my server Drift

350x20_FFFFFF_FFFFFF_000000_000000.png

my Email : [email protected]

Programming level: 90%

Posted

وذآ وش سسآلفته ؟

addEventHandler("onVehicleStartExit",root, 
    function () 
        cancelEvent(true) 
    end 
) 

Posted
ممآ طرحت الكود كآممل !

بس كل شي ششغآل معي تمآمم !

  
  
 Vehicle = {} 
  
Vehicle[source] = createVehicle (...)  
warpPedIntoVehicle(source,Vehicle[source]) 
  
addEventHandler("onVehicleStartExit",getRootElement(), 
    function () 
    if ( Vehicle[source] and isElement ( Vehicle[source] ) ) then 
        cancelEvent( true ) 
    end 
) 
  
  

ناقص اند

Sha67 سابقاً

Posted
ششففلي ذآ ! 
  
addEvent("nothing", true)  
addEventHandler("nothing",getRootElement(), 
 Vehicle = {} 
  
Vehicle[source] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) 
warpPedIntoVehicle(source,Vehicle[source]) 
  
addEventHandler("onVehicleStartExit",getRootElement(), 
    function () 
    if ( Vehicle[source] and isElement ( Vehicle[source] ) ) then 
             cancelEvent( true ) 
         end 
    end 
) 
createBlipAttachedTo(Vehicle[source],9) 
setPedSkin(source,45) 
) 
addEventHandler("onVehicleStartExit",root, 
    function () 
        cancelEvent(true) 
    end 
) 
  
  
     

Posted (edited)
Vehicle = {} 
addEvent("nothing", true) 
addEventHandler("nothing",root, 
function() 
Vehicle[source] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341-005,269.57095336914 ) 
warpPedIntoVehicle(source,Vehicle[source]) 
  
addEventHandler("onVehicleStartExit",root, 
    function () 
    if ( Vehicle[source] and isElement ( Vehicle[source] ) ) then 
             cancelEvent() 
         end 
    end 
) 
createBlipAttachedTo(Vehicle[source],9) 
setElementModel (source,45) 

Edited by Guest

Sha67 سابقاً

Posted
xD للوول عندك حرف في إحداثي الدوران

" Keep Thinking Different . " - Steve Jops

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

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

Posted (edited)

^ لا يأثر لانها احداثياآت ومافيها حروف ,,

setPedSkin

This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did.
Edited by Guest

Sha67 سابقاً

Posted

طيب أطرح التريقر حق الكلنت

" Keep Thinking Different . " - Steve Jops

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

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

Posted
addEventHandler("onClientGUIClick", root, 
  function () 
      if source == GUIEditor.button[2] then 
 triggerServerEvent("nothing",getLocalPlayer()) 
 guiSetVisible(GUIEditor.window[1],false) 
 showCursor(false) 
end 
end 
) 

Posted

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

>    ="client.lua" type="client" />    ="server.lua" type="server" />>

+ وجرب refresh سوي

" Keep Thinking Different . " - Steve Jops

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

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

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

    • No registered users viewing this page.

×
×
  • Create New...