Jump to content

كودات


Recommended Posts

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

ع العموم ذا الكود الماركر

by AHMAD1234

  
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 
) 

ووش قصدك ب

وكود فريقين الي يدخلون ويتقاتلون :?

ذا الاي اعرفه لو عندي خبره اكثر طيبت خاطرك :D

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