Jump to content

createBlipAttachedTo.


Recommended Posts

Posted
Just now, iMr.WiFi..! said:

myMarker = createMarker( 1987.87427, -2380.81665, 13.54688, "cylinder", 3, 155,0,0,200)
setElementVisibleTo( myMarker, root, false )



 
function mission()
  if eventName == "onVehicleStartEnter" then
		if getElementModel ( source ) == 592 and getVehicleController ( source ) then
   		 setElementVisibleTo ( myMarker, getVehicleController ( source ), true )
		end
  elseif eventName == "onVehicleStartExit" then
    	if getElementModel ( source ) == 592 and getVehicleController ( source ) then
      		setElementVisibleTo ( myMarker, getVehicleController ( source ), false )
		end
	end
end
addEventHandler("onVehicleStartEnter",getRootElement(),mission)
addEventHandler("onVehicleStartExit",getRootElement(),mission)

 

تمام عي دي كانت خطوتي الجاية تسلم 

Posted

انا عندي سؤال في عقلي مش عارف اترجمه كويس 

يمكن الكود يشرحه 

    function letsStart:~()
    if ( getElementModel ( vehicle ) == 592 ) then 
    local x, y, z = getElementPosition( vehicle )
    if  getElementPosition( vehicle ) == x, y, z+200 
    then 
    outputChatBox("your andromada delivery has started,pal",player)
    end
    end

بس بيقولي 'then' expected near ','

وانا مش شايف هاد ال ','

 

    function airCheck()
    
    local aVehicle = getPedOccupiedVehicle( localPlayer )
    
    if ( aVehicle and isElementInWater( aVehicle ) ) then
    
        if ( getElementModel ( aVehicle ) == 592 ) then
    
            if ( getElementPosition ( aVehicle ) == x , y, z+200 ) 
    
            end
        end
    end
end

فين الغلط هنا @iMr.WiFi..! @Master_MTA

Posted
1 minute ago, ProMax said:

    function airCheck()
    
    local aVehicle = getPedOccupiedVehicle( localPlayer )
    
    if ( aVehicle and isElementInWater( aVehicle ) ) then
    
        if ( getElementModel ( aVehicle ) == 592 ) then
    
            if ( getElementPosition ( aVehicle ) == x , y, z+200 ) 
    
            end
        end
    end
end

فين الغلط هنا @iMr.WiFi..! @Master_MTA

x,y,z

مش معرفين

Posted
Just now, ProMax said:

انا مسوي كدة فوق 


    local x, y, z = getElementPosition( aVehicle )

 

طيب وليه شيل التحقق ما بيزبط ابد

Posted
Just now, ProMax said:

مش فاهم

يعني انته جايب الارتفاع حق المركبه

ومسوي ان لو كان ارتفاع المركبه =ارتفاع المركبه الحالي+200

فمستحيل يزبط التحقق

  • Like 1
Posted
Just now, Master_MTA said:

يعني انته جايب الارتفاع حق المركبه

ومسوي ان لو كان ارتفاع المركبه =ارتفاع المركبه الحالي+200

فمستحيل يزبط التحقق

كيف اظبطه 

Posted
Just now, ProMax said:

كيف اظبطه 

تخيل انك تجيب إحداثياتك تمام

وتسوي تحقق اذا انت ف مكانك و فوق مكانك ب 200 متر

كيف بالله ؟

بتكون في مكانين مرة وحدة ؟

أتمنى تكون فهمتني

Posted
Just now, coNolel said:

تخيل انك تجيب إحداثياتك تمام

وتسوي تحقق اذا انت ف مكانك و فوق مكانك ب 200 متر

كيف بالله ؟

بتكون في مكانين مرة وحدة ؟

أتمنى تكون فهمتني

 

Just now, Master_MTA said:

شيله؟

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

Posted
Just now, ProMax said:

 

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

تجيب إرتفاعك

وأرتفاع السيارة

وتقارن

بس ماني متأكد

Posted
1 minute ago, coNolel said:

تجيب إرتفاعك

وأرتفاع السيارة

وتقارن

بس ماني متأكد

انا عايز اتأكد ان ارتفاع الطيارة فوق ال200 كل ثاينة بأكد

 

Posted
10 minutes ago, ProMax said:

انا عايز اتأكد ان ارتفاع الطيارة فوق ال200 كل ثاينة بأكد

 

في ايفينت اتوقع لوايفاي

بقسم اليوزفل فنكشن

تحصله لما المركبه تتحرك

استخدمه وتحقق من ارتفاعها

Posted
3 minutes ago, Master_MTA said:

يسوي تحقق هل الالمنت يتحرك ولا موقف في مكانه فهمتني؟

تمام وانا كيف بحدد انه ماشي لفوق

Posted

@Master_MTA كدة؟

@iMr.WiFi..!

    function airCheck()
    
    local aVehicle = getPedOccupiedVehicle( player )
    
    if ( aVehicle ) then
    
        if ( getElementModel ( aVehicle ) == 592 ) then
    
        if isElementMoving ( aVehicle ) then
        
        outputChatBox("gg",player)
        
            end
        end
    end
end
setTimer ( airCheck,1000,0 )

بس مش شغال 

Posted
28 minutes ago, ProMax said:

@Master_MTA كدة؟

@iMr.WiFi..!


    function airCheck()
    
    local aVehicle = getPedOccupiedVehicle( player )
    
    if ( aVehicle ) then
    
        if ( getElementModel ( aVehicle ) == 592 ) then
    
        if isElementMoving ( aVehicle ) then
        
        outputChatBox("gg",player)
        
            end
        end
    end
end
setTimer ( airCheck,1000,0 )

بس مش شغال 

player غير معرفة

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