Jump to content

طلب كودين


Recommended Posts

Posted

السلام عليكم

ابغي كود بس المس الماركر الي احدده يختفي

طبعاً بعد ما يادي وظيفته مثل ماركر ينقل

يقوم ينقل اللاعب و يختفي

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

Posted
marker = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player )  
        if ( getElementType ( player ) == "player" ) then  
            setElementPosition( player, X, Y, Z )  
            destroyElement( marker ) 
        end 
    end 
) 
  

هذا لمن تلسمه ينقلك ثم يختفي

حط بدل

X, Y, Z

في السطر الأول مكان الماركر

وفي السطر السادس المكان إلي ينقلك له الماركر

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
و ابغي كود اذا لمست ماركر انا احدده يطلع ماركر جديد
marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
        end 
    end 
) 

الإسبتدآل ,

السطر الأول ,

x, y, z = إحداثيات الماركر الأول الي تبي لما تلمسه يجي ماركر جديد

size = حجم الماركر ^

السطر السآدس ,

x, y, z = إحداثيات الماركر الجديد الي يتم إنشائه عند لمس الماركر الي سوينآهـ بالسطر الأول

size = حجم الماركر ^

Posted

:lol: لو جمعت مودي + مود أسامة بيطلعلك المود إلي تبيه

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

تفضل

marker = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player )  
        if ( getElementType ( player ) == "player" ) then  
            setElementPosition( player, X, Y, Z )  
            destroyElement( marker ) 
            marker2 = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
        end 
    end 
) 

1 --> X, Y, Z = إحداثيات الماركر

6 --> X, Y, Z = المكان إلي بينقلك عليه الماركر

8 --> X, Y, Z = إحداثيات اللماركر الجديدي إلي راح يطلع

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
تفضل

marker = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player )  
        if ( getElementType ( player ) == "player" ) then  
            setElementPosition( player, X, Y, Z )  
            destroyElement( marker ) 
            marker2 = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
        end 
    end 
) 

1 --> X, Y, Z = إحداثيات الماركر

6 --> X, Y, Z = المكان إلي بينقلك عليه الماركر

8 --> X, Y, Z = إحداثيات اللماركر الجديدي إلي راح يطلع

مشكور الحين عرفت شلون اخلي الماركر يختفي

marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
        end 
    end 
) 

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

الماركر الجديد اليطلع

يظهر بس للاعب الي لمس الماركر مو الكل اذا تقدر

Posted

ماظنتي كودكـ يحتاج لـ سيرفر ..

حطه كلنت ولو تسوي اخفاء للماركر ماحد بيشوفه غير العميل نفسه #

Posted
تفضل

marker = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player )  
        if ( getElementType ( player ) == "player" ) then  
            setElementPosition( player, X, Y, Z )  
            destroyElement( marker ) 
            marker2 = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
        end 
    end 
) 

1 --> X, Y, Z = إحداثيات الماركر

6 --> X, Y, Z = المكان إلي بينقلك عليه الماركر

8 --> X, Y, Z = إحداثيات اللماركر الجديدي إلي راح يطلع

مشكور الحين عرفت شلون اخلي الماركر يختفي

marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
        end 
    end 
) 

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

الماركر الجديد اليطلع

يظهر بس للاعب الي لمس الماركر مو الكل اذا تقدر

تقدر , يصصير كذآ ^

-- Server Side !

marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

Posted

تقدر , يصصير كذآ ^

-- Server Side !

marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

marker = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            setElementPosition( player, X, Y, Z ) 
            destroyElement( marker ) 
            marker2 = createMarker( X, Y, Z, "cylinder", Size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted

تقدر , يصصير كذآ ^

-- Server Side !

marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

marker = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            setElementPosition( player, X, Y, Z ) 
            destroyElement( marker ) 
            marker2 = createMarker( X, Y, Z, "cylinder", Size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

??? :/

هو طلبه اسويهآ له على الكود الي هو حاطه مهو على الكود الي فوق :/

Posted

تقدر , يصصير كذآ ^

-- Server Side !

marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

marker = createMarker( X, Y, Z, "cylinder", 1.5, 255, 0, 0, 255 ) 
  
addEventHandler( "onMarkerHit", marker, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            setElementPosition( player, X, Y, Z ) 
            destroyElement( marker ) 
            marker2 = createMarker( X, Y, Z, "cylinder", Size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

??? :/

هو طلبه اسويهآ له على الكود الي هو حاطه مهو على الكود الي فوق :/

لووول ما إنتبهت xD

:mrgreen: بس عادي يزيد ولا ينقص

" Keep Thinking Different . " - Steve Jops

--------------------

Don't send me PMs asking for help, I Won't reply !

Posted
تقدر , يصصير كذآ ^

-- Server Side !

marker1 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255 ) 
  
addEventHandler ( "onMarkerHit", marker1, 
    function ( player ) 
        if ( getElementType ( player ) == "player" ) then 
            marker2 = createMarker( x, y, z, "cylinder", size, 255, 0, 0, 255, player ) 
        end 
    end 
) 

مشكور ظبط

تمت الافادة

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