Jump to content

شنو الغلط


Recommended Posts

سلام عليكم بغيت اسوي ماركر عند بيت سيجي ويوديني للInterior حق سيجي وماضبط

addEventHandler( "onMarkerHit", themarker, 
 function () 
local themarker = createMarker( 2495.46216, -1691.12207, 14.76563, 'cylinder', 1.5, 255, 0, 0, 150) 
setElementDimension ( source, 20 )  
setElementInterior ( source, 3 , 2495.46216 , -1691.12207 , 14.76563 ) 
outputChatBox( source, " Welcome To home Console " , 255, 255, 0 , false)  
end 
) 

:D

Link to comment
شلون حاط حدث دخول الماركر

والماركر مو موجود ؟

حط كود انشاء الماركر خارج الحدث

واذا كان كودك كلنت استخدم onClientMarkerHit

اخوي انا ابي الكود سيرفر \ انا مافهمت الي قلته بأول سطر

Link to comment

.. جرب كذا

+ ماتقدر تنتقل وانت راكب سيارهـ

local TheMarker = createMarker ( 2495.46216, -1691.12207, 14.76563, "cylinder", 1.5, 255, 0, 0, 150 ) 
  
addEventHandler ( "onMarkerHit", resourceRoot, function ( hitMarker )      
        if ( getElementType ( hitMarker) == "player" ) and ( source == TheMarker ) then 
            if ( isPedInVehicle ( hitMarker ) ) then return end    
                setElementDimension ( hitMarker, 20 ) 
        setElementInterior ( hitMarker, 3, 2495.46216, -1691.12207, 14.76563 ) 
    outputChatBox ( "* Welcome To Home Console", hitMarker, 255, 0, 0, true ) 
    end 
end ) 
Edited by Guest
Link to comment
جرب كذا .. م جربته

+ ماتقدر تنتقل وانت راكب سيارهـ

local TheMarker = createMarker ( 2495.46216, -1691.12207, 14.76563, "cylinder", 1.5, 255, 0, 0, 150 ) 
  
addEventHandler ( "onMarkerHit", resourceRoot, function ( player ) 
    if ( isPedInVehicle ( player ) ) then return end         
        if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then 
            setElementDimension ( player, 20 ) 
        setElementInterior ( player, 3, 2495.46216, -1691.12207, 14.76563 ) 
    outputChatBox ( "* Welcome To Home Console", player, 255, 0, 0, true ) 
    end 
end ) 
    if ( isPedInVehicle ( player ) ) then return end         
        if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then 

-_- متحقق انه مو في سيارة قبل لا تتحقق انه لاعب

Link to comment
local Marker = createMarker( 2495.46216, -1691.12207, 14.76563, "cylinder", 1.5, 255, 0, 0, 150) 
  
addEventHandler ( "onMarkerHit", root,  
function(hitElement) 
    if ( source == Marker ) and ( getElementType ( hitElement ) == "player" ) and not ( isPedInVehicle ( hitElement ) ) then 
        setElementDimension ( hitElement, 20 ) 
        setElementInterior ( hitElement, 3, 2495.46216, -1691.12207, 14.76563 ) 
        outputChatBox ( "* Welcome To Home Console", hitElement, 255, 0, 0, true ) 
    end 
end) 

Edited by Guest
Link to comment
    if ( isPedInVehicle ( player ) ) then return end         
        if ( getElementType ( player ) == "player" ) and ( source == TheMarker ) then 

-_- متحقق انه مو في سيارة قبل لا تتحقق انه لاعب

اهم شيء الكود صحيح , خخخ

اختلاف اسطر , صلحته , مشكور ع التنبيه , والكود الحين تمام : )

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