Sign in to follow this  
SWAT-M7MD

مساااعدة يا شباااب Helppp

Recommended Posts

local x,y,z = 406.241,104.305,3.76

marker8 = createMarker(31.08945,355.62836,0.26875,'cylinder',1.3,254, 126, 0, 255)
addEventHandler("onClientMarkerHit",marker8,
function( )
if isPedInVehicle(hitElement) then
local vehicle = getPedOccupiedVehicle(hitElement)
if vehicle then
setElementPosition(vehicle, x,y,z)
setElementFrozen(vehicle, true)
setTimer(function(  )
setElementFrozen(vehicle, false)
end,6000,1,hitElement)
end
end
end
end

ابي لو شخص دخل للماركر و هو بسيارة

السيارة تنتقل للاحداثيات اللي انا مسويها

Share this post


Link to post
Posted (edited)
--Client

salhMark = createMarker ( -666.91980, 951.71588, 12.13281, "cylinder" )


function salh(hitElement)
if isPlayerInVehicle ( hitElement ) then
local vehicle = getPedOccupiedVehicle(hitElement)
setElementPosition(vehicle, -656.82086, 949.41492, 12.13281)
end
end
addEventHandler("onClientMarkerHit",salhMark,salh)

 

Edited by salh
  • Like 1

Share this post


Link to post
11 minutes ago, salh said:

--Client

salhMark = createMarker ( -666.91980, 951.71588, 12.13281, "cylinder" )


function salh(hitElement)
if isPlayerInVehicle ( hitElement ) then
local vehicle = getPedOccupiedVehicle(hitElement)
setElementPosition(vehicle, -656.82086, 949.41492, 12.13281)
end
end
addEventHandler("onClientMarkerHit",salhMark,salh)

 

salhMark = createMarker (-666.91980, 951.71588, 12.13281 - 1,'cylinder',1.3,254, 126, 0, 255)


addEventHandler("onClientMarkerHit",salhMark,
function ( hitMarker )
		if isPedInVehicle ( hitMarker ) then
local vehicle = getPedOccupiedVehicle(hitMarker)
    if ( vehicle ) then
setElementPosition(vehicle, -656.82086, 949.41492, 12.13281)	
	end
      
		end
end

في إحداثيات الماركر ليش سويت -1 انا ؟

هاذي سويتها عشان الماركر يجي في الأرض مب طاير في الهواء

أخطاءك كانت:

isPlayerInVehicle ,, 

Quote
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions.

Please use isPedInVehicle instead.

الويكي يقول هذا الفنكشن بينشال في الإصدارات القادمة

يفضل إستخدام isPedInVehicle .

أدري ترجمتي ام بي سي 2 .

ثاني خطأ:

( -666.91980, 951.71588, 12.13281, "cylinder" )

هنا أنت مب معرف لون الماركر , حجمه , شفافيته 

.

 

  • Thanks 1
  • Haha 1

Share this post


Link to post
2 minutes ago, DABL said:

هنا أنت مب معرف لون الماركر , حجمه , شفافيته 

 

هاذي اشياء مو اساسية + شكرا على الشرح ي ام بي سي (:

Share this post


Link to post
Just now, salh said:

هاذي اشياء مو اساسية + شكرا على الشرح ي ام بي سي (:

العفو , عيد سعيد .

  • Like 1

Share this post


Link to post
1 minute ago, DABL said:

العفو , عيد سعيد .

علينا و عليك

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.