Jump to content

اضافه ع كود الماركر


aL.Kfo

Recommended Posts

السسلام عليكم

كيفكم

معي كود مدري تبع مين

المهم الكود عاجبني بس نااقصه شي واحد ان يكون الماركر ل تيم معين ما يخشه غير ذا التيم

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

و للمعلومية لا حد يقول حاول ليني حاولت لين طفشت

lua]

marker = createMarker( x,y,z, "cylinder", 2, 255, 255, 0, 255 )

addEventHandler("onPlayerJoin",root,function()

setElementData(source,"Hit",true)

end

)

addEventHandler("onMarkerHit",marker,

function(player)

if getElementType(player) == "player" then

if ( getElementData(player,"Hit") == true ) then

setElementData(player,"Hit",false)

setElementPosition(player,x,y,z)

outputChatBox("Welcome",player,255,0,0,true)

else

outputChatBox("You Not Can Join To Marker",player,255,0,0,true)

end

end

end

)

setTimer(function() for i,v in ipairs (getElementsByType("player")) do

setElementData(v,"Hit",true)

end

end,5000,0

)[/lua]

الله يفقكم @

Link to comment
السسلام عليكم

كيفكم

معي كود مدري تبع مين

المهم الكود عاجبني بس نااقصه شي واحد ان يكون الماركر ل تيم معين ما يخشه غير ذا التيم

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

و للمعلومية لا حد يقول حاول ليني حاولت لين طفشت

  
marker = createMarker( x,y,z, "cylinder", 2, 255, 255, 0, 255 ) 
addEventHandler("onPlayerJoin",root,function() 
setElementData(source,"Hit",true) 
end 
) 
addEventHandler("onMarkerHit",marker, 
function(player) 
if getElementType(player) == "player" then 
if ( getElementData(player,"Hit") == true ) then 
setElementData(player,"Hit",false) 
setElementPosition(player,x,y,z) 
outputChatBox("Welcome",player,255,0,0,true) 
else 
outputChatBox("You Not Can Join To Marker",player,255,0,0,true) 
end 
end 
end 
) 
setTimer(function() for i,v in ipairs (getElementsByType("player")) do 
setElementData(v,"Hit",true) 
end 
end,5000,0 
) 

الله يفقكم @

  
local marker = createMarker( x,y,z, "cylinder", 2, 255, 255, 0, 255 ) 
addEventHandler("onPlayerJoin",root,function() 
setElementData(source,"Hit",true) 
end 
) 
addEventHandler("onMarkerHit",marker, 
function(player) 
if getElementType(player) == "player" then 
if getPlayerTeam ( player ) == getTeamFromName ( "اسم التيم" ) then 
if ( getElementData(player,"Hit") == true ) then 
setElementData(player,"Hit",false) 
setElementPosition(player,x,y,z) 
outputChatBox("Welcome",player,255,0,0,true) 
else 
outputChatBox("You Can't Join To Marker",player,255,0,0,true) 
end 
end 
end 
end 
) 
setTimer(function() for i,v in ipairs (getElementsByType("player")) do 
setElementData(v,"Hit",true) 
end 
end,5000,0 
) 

Link to comment

:?جرب

  
local marker = createMarker( x,y,z, "cylinder", 2, 255, 255, 0, 255 ) 
addEventHandler("onPlayerJoin",root,function() 
setElementData(source,"Hit",true) 
end 
) 
addEventHandler("onMarkerHit",marker, 
function(player) 
if getElementType(player) == "player" then 
if ( getTeamName( getPlayerTeam( player ) ) == "اسم الفريق" ) then 
if ( getElementData(player,"Hit") == true ) then 
setElementData(player,"Hit",false) 
setElementPosition(player,x,y,z) 
outputChatBox("Welcome",player,255,0,0,true) 
else 
outputChatBox("You Can't Join To Marker",player,255,0,0,true) 
end 
end 
end 
end 
) 
setTimer(function() for i,v in ipairs (getElementsByType("player")) do 
setElementData(v,"Hit",true) 
end 
end,5000,0 
) 

Link to comment
:?جرب
  
local marker = createMarker( x,y,z, "cylinder", 2, 255, 255, 0, 255 ) 
addEventHandler("onPlayerJoin",root,function() 
setElementData(source,"Hit",true) 
end 
) 
addEventHandler("onMarkerHit",marker, 
function(player) 
if getElementType(player) == "player" then 
if ( getTeamName( getPlayerTeam( player ) ) == "اسم الفريق" ) then 
if ( getElementData(player,"Hit") == true ) then 
setElementData(player,"Hit",false) 
setElementPosition(player,x,y,z) 
outputChatBox("Welcome",player,255,0,0,true) 
else 
outputChatBox("You Can't Join To Marker",player,255,0,0,true) 
end 
end 
end 
end 
) 
setTimer(function() for i,v in ipairs (getElementsByType("player")) do 
setElementData(v,"Hit",true) 
end 
end,5000,0 
) 

ما قصرت ي كنق ياخي م فيه تقيم اقيمك ^_^ ولا يهون مانستر

الكود شغال زي الفل و نفس ططلبي

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