Jump to content

تصحيح كود


Recommended Posts

السلام عليكم

ابي هنا الكود انه اي لاعب بس يلمس الماركر يحصل على الفلوس لحاططها

بس الماركر ما تظهر شو الحل

الكود هذا هو:

local theMarker = createMarker (2500.21802,-1674.24170,13.34984, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler("onMarkerHit", theMarker, 
function (thePlayer)if 
 ( getElementType ( thePlayer ) == 'player' ) then 
  setPlayerMoney(root, 1000) 
        end 
    end 
end 
) 

Link to comment
local theMarker = createMarker ( -2412.3999023438, -605.56671142578, 132.5625, "cylinder", 1.5, 255, 255, 0, 170 )  
  
addEventHandler("onMarkerHit", theMarker,  
function (thePlayer)    
if getElementType ( thePlayer ) == 'player' then   
setPlayerMoney( thePlayer, 1000)   
    end 
end 
) 

لاتنسى تحط الاحداثيات حقتك

Link to comment
local theMarker = createMarker( 
2500.21802,-1674.24170,13.34984, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler("onMarkerHit", theMarker, 
function (   element    ) 
          if ( getElementType ( element ) == 'player' ) then 
                 givePlayerMoney(element, 1000) 
        end 
  end 
) 

Link to comment
local theMarker = createMarker( 
2500.21802,-1674.24170,13.34984, "cylinder", 1.5, 255, 255, 0, 170 ) 
addEventHandler("onMarkerHit", theMarker, 
function (   element    ) 
          if ( getElementType ( element ) == 'player' ) then 
                 givePlayerMoney(element, 1000) 
        end 
  end 
) 

:o:o:o:o:o:o

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