Jump to content

ابى مساعده


samosavo

Recommended Posts

1 minute ago, Abdul KariM said:

استخدم


getElementData

 

انا مبرمج مبتدأ ف ياريت تقولى اضعها فين هنا

function createJob ( name, x, y, z, rz )
    if ( name == 'Terrorists' ) then
        create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } )
        local p = createElement ( "GodmodePed" )
        setElementData ( p, "Model", 109 )
        setElementData ( p, "Position", { x, y, z, rz } )
        createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 )
        addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p )
            if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then
                if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then
                    return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 )
                end
                triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' )
            end
        end )

 

Link to comment
1 minute ago, Abdul KariM said:

تسوي الكود ذا كله ومنتب عارف تحط سطر واحد بس ؟

الله يالدنيا

مش انا لوحدى الى عامل انا مع مجموعه من الناس بس انا محتاج اعرف كيف اضع الكود دا بالله عليك 

Link to comment

function createJob ( name, x, y, z, rz )
    if ( name == 'Terrorists' ) and ( getElementData(Element, 'YouDataName') == false ) then
        create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } )
        local p = createElement ( "GodmodePed" )
        setElementData ( p, "Model", 109 )
        setElementData ( p, "Position", { x, y, z, rz } )
        createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 )
        addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p )
            if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then
                if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then
                    return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 )
            end
        triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' )
    end
end )

Link to comment
1 hour ago, #Soking said:

function createJob ( name, x, y, z, rz )
    if ( name == 'Terrorists' ) and ( getElementData(Element, 'YouDataName') == false ) then
        create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } )
        local p = createElement ( "GodmodePed" )
        setElementData ( p, "Model", 109 )
        setElementData ( p, "Position", { x, y, z, rz } )
        createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 )
        addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p )
            if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then
                if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then
                    return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 )
            end
        triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' )
    end
end )

لا غلط

function createJob ( name, x, y, z, rz )
    if ( name == 'Terrorists' ) then
        create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } )
        local p = createElement ( "GodmodePed" )
        setElementData ( p, "Model", 109 )
        setElementData ( p, "Position", { x, y, z, rz } )
        createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 )
        addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p )
            if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) and getElementData(p, "YourDataName") == "YourValueName" ) then
                if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then
                    return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 )
            end
        triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' )
    end
end )

 

  • Like 1
Link to comment
7 hours ago, </Mr.Tn6eL> said:

لا غلط


function createJob ( name, x, y, z, rz )
    if ( name == 'Terrorists' ) then
        create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } )
        local p = createElement ( "GodmodePed" )
        setElementData ( p, "Model", 109 )
        setElementData ( p, "Position", { x, y, z, rz } )
        createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 )
        addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p )
            if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) and getElementData(p, "YourDataName") == "YourValueName" ) then
                if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then
                    return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 )
            end
        triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' )
    end
end )

 

شكرااااااااا
و اطلب اى شيه تبيه 

9 hours ago, #Soking said:

function createJob ( name, x, y, z, rz )
    if ( name == 'Terrorists' ) and ( getElementData(Element, 'YouDataName') == false ) then
        create3DText ( 'Terrorists', { x, y, z }, { 255, 0, 0 }, { nil, true } )
        local p = createElement ( "GodmodePed" )
        setElementData ( p, "Model", 109 )
        setElementData ( p, "Position", { x, y, z, rz } )
        createBlip ( x, y, z, 59, 2, 255, 255, 255, 255, 0, 450 )
        addEventHandler ( 'onMarkerHit', createMarker ( x, y, z - 1, 'cylinder', 2, 0, 0, 0, 0 ), function ( p )
            if ( getElementType ( p ) == 'player' and not isPedInVehicle ( p ) and not isPedDead ( p ) ) then
                if ( getPlayerWantedLevel ( p ) > max_wanted.Terrorists ) then
                    return exports['SaeedMessages']:sendClientMessage ( "The max wanted level for this job is "..tostring ( max_wanted.Terrorists )..".", p, 255, 0, 0 )
            end
        triggerClientEvent ( p, 'SaeedJobs:OpenJobMenu', p, 'Terrorists' )
    end
end )

شكرا للمحاوله بس خاطأه :( ان شاء الله المره الجايه تظبط معك

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