Jump to content

طلب فنكشات


Recommended Posts

  
addCommandHandler("mark", 
function ( player, cmd ) 
      if cmd then 
            local marker 
            local x = math.random( 1.4, 3.7 ) 
            local y = math.random( 4.2, 6.3 ) 
            local z = math.random( 1.3, 1.8 ) 
            if not ( isElement( marker ) ) then 
                 local marker = createMarker( x, y, z, "cylinder", 2, 255, 0, 0, root ) 
            else return outputChatBox("Could not create marker", player) 
            end 
     end 
end ) 
  

Link to comment
  
addCommandHandler("mark", 
function ( player, cmd ) 
      if cmd then 
            local marker 
            local x = math.random( 1.4, 3.7 ) 
            local y = math.random( 4.2, 6.3 ) 
            local z = math.random( 1.3, 1.8 ) 
            if not ( isElement( marker ) ) then 
                 local marker = createMarker( x, y, z, "cylinder", 2, 255, 0, 0, root ) 
            else return outputChatBox("Could not create marker", player) 
            end 
     end 
end ) 
  

انت احداثيات معينه لانه ما يشتغل بس تجي رساله

Link to comment
addEventHandler('onPlayerCommand',root, 
function ( doncommand ) 
    if doncommand == 'marker' then 
         local x, y, z = getElementPosition ( source ) -- يمكن ما تحتاجه اذا تبيه لـ مكان معين 
         local marker = createMarker ( x,y,z, 'cylinder', 1, 255, 255, 255, 150 ) 
         outputChatBox ( 'Successfully create the marker!',source, 255,255,0) 
    end 
end ) 

Link to comment
addEventHandler('onPlayerCommand',root, 
function ( doncommand ) 
    if doncommand == 'marker' then 
         local x, y, z = getElementPosition ( source ) -- يمكن ما تحتاجه اذا تبيه لـ مكان معين 
         local marker = createMarker ( x,y,z, 'cylinder', 1, 255, 255, 255, 150 ) 
         outputChatBox ( 'Successfully create the marker!',source, 255,255,0) 
    end 
end ) 

كفو اشتغل بس يروح لوحده بعد كم ثانيه

Link to comment
addEventHandler('onPlayerCommand',root, 
function ( doncommand ) 
    if doncommand == 'marker' then 
         local x, y, z = getElementPosition ( source ) -- يمكن ما تحتاجه اذا تبيه لـ مكان معين 
         local marker = createMarker ( x,y,z, 'cylinder', 1, 255, 255, 255, 150 ) 
         outputChatBox ( 'Successfully create the marker!',source, 255,255,0) 
    end 
end ) 

كفو اشتغل بس يروح لوحده بعد كم ثانيه

كيف يروح لـ " وحده " ؟

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