Sign in to follow this  
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]

الله يفقكم @

Share this post


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

كيفكم

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

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

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

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

  
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 
) 

Share this post


Link to post

والله ي بعدي

انا سويت تيم من لوحه التحكم و حطيت نفس اسم التيم في الكود

يدخل الكل

Share this post


Link to post

:?جرب

  
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 
) 

Share this post


Link to post
:?جرب
  
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 
) 

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

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

Share this post


Link to post
الله يكثر من امثالك

بجربه و لي باك

وامثالك ,,

حياك الله ,,

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.