aL.Kfo Posted September 7, 2013 Share Posted September 7, 2013 السسلام عليكم كيفكم معي كود مدري تبع مين المهم الكود عاجبني بس نااقصه شي واحد ان يكون الماركر ل تيم معين ما يخشه غير ذا التيم ابي واحد مبدع يتكرمم و يحط علية اضافه ان الماركر م يخششه الا التيم الاي احددة و للمعلومية لا حد يقول حاول ليني حاولت لين طفشت 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
Stranger Posted September 7, 2013 Share Posted September 7, 2013 السسلام عليكم كيفكم معي كود مدري تبع مين المهم الكود عاجبني بس نااقصه شي واحد ان يكون الماركر ل تيم معين ما يخشه غير ذا التيم ابي واحد مبدع يتكرمم و يحط علية اضافه ان الماركر م يخششه الا التيم الاي احددة و للمعلومية لا حد يقول حاول ليني حاولت لين طفشت 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
aL.Kfo Posted September 7, 2013 Author Share Posted September 7, 2013 الله يكثر من امثالك بجربه و لي باك Link to comment
aL.Kfo Posted September 7, 2013 Author Share Posted September 7, 2013 والله ي بعدي انا سويت تيم من لوحه التحكم و حطيت نفس اسم التيم في الكود يدخل الكل Link to comment
AHMAD1234 Posted September 7, 2013 Share Posted September 7, 2013 جرب 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
aL.Kfo Posted September 7, 2013 Author Share Posted September 7, 2013 جرب 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
AHMAD1234 Posted September 7, 2013 Share Posted September 7, 2013 حياك الله يالحبيب & Manster يب كفو Link to comment
Stranger Posted September 8, 2013 Share Posted September 8, 2013 الله يكثر من امثالك بجربه و لي باك وامثالك ,, حياك الله ,, Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now