Jump to content

تصحيح كود


Recommended Posts

Posted

شباب سويت كود و ما زبط مدري وش فيه

هذا الكود :

-- Client Side 
theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) 
  
    if(getElementType(p)=='player')then 
    if getPlayerTeam( p) == getTeamFromName( 'M.H' ) then 
        moveObject ( dor1, 100, -1736.5, 943.79998779297, 20 ) 
    end 
    end 
    end 

ابي اسوي محد يقدر يدخل ماركر الا اللي ف تيم M.H

مثلا

يعني اذا يجي شخص يدخل المكان اللي فيه الماركر ما يقدر الا اذا كان من هذا الفريق

Posted
-- Server Side 
theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) 
  
addEventHandler ( "onMarkerHit", theMarker, 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "M.H" ) then 
                moveObject ( dor1, 1000, -1736.5, 943.79998779297, 20 ) 
            end 
        end 
    end 
) 
  

+ ماشوفك استخدمت

createObject 

Posted

ابيه ماركر يسمح بس لتيم معين للدخول بداخله

واذا جا واحد من تيم اخر او نو تيم يدخل للماركر يصده ما يخليه يدخل

Posted

تبي احط حجمه دبل إكس لارج ؟؟

-- Server Side 
theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) 
  
addEventHandler ( "onMarkerHit", theMarker, 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "M.H" ) then 
                moveObject ( dor1, 1000, -1736.5, 943.79998779297, 20 ) 
            end 
        end 
    end 
) 
  

+ ماشوفك استخدمت

createObject 

Posted
-- Server Side 
theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) 
  
addEventHandler ( "onMarkerHit", theMarker, 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "M.H" ) then 
                moveObject ( dor1, 1000, -1736.5, 943.79998779297, 20 ) 
            end 
        end 
    end 
) 
  

+ ماشوفك استخدمت

createObject 

اضن هذا اللي كنت ابي اقوله

وين

createObject 

؟؟؟

Posted

شباب انا مبتدئ برمجة مدري وش سويت

ما ابي يكون كول شيب

ابيه ماركر

+ قلتلكم تصحيح الكود مو تقييم

Posted
شباب ابيكم تصححولي الكود

مو تعليقات او تقييم

جرب

  
theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) 
  
addEventHandler ( "onMarkerHit", theMarker, 
function MarkerHit( hitPlayer ) 
if (getTeamName(getPlayerTeam(hitPlayer))=="M.H")then 
وش تبي يصير اذا وقف الاعب على الماكر-- 
end ) 

Posted
-- Server Side 
theMarker = createMarker ( 187.79888916016, 1388.2546386719, 2, "cylinder", 100, 255, 255, 0, 170 ) 
      
addEventHandler ( "onMarkerHit", theMarker, 
    function ( thePlayer ) 
        if getElementType ( thePlayer ) == "player" then 
            if getPlayerTeam ( thePlayer ) == getTeamFromName ( "M.H" ) then 
                setElementHealth ( thePlayer, 0 ) 
            end 
        end 
    end 
) 
  

Posted

شكرا جزيلا عناد

لكن هل فيه طريقة ما تقتله بس ما تسمحله بالدخول

يعني لما يلمس الماركر يرجعه للوراء

Posted
شكرا جزيلا عناد

لكن هل فيه طريقة ما تقتله بس ما تسمحله بالدخول

يعني لما يلمس الماركر يرجعه للوراء

وش الفايدهـ تسوية اجل ؟

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