Jump to content

تصحيح كود


Recommended Posts

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

هذا الكود :

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

مثلا

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

Link to comment
-- 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 

Link to comment

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

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

Link to comment
-- 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 

؟؟؟

Link to comment
شباب ابيكم تصححولي الكود

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

جرب

  
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 ) 

Link to comment
-- 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 
) 
  

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