Jump to content

كود الغاء الاوامر


Recommended Posts

شباب ابغي كود و هو

ان اذا الاعب لمس الماركر و ينفذ الاوامر ايل في الماركر

بعدين اذا مرة ثاني بيدخل الماركر ما تتفعل الاوامر

و في ماركر ثاني اذا دخله يقدر يروح للماركر الي ذكرته و تحقق ليه الاوامر

Link to comment

مثآل تفضل :

marker = {} 
marker[1] = createMarker (  ...... ) 
marker[2] = createMarker (  ...... ) 
  
addEventHandler("onMarkerHit",getRootElement(), 
    function ( element ) 
        if ( getElementType( element ) == "player" ) then 
        if ( source == marker[1] ) then 
        if ( getElementData ( element , "Hit" ) == true ) then 
        outputChatBox("* لقد قمت بالدخول الية مسبقآ آنتهت الوظيفة",element) 
        return 
        end 
        outputChatBox("* هذهـ المرهـ الاولى لك يتم تنفيذ الوظيفة",element) 
        setElementData ( element , "Hit" , true ) 
        giveWeapon ( element , 22 , 200 ) 
        elseif ( source == marker[2] ) then 
        if ( not getElementData ( element , "Hit" ) ) then  
        outputChatBox("* يمكنك الدخول لا تحتاج لـ اعادهـ الداتا",element) 
        return 
        end 
        outputChatBox("* يمكنكـ الدخول للماركر الاول مرة اخرى",element) 
        setElementData ( element , "Hit" , false ) 
        end 
    end 
end 
) 
  

Link to comment
مثآل تفضل :
marker = {} 
marker[1] = createMarker (  ...... ) 
marker[2] = createMarker (  ...... ) 
  
addEventHandler("onMarkerHit",getRootElement(), 
    function ( element ) 
        if ( getElementType( element ) == "player" ) then 
        if ( source == marker[1] ) then 
        if ( getElementData ( element , "Hit" ) == true ) then 
        outputChatBox("* لقد قمت بالدخول الية مسبقآ آنتهت الوظيفة",element) 
        return 
        end 
        outputChatBox("* هذهـ المرهـ الاولى لك يتم تنفيذ الوظيفة",element) 
        setElementData ( element , "Hit" , true ) 
        giveWeapon ( element , 22 , 200 ) 
        elseif ( source == marker[2] ) then 
        if ( not getElementData ( element , "Hit" ) ) then  
        outputChatBox("* يمكنك الدخول لا تحتاج لـ اعادهـ الداتا",element) 
        return 
        end 
        outputChatBox("* يمكنكـ الدخول للماركر الاول مرة اخرى",element) 
        setElementData ( element , "Hit" , false ) 
        end 
    end 
end 
) 
  

مشكووور واجد

تسلم ^^

بس هاذي ويش فايتها

Link to comment

تقدر تسوي اللي تبية هذي يوم تلمس الماركر يسوي داتا واذا لقا الداتا يلغي الوظيفة .. واذا لمست الماركر الثاني يغير الداتا لـ فولس بـ حيث يوم تلمسة يتأكد ان الداتا ترو اذا ماكانت ترو يسوي الوظيفةة ..

Link to comment
تقدر تسوي اللي تبية هذي يوم تلمس الماركر يسوي داتا واذا لقا الداتا يلغي الوظيفة .. واذا لمست الماركر الثاني يغير الداتا لـ فولس بـ حيث يوم تلمسة يتأكد ان الداتا ترو اذا ماكانت ترو يسوي الوظيفةة ..

خخخ نسيت احط في تعليقي هاذا

return

انا اسأل عن هاذا

return

ويش فايتده

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