Jump to content

تصحيح


Recommended Posts

السلام عليكم

انا امس سويت كمان كود وفهمت امور if and then

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

لكن غيرته عند لمس الماركر يعطيه درع ما ضبط ممكن الحل؟

theMarker = createMarker ( 2031.53040, 1542.71863, 10.82031-1, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
addEventHandler ( "onClientMarkerHit",root, 
function( ) 
if source == theMarker then 
  
setPlayerArmor( 100 ) 
  
 end 
end 
) 

Link to comment

client

theMarker = createMarker ( 2031.53040, 1542.71863, 10.82031-1, "cylinder", 1.5, 255, 255, 0, 170 ) 
  
addEventHandler ( "onClientMarkerHit",root, 
  
function () 
  
if source == theMarker then 
  
triggerServerEvent ("armor",localPlayer) 
  
end 
end 
) 

server

addEvent ("armor", true) 
  
addEventHandler ("armor", root) 
  
function () 
  
setPlayerArmor( 100 ) 
  
end 
  
) 
  
  

meta


ما يشتغل

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