Jump to content

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


Recommended Posts

ابي كود

الي هو مهمة

ماركر يطلع في احدثيات مختلفة كل 5 دقائق يشتغل تلقائي وفي فوق الماركر صورة والي يوقف فوق الماركر يكسب مثلاً

50000

وكود

شخصيتن

معهم سلاح الخلاط لو احد دخل ماركر الشخصيتن تتحرك وتقتلهم بالخلاط ولكن ما تقتل جروب الأدمن

Link to comment
هذي للماركر اللي فوق

انت عدلت و كتبت شخصية بعد مارديت ذذ :

هنا البيد يطلق :

Ped Fire :P

هذولا حجت المارك الي حجت المهمة

  
dxDrawImage3D 
dxDrawMaterialLine3D 
dxCreateTexture 
createMarker 
onClientRender 
setTimer 
math.random 
table 
unpack 

وذيه

Ped Fire 

حجت الشخصية الي تهاجم الي مو ادمن؟

Link to comment
Ped Fire اضغط علية موضوع افتحة فية الاكواد باقي تعدله بس ذذ
    -- Server Side 
    thePositions = { 
        { 1514.3770751953, -1677.8481445313, 14.046875 }, 
        { 1515.3770751953, -1677.8481445313, 14.046875 }, 
        { 1516.3770751953, -1677.8481445313, 14.046875 }, 
        { 1517.3770751953, -1677.8481445313, 14.046875 },  
    } 
local accName = getAccountName (getPlayerAccount(thePlayer)) 
if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) 
then 
  
    for _, AllPositions in ipairs ( thePositions ) do 
        createPed ( 300, AllPositions [1], AllPositions [2], AllPositions [3] ) 
        createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 5, 0, 0, 0, 0 ) 
        for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do 
            setPedStat ( thePeds, 77, 999 ) 
            setPedWeaponSlot ( thePeds, 3 ) 
            setTimer ( giveWeapon, 3000, 0, thePeds, 25, 9999, true )   
        end 
    end 
          
    addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == theTeam then   
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) 
                    end 
                    if isPedInVehicle ( thePlayer ) then 
                        destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) 
                    end 
                end 
            end 
        end 
    ) 
          
    addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == theTeam then         
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                        setTimer ( giveWeapon, 500, 1, thePeds, 25, 9999, true )                   
                    end 
                end 
            end 
        end 
    ) 
      

ما تظهر الشخصيات

Link to comment
Ped Fire اضغط علية موضوع افتحة فية الاكواد باقي تعدله بس ذذ
    -- Server Side 
    thePositions = { 
        { 1514.3770751953, -1677.8481445313, 14.046875 }, 
        { 1515.3770751953, -1677.8481445313, 14.046875 }, 
        { 1516.3770751953, -1677.8481445313, 14.046875 }, 
        { 1517.3770751953, -1677.8481445313, 14.046875 },  
    } 
local accName = getAccountName (getPlayerAccount(thePlayer)) 
if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) 
then 
  
    for _, AllPositions in ipairs ( thePositions ) do 
        createPed ( 300, AllPositions [1], AllPositions [2], AllPositions [3] ) 
        createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 5, 0, 0, 0, 0 ) 
        for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do 
            setPedStat ( thePeds, 77, 999 ) 
            setPedWeaponSlot ( thePeds, 3 ) 
            setTimer ( giveWeapon, 3000, 0, thePeds, 25, 9999, true )   
        end 
    end 
          
    addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == theTeam then   
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) 
                    end 
                    if isPedInVehicle ( thePlayer ) then 
                        destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) 
                    end 
                end 
            end 
        end 
    ) 
          
    addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == theTeam then         
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                        setTimer ( giveWeapon, 500, 1, thePeds, 25, 9999, true )                   
                    end 
                end 
            end 
        end 
    ) 
      

ما تظهر الشخصيات

كوبي بست ؟ .. :mrgreen:

Link to comment
Ped Fire اضغط علية موضوع افتحة فية الاكواد باقي تعدله بس ذذ
    -- Server Side 
    thePositions = { 
        { 1514.3770751953, -1677.8481445313, 14.046875 }, 
        { 1515.3770751953, -1677.8481445313, 14.046875 }, 
        { 1516.3770751953, -1677.8481445313, 14.046875 }, 
        { 1517.3770751953, -1677.8481445313, 14.046875 },  
    } 
local accName = getAccountName (getPlayerAccount(thePlayer)) 
if not isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) 
then 
  
    for _, AllPositions in ipairs ( thePositions ) do 
        createPed ( 300, AllPositions [1], AllPositions [2], AllPositions [3] ) 
        createMarker ( AllPositions [1], AllPositions [2], AllPositions [3] - 1, "cylinder", 5, 0, 0, 0, 0 ) 
        for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do 
            setPedStat ( thePeds, 77, 999 ) 
            setPedWeaponSlot ( thePeds, 3 ) 
            setTimer ( giveWeapon, 3000, 0, thePeds, 25, 9999, true )   
        end 
    end 
          
    addEventHandler ( "onMarkerHit", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == theTeam then   
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedAttacking", thePlayer, thePeds ) 
                    end 
                    if isPedInVehicle ( thePlayer ) then 
                        destroyElement ( getPedOccupiedVehicle ( thePlayer ) ) 
                    end 
                end 
            end 
        end 
    ) 
          
    addEventHandler ( "onMarkerLeave", getResourceRootElement ( getThisResource ( ) ), 
        function ( thePlayer ) 
            if getElementType ( thePlayer ) == "player" then 
                if getPlayerTeam ( thePlayer ) == theTeam then         
                    for _, thePeds in ipairs ( getElementsByType ( "ped", getResourceRootElement ( getThisResource() ) ) ) do           
                        triggerClientEvent ( thePlayer, "setPedStanding", thePlayer, thePeds ) 
                        setTimer ( giveWeapon, 500, 1, thePeds, 25, 9999, true )                   
                    end 
                end 
            end 
        end 
    ) 
      

ما تظهر الشخصيات

في ملف كلنت لان فيه ترايقر للكلنت

+

viewtopic.php?f=119&t=49814&start=45

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