Jump to content

--- طلب كود F8


Recommended Posts

function سلام عليكم ()

الـسلاام عليكمم وورححمة الله وبركاتته

function الطلب ()

ابي كود تكتب في اف 8 يظهر ماركار

end

)

:lol::lol::lol::lol::lol::lol:

function  new () 
  
local x,y,z = getElementPosition(source) 
  
 createMarker (x,y,z, "cylinder", 2, 244 , 87, 10, 255 ) 
  
outputChatBox("تم انشاء الماركر",source,0,255,0,true) 
  
 end 
  
addCommandHandler("ww",new) 

Edited by Guest
Link to comment
function  new () 
  
local x,y,z = getElementPosition(source) 
  
 createMarker (x,y,z, "cylinder", 2, 244 , 87, 10, 255 ) 
  
outputChatBox("تم انشاء الماركر",source,0,255,0,true) 
  
 end 
  
addCommandHandler("ww",new) 

السـورس غـير معرف بإحـضار الاحداثيات والشات بوكس

function createMarkerCmd(thePlayer) 
  local x, y, z = getElementPosition(thePlayer) 
   if createMarker (x, y, z, "cylinder", 2, 255 , 0, 0, 255 ) then 
     outputChatBox("createMarker .. Done!!",thePlayer, 255, 0, 0, true) 
   end 
end 
addCommandHandler("createMarker",createMarkerCmd) 
Link to comment
يفضل تسوي متغير للماركر ويوم تجي تكتب الكلمة تتحقق من وجوده

عشان مايكرر الماركرات , واستخدم التيبل اذا تبي تسوي ماركر لواحد كتب الكلمة

انا ابيه مايكرر الماركرات :arrowleft:

Edited by Guest
Link to comment

marker = {   } 
  
function createMarkerCmd(thePlayer) 
  local x, y, z = getElementPosition(thePlayer) 
  if isElement ( marker[thePlayer] ) then 
       destroyElement (marker[thePlayer]) 
  end 
  marker[thePlayer] = createMarker (x, y, z, "cylinder", 2, 255 , 0, 0, 255 ) 
  outputChatBox("createMarker .. Done!!",thePlayer, 255, 0, 0, true) 
end 
addCommandHandler("createMarker",createMarkerCmd) 

اذا كنت تـبي المـاركر ينحذف لمـا اللاعب الي صنع الماركر يطلع فـ ضيف عليه هـ الكود ;

addEventHandler('onPlayerQuit', root, function() 
 if isElement ( marker[thePlayer] ) then 
    destroyElement (marker[thePlayer]) 
    marker[thePlayer] = nil 
   end 
end) 
Link to comment
    marker = {   } 
      
    function createMarkerCmd(thePlayer) 
      local x, y, z = getElementPosition(thePlayer) 
      if isElement ( marker[thePlayer] ) then 
           destroyElement (marker[thePlayer]) 
      end 
      marker[thePlayer] = createMarker (x, y, z, "cylinder", 2, 255 , 0, 0, 255 ) 
      outputChatBox("createMarker .. Done!!",thePlayer, 255, 0, 0, true) 
    end 
    addCommandHandler("createMarker",createMarkerCmd) 
     
        addEventHandler('onPlayerQuit', root, function() 
     if isElement ( marker[thePlayer] ) then 
        destroyElement (marker[thePlayer]) 
        marker[thePlayer] = nil 
       end 
    end) 

Link to comment
    marker = {   } 
      
    function createMarkerCmd(thePlayer) 
      local x, y, z = getElementPosition(thePlayer) 
      if isElement ( marker[thePlayer] ) then 
           destroyElement (marker[thePlayer]) 
      end 
      marker[thePlayer] = createMarker (x, y, z, "cylinder", 2, 255 , 0, 0, 255 ) 
      outputChatBox("createMarker .. Done!!",thePlayer, 255, 0, 0, true) 
    end 
    addCommandHandler("createMarker",createMarkerCmd) 
     
        addEventHandler('onPlayerQuit', root, function() 
     if isElement ( marker[thePlayer] ) then 
        destroyElement (marker[thePlayer]) 
        marker[thePlayer] = nil 
       end 
    end) 

?

Link to comment
    marker = {   } 
      
    function createMarkerCmd(thePlayer) 
      local x, y, z = getElementPosition(thePlayer) 
      if isElement ( marker[thePlayer] ) then 
           destroyElement (marker[thePlayer]) 
      end 
      marker[thePlayer] = createMarker (x, y, z, "cylinder", 2, 255 , 0, 0, 255 ) 
      outputChatBox("createMarker .. Done!!",thePlayer, 255, 0, 0, true) 
    end 
    addCommandHandler("createMarker",createMarkerCmd) 
     
        addEventHandler('onPlayerQuit', root, function() 
     if isElement ( marker[thePlayer] ) then 
        destroyElement (marker[thePlayer]) 
        marker[thePlayer] = nil 
       end 
    end) 

  
    marker = {   } 
      
    function createMarkerCmd(thePlayer) 
      local x, y, z = getElementPosition(thePlayer) 
      if isElement ( marker[thePlayer] ) then 
           destroyElement (marker[thePlayer]) 
      end 
      marker[thePlayer] = createMarker (x, y, z, "cylinder", 2, 255 , 0, 0, 255 ) 
      outputChatBox("createMarker .. Done!!",thePlayer, 255, 0, 0, true) 
    end 
    addCommandHandler("createMarker",createMarkerCmd) 
     
        addEventHandler('onPlayerQuit', root, function() 
     if isElement ( marker[thePlayer] ) then 
        destroyElement (marker[thePlayer]) 
        marker[thePlayer] = nil 
       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...