Jump to content

طلب تصحيح كود


MOMO3011

Recommended Posts

ارجو تصحيح الكود التالي

--******************* 
-- By Manster .. 
--******************* 
local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت 
addEventHandler("onMarkerHit", Manstermarker, 
    function (player) 
       if getElementType(player) == "player" then 
       if ( isPedInVehicle(player) ) then return end 
       if ( getElementData(player, "Group") ~= "Group Name" ) then 
       outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) 
       else 
      outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) 
      setElementInterior(player, 1) 
      setElementPosition(player, x,y,z)-- احداثيات دخول البيت 
           end 
      end 
end) 
  
local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت 
setElementInterior(Manstermarker2, 1) 
addEventHandler("onMarkerHit", Manstermarker2, 
    function (MarkerHit) 
           if getElementType(MarkerHit) == "player" then 
           if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then 
           outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) 
          else 
          setElementInterior(MarkerHit, 0) 
          setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت 
         outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) 
        end 
     end   
end) 
  

Link to comment
ارجو تصحيح الكود التالي
--******************* 
-- By Manster .. 
--******************* 
local Manstermarker = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر خارج البيت 
addEventHandler("onMarkerHit", Manstermarker, 
    function (player) 
       if getElementType(player) == "player" then 
       if ( isPedInVehicle(player) ) then return end 
       if ( getElementData(player, "Group") ~= "Group Name" ) then 
       outputChatBox("#FF0000* This House Only For Group Name ", player, 255, 255, 0, true) 
       else 
      outputChatBox("#00ff00* Hello #fff000.:[#ff0000 "..getPlayerName(player).." #fff000]:.", player, 255, 255, 0, true) 
      setElementInterior(player, 1) 
      setElementPosition(player, x,y,z)-- احداثيات دخول البيت 
           end 
      end 
end) 
  
local Manstermarker2 = createMarker(x,y,z, "arrow", 2, 251, 96, 3, 153)-- احداثيات الماركر داخل البيت 
setElementInterior(Manstermarker2, 1) 
addEventHandler("onMarkerHit", Manstermarker2, 
    function (MarkerHit) 
           if getElementType(MarkerHit) == "player" then 
           if ( getElementData(MarkerHit, "Group") ~= "Group Name" ) then 
           outputChatBox("#FF0000* This House Only For Group Name ", MarkerHit, 255, 255, 0, true) 
          else 
          setElementInterior(MarkerHit, 0) 
          setElementPosition(MarkerHit, x,y,z)-- احداثيات خارج البيت 
         outputChatBox("#FF0000*Good Bye #fff000.:[ #ff0000"..getPlayerName(MarkerHit).." #fff000]:.", MarkerHit, 255, 255, 0, true) 
        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...