Jump to content

ممكن مساعده


Recommended Posts

السلام عليكم

ابي مساعده بجهل شخصيه

تسوق سياره

اعرف اصنع الشخصيه واعرف اعطيها سياره

بس ما اعرف اخي الشخصيه ذي تمشي بالسياره

فياريت حد يساعدني

Link to comment

function mike() 
  
ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) 
setTimer(setElementHealth,50,0,ped1,200) 
dd = createVehicle (411,getElementPosition(ped1)) 
warpPedIntoVehicle(ped1,dd) 
setTimer ( function (vehicle) 
setPedControlState(ped1, "forwards", true) 
end 
addCommandHandler("make", mike) 

الكود كامل

Link to comment
function mike() 
  
ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) 
setTimer(setElementHealth,50,0,ped1,200) 
dd = createVehicle (411,getElementPosition(ped1)) 
warpPedIntoVehicle(ped1,dd) 
setTimer ( function (vehicle) 
setPedControlState(ped1, "forwards", true) 
end 
addCommandHandler("make", mike) 

الكود كامل

function mike() 
ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) 
setTimer(setElementHealth,50,0,ped1,200) 
dd = createVehicle (411,getElementPosition(ped1)) 
warpPedIntoVehicle(ped1,dd) 
setTimer ( function (vehicle) 
setPedControlState(ped1, "forwards", true) 
end, 1000, 1) 
end 
addCommandHandler("make", mike) 

كان ناقصك اند :wink:

Link to comment
ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) 
  
  
function mike() 
local x,y,z = getElementPosition(ped1) 
  
local dd = createVehicle (411,x,y,z) 
  
warpPedIntoVehicle(ped1,dd) 
  
setPedControlState(ped1, "Forwards", true) 
  
end 
  
addCommandHandler("make", mike) 

Link to comment
بدل

Forwards

حط

accelerate

زي كذا

setPedControlState(ped1, "accelerate", true) 

وشف هاذي الصفحة تستفيد منها

تقدر تخليه يرمي من السياره يوقف السياره يلف يمين ويسار وكثير

https://wiki.multitheftauto.com/wiki/Control_names

برضو ما يمشي

ما يشتغل عشان االسيت تايمر الي حاطه انت خطا

جرب هذا ورد خبر

function mike() 
ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) 
setTimer(setElementHealth,50,0,ped1,200) 
dd = createVehicle (411,getElementPosition(ped1)) 
warpPedIntoVehicle(ped1,dd) 
setTimer (ss, 1000, 1) 
end 
addCommandHandler("make", mike) 
  
 function ss() 
setPedControlState(ped1, "accelerate", true) 
end 

Link to comment

اخي ما يمشي برضو للاسف

وانا ضفتله كود كمان وما يمشي

شووف الكود كامل

function mike() 
ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) 
setTimer(setElementHealth,50,0,ped1,200) 
dd = createVehicle (411,getElementPosition(ped1)) 
warpPedIntoVehicle(ped1,dd) 
setTimer (ss, 1000, 1) 
end 
addCommandHandler("make", mike) 
  
 function ss() 
setPedControlState(ped1, "accelerate", true) 
setPedControlState(ped1, "forwards", true) 
end 

Link to comment

هع خلاص عرفت حل المشكله لحالي

بس شكراً على كل حال

الاكواد

client

addEvent ("Pedd",true) 
addEventHandler("Pedd",root,  
function() 
setPedControlState(source, "accelerate", true) 
setPedControlState(source, "forwards", true) 
end 
) 

server

function mike() 
ped1 = createPed (168,199.03576660156,1906.9396972656,17.640625) 
setTimer(setElementHealth,50,0,ped1,200) 
dd = createVehicle (411,getElementPosition(ped1)) 
warpPedIntoVehicle(ped1,dd) 
setTimer (ss, 1000, 1) 
 triggerClientEvent("Pedd", getRootElement(), thePlayer, ped1) 
end 
addCommandHandler("make", mike) 
  

وبيمشي وكله تمام شكراً على كل حال

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