Jump to content

مساعد في نقطة تفتيش


AL-SAYED

Recommended Posts

شاب بغيت الا استخدمه عشان اسوي نقطة تفتيش

يعني ان اذا اللاعب وصل عن النقطة الشرطي يسوي له تقدم

groveواذا كان في تيم الشرطة او اي تيم ثاني يطوف واذا كان في عصابة

يطلع من السيارة ويقتله

Link to comment
-- Client Side 
addEvent ( "wave", true ) 
addEventHandler ( "wave", root, 
    function ( thePed ) 
        setPedControlState ( thePed, "BD_GF_Wave", true ) 
        outputChatBox ( "stop its check point", 255, 255, 0, true )   
function ( ) 
                x, y, z = getElementPosition ( localPlayer ) 
                setPedAimTarget ( thePed, x, y, z ) 
            end 
        , 100, 0 ) 
        setPedControlState ( thePed, "fire", true )      
    end 
) 
          
addEvent ( "setPedStanding", true ) 
addEventHandler ( "setPedStanding", root, 
    function ( thePed ) 
        setPedControlState ( thePed, "BD_GF_Wave", false ) 
        outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true )      
        for _, xaa in ipairs ( getTimers ( 100 ) ) do 
            killTimer ( xaa ) 
        end     
    end 
) 
  

--server 
thePositions = { 
    { 1514.3770751953, -1677.8481445313, 14.046875 }, 
    { 1515.3770751953, -1677.8481445313, 14.046875 }, 
} 
for _, AllPositions in ipairs ( thePositions ) do 
    createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) 
    createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) 
    end 
    addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then   
                for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
 triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) 
 end 
 if isPedInVehicle ( thePlayer ) then 
 removePedFromVehicle ( thePlayer ) 
setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true )  
                   triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds )  
                end 
            end 
        end 
    end 
) 
addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then         
                for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                    triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                    setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true )                   
               end 
            end 
        end 
    end 
) 

ذا الكود فيه مشاكل

ان ما يطلق على اللاعب ولا يحرك ايده

Edited by Guest
Link to comment

أنا مسوي مود نفس الي تبيه تحط الأحاداثيات

أذا شرطي يأشر مشي مشي

أذا مو شرطي يسوي له قف و يجو شرطه يطلقو عليه

المود أنا تاعب عليه و مشفرنه لسيرفري بس

أذا تبي تشتريه كلمني خاص

Link to comment
    -- Client Side 
    addEvent ( "wave", true ) 
    addEventHandler ( "wave", root, 
        function ( thePed ) 
            setPedAnimation ( thePed, "BD_GF_Wave", true ) 
            outputChatBox ( "stop its check point", 255, 255, 0, true )   
    function ( ) 
                    x, y, z = getElementPosition ( localPlayer ) 
                    setPedAimTarget ( thePed, x, y, z ) 
                end 
            , 100, 0 ) 
            setPedControlState ( thePed, "fire", true )     
        end 
    ) 
              
    addEvent ( "setPedStanding", true ) 
    addEventHandler ( "setPedStanding", root, 
        function ( thePed ) 
            setPedAnimation ( thePed, "BD_GF_Wave", false ) 
            outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true )     
            for _, xaa in ipairs ( getTimers ( 100 ) ) do 
                killTimer ( xaa ) 
            end     
        end 
    ) 
      

    --server 
    thePositions = { 
        { 1514.3770751953, -1677.8481445313, 14.046875 }, 
        { 1515.3770751953, -1677.8481445313, 14.046875 }, 
    } 
    for _, AllPositions in ipairs ( thePositions ) do 
        createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) 
        createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) 
        end 
        addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then   
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
     triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) 
     end 
     if isPedInVehicle ( thePlayer ) then 
     removePedFromVehicle ( thePlayer ) 
    setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) 
                       triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) 
                    end 
                end 
            end 
        end 
    ) 
    addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then         
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                        setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true )                   
                   end 
                end 
            end 
        end 
    ) 

Link to comment
-- Client Side 
addEvent ( "wave", true ) 
addEventHandler ( "wave", root, 
    function ( thePed ) 
        setPedControlState ( thePed, "BD_GF_Wave", true ) 
        outputChatBox ( "stop its check point", 255, 255, 0, true )   
function ( ) 
                x, y, z = getElementPosition ( localPlayer ) 
                setPedAimTarget ( thePed, x, y, z ) 
            end 
        , 100, 0 ) 
        setPedControlState ( thePed, "fire", true )      
    end 
) 
          
addEvent ( "setPedStanding", true ) 
addEventHandler ( "setPedStanding", root, 
    function ( thePed ) 
        setPedControlState ( thePed, "BD_GF_Wave", false ) 
        outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true )      
        for _, xaa in ipairs ( getTimers ( 100 ) ) do 
            killTimer ( xaa ) 
        end     
    end 
) 
  

--server 
thePositions = { 
    { 1514.3770751953, -1677.8481445313, 14.046875 }, 
    { 1515.3770751953, -1677.8481445313, 14.046875 }, 
} 
for _, AllPositions in ipairs ( thePositions ) do 
    createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) 
    createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) 
    end 
    addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then   
                for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
 triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) 
 end 
 if isPedInVehicle ( thePlayer ) then 
 removePedFromVehicle ( thePlayer ) 
setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true )  
                   triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds )  
                end 
            end 
        end 
    end 
) 
addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then         
                for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                    triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                    setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true )                   
               end 
            end 
        end 
    end 
) 

ذا الكود فيه مشاكل

ان ما يطلق على اللاعب ولا يحرك ايده

كود عناد بس مغير الاسماء

الله يصلحك

Link to comment
-- Client Side 
addEvent ( "wave", true ) 
addEventHandler ( "wave", root, 
    function ( thePed ) 
        setPedControlState ( thePed, "BD_GF_Wave", true ) 
        outputChatBox ( "stop its check point", 255, 255, 0, true )   
function ( ) 
                x, y, z = getElementPosition ( localPlayer ) 
                setPedAimTarget ( thePed, x, y, z ) 
            end 
        , 100, 0 ) 
        setPedControlState ( thePed, "fire", true )      
    end 
) 
          
addEvent ( "setPedStanding", true ) 
addEventHandler ( "setPedStanding", root, 
    function ( thePed ) 
        setPedControlState ( thePed, "BD_GF_Wave", false ) 
        outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true )      
        for _, xaa in ipairs ( getTimers ( 100 ) ) do 
            killTimer ( xaa ) 
        end     
    end 
) 
  

--server 
thePositions = { 
    { 1514.3770751953, -1677.8481445313, 14.046875 }, 
    { 1515.3770751953, -1677.8481445313, 14.046875 }, 
} 
for _, AllPositions in ipairs ( thePositions ) do 
    createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) 
    createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) 
    end 
    addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then   
                for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
 triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) 
 end 
 if isPedInVehicle ( thePlayer ) then 
 removePedFromVehicle ( thePlayer ) 
setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true )  
                   triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds )  
                end 
            end 
        end 
    end 
) 
addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then         
                for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                    triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                    setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true )                   
               end 
            end 
        end 
    end 
) 

ذا الكود فيه مشاكل

ان ما يطلق على اللاعب ولا يحرك ايده

كود عناد بس مغير الاسماء

الله يصلحك

:o:o:o:o:o:o:o

Link to comment
    -- Client Side 
    addEvent ( "wave", true ) 
    addEventHandler ( "wave", root, 
        function ( thePed ) 
            setPedAnimation ( thePed, "BD_GF_Wave", true ) 
            outputChatBox ( "stop its check point", 255, 255, 0, true )   
    function ( ) 
                    x, y, z = getElementPosition ( localPlayer ) 
                    setPedAimTarget ( thePed, x, y, z ) 
                end 
            , 100, 0 ) 
            setPedControlState ( thePed, "fire", true )     
        end 
    ) 
              
    addEvent ( "setPedStanding", true ) 
    addEventHandler ( "setPedStanding", root, 
        function ( thePed ) 
            setPedAnimation ( thePed, "BD_GF_Wave", false ) 
            outputChatBox ( "* Stop Shooting !!!", 255, 255, 0, true )     
            for _, xaa in ipairs ( getTimers ( 100 ) ) do 
                killTimer ( xaa ) 
            end     
        end 
    ) 
      

    --server 
    thePositions = { 
        { 1514.3770751953, -1677.8481445313, 14.046875 }, 
        { 1515.3770751953, -1677.8481445313, 14.046875 }, 
    } 
    for _, AllPositions in ipairs ( thePositions ) do 
        createPed ( 124, AllPositions [1], AllPositions [2], AllPositions [3] ) 
        createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 50, 0, 0, 0, 0 ) 
        end 
        addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then   
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
     triggerClientEvent ( thePlayer, "wave", thePlayer, thePeds ) 
     end 
     if isPedInVehicle ( thePlayer ) then 
     removePedFromVehicle ( thePlayer ) 
    setTimer ( giveWeapon, 500, 0, thePed, 25, 99999, true ) 
                       triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) 
                    end 
                end 
            end 
        end 
    ) 
    addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == getTeamFromName ( "sh" ) then         
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                        setTimer ( giveWeapon, 500, 1, thePlayer, 25, 99999, true )                   
                   end 
                end 
            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...