Jump to content

طلب مساعده !


Recommended Posts

السلام عليكم

كيفكم :P

لما اجي على الماركر وتنزل سيارة عسريع انا سويته

بس كيف بدي اخلي لما اجي على الماكر اركب السيارة عسريع ؟؟

يعني اول ما ادخل الماركير

وكيف بدي اخلي لما اخد السيارة واروح اخد كمان سيارة بدي تختفي السيارة الي نزلت قبل ؟؟

Link to comment

وكيف بدي اخلي لما اخد السيارة واروح اخد كمان سيارة بدي تختفي السيارة الي نزلت قبل ؟؟

if car then 
destroyElement(car) 
local x,y,z = getElementPosition( getLocalPlayer()) 
car = createVehicel(522,x,y,z) 
else 
local x,y,z = getElementPosition( getLocalPlayer()) 
car = createVehicel(522,x,y,z) 
  

هذا حطه لما يدخل الماركر

Link to comment

وكيف بدي اخلي لما اخد السيارة واروح اخد كمان سيارة بدي تختفي السيارة الي نزلت قبل ؟؟

if car then 
destroyElement(car) 
local x,y,z = getElementPosition( getLocalPlayer()) 
car = createVehicel(522,x,y,z) 
else 
local x,y,z = getElementPosition( getLocalPlayer()) 
car = createVehicel(522,x,y,z) 
  

هذا حطه لما يدخل الماركر

lol?

Link to comment

وكيف بدي اخلي لما اخد السيارة واروح اخد كمان سيارة بدي تختفي السيارة الي نزلت قبل ؟؟

if car then 
destroyElement(car) 
local x,y,z = getElementPosition( getLocalPlayer()) 
car = createVehicel(522,x,y,z) 
else 
local x,y,z = getElementPosition( getLocalPlayer()) 
car = createVehicel(522,x,y,z) 
  

هذا حطه لما يدخل الماركر

lol?

:|:|:|:|

Link to comment
  local marker = createMarker( 1556.6724853516, -1606.4342041016, 12.3, "Cylinder", 1.5, 14, 64, 237, 150) 
  
  
  
function ps () 
      local soso = getLocalPlayer() 
      local x, y, z = getElementPosition ( soso ) 
      createVehicle ( 596, x + 1, y, z ) 
end 
addEventHandler("onClientMarkerHit", marker, ps) 

Link to comment
  local marker = createMarker( 1556.6724853516, -1606.4342041016, 12.3, "Cylinder", 1.5, 14, 64, 237, 150) 
  
  
  
function ps () 
      local soso = getLocalPlayer() 
      local x, y, z = getElementPosition ( soso ) 
      createVehicle ( 596, x + 1, y, z ) 
end 
addEventHandler("onClientMarkerHit", marker, ps) 

Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.

https://wiki.multitheftauto.com/wiki/CreateVehicle

Link to comment
  local marker = createMarker( 1556.6724853516, -1606.4342041016, 12.3, "Cylinder", 1.5, 14, 64, 237, 150) 
  
  
  
function ps () 
      local soso = getLocalPlayer() 
      local x, y, z = getElementPosition ( soso ) 
      createVehicle ( 596, x + 1, y, z ) 
end 
addEventHandler("onClientMarkerHit", marker, ps) 

Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.

https://wiki.multitheftauto.com/wiki/CreateVehicle

طيب شو الحل

Link to comment

جرب

function g() 
setElementData(source,"xxx",tostring("Yes")) 
end 
addEventHandler("onPlayerJoin",root,g) 
  
ma = createMarker (x,y,z, "cylinder", 2, 255, 0, 255, 255 ) 
  
function M( thePlayer ) 
get = getElementData(thePlayer,"xxx") 
if get == "Yes" then 
if not isPedInVehicle(thePlayer) then 
x,y,z = getElementPosition( thePlayer ) 
create = createVehicle ( id, x, y, z )--Add Id 
warpPedIntoVehicle(thePlayer,create) 
setElementData(thePlayer,"xxx",tostring("No")) 
         end 
     end 
 end 
addEventHandler( "onMarkerHit", ma, M ) 
  

ولاتنسى تضيف ألأي دي لسياره بدل كلمة

id

Link to comment

:(

جرب
function g() 
setElementData(source,"xxx",tostring("Yes")) 
end 
addEventHandler("onPlayerJoin",root,g) 
  
ma = createMarker (x,y,z, "cylinder", 2, 255, 0, 255, 255 ) 
  
function M( thePlayer ) 
get = getElementData(thePlayer,"xxx") 
if get == "Yes" then 
if not isPedInVehicle(thePlayer) then 
x,y,z = getElementPosition( thePlayer ) 
create = createVehicle ( id, x, y, z )--Add Id 
warpPedIntoVehicle(thePlayer,create) 
setElementData(thePlayer,"xxx",tostring("No")) 
         end 
     end 
 end 
addEventHandler( "onMarkerHit", ma, M ) 
  

ولاتنسى تضيف ألأي دي لسياره بدل كلمة

id

طيب انا اخت سيارة من الماركر

بس ما اقدر اخد كمان وحده :|

Link to comment
هو حاط الكود يآخذ مرة وحدة @@"

ElementData احذف كل شيء يخص الـ

اها مشكور بس حليتها من قبل

+

باقي مشكلة

انا اخت سيارة من الماركر

واروح مرا ثانيه اخد كمان سيارة من الماركر

السيارة الي اختها اخر مرا بدي تختفي

حاولت اسويها بس الماركر يختفي والسيارة الي اختها :roll:

Link to comment
هو حاط الكود يآخذ مرة وحدة @@"

ElementData احذف كل شيء يخص الـ

اها مشكور بس حليتها من قبل

+

باقي مشكلة

انا اخت سيارة من الماركر

واروح مرا ثانيه اخد كمان سيارة من الماركر

السيارة الي اختها اخر مرا بدي تختفي

حاولت اسويها بس الماركر يختفي والسيارة الي اختها :roll:

ورني كودك

Link to comment
function g() 
setElementData(source,"xxx",tostring("Yes")) 
end 
addEventHandler("onPlayerJoin",root,g) 
  
ma = createMarker (1556.6724853516,-1606.4342041016, 12.3, "cylinder", 2, 255, 0, 255, 150 ) 
  
function M( thePlayer ) 
  
get = getElementData(thePlayer,"xxx") 
  
if get == "Yes" then 
  
if not isPedInVehicle(thePlayer) then 
  
x,y,z = getElementPosition( thePlayer ) 
  
if getElementModel( thePlayer ) == 287 then 
  
 create = createVehicle ( 596, x, y, z ) 
  
setVehicleColor( create,27,54,160,255,255,255) 
  
warpPedIntoVehicle(thePlayer,create) 
end 
         end 
       end 
     end 
addEventHandler( "onMarkerHit", ma, M ) 
  
  

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