☠ RaZeR ☠ Posted April 29, 2014 Share Posted April 29, 2014 هلا شباب اناا عندي ملف broph.lua عدلت عليه واشتغل بس مايطلع الشخصيه حقت الهجوله id:46 الكوود ----------------------------------------------------------------------------------------------------------------- addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) local posB = { {-3694.53979,-2994.83765,109.55537}, -- المكان الاول {-3693.61548,-3000.81396,109.55537}, -- الثاني {-3694.32080,-3005.88672,109.55537}, -- الثالث } function spawn(player) if not isElement(player) then return end spawnPlayer ( player,unpack(posB[math.random(1,3)]) ) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) Link to comment
ΞĪŚŚÀ Posted April 29, 2014 Share Posted April 29, 2014 هلا شباباناا عندي ملف broph.lua عدلت عليه واشتغل بس مايطلع الشخصيه حقت الهجوله id:46 الكوود ----------------------------------------------------------------------------------------------------------------- addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) local posB = { {-3694.53979,-2994.83765,109.55537}, -- المكان الاول {-3693.61548,-3000.81396,109.55537}, -- الثاني {-3694.32080,-3005.88672,109.55537}, -- الثالث } function spawn(player) if not isElement(player) then return end spawnPlayer ( player,unpack(posB[math.random(1,3)]) ) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) قصدك تبي شخصة الثوب تطلع ؟ وكودك مب نفس الي تبيه Link to comment
shwaeki Posted April 29, 2014 Share Posted April 29, 2014 تفضل addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) local posB = { {-3694.53979,-2994.83765,109.55537}, -- المكان الاول {-3693.61548,-3000.81396,109.55537}, -- الثاني {-3694.32080,-3005.88672,109.55537}, -- الثالث } function spawn(player) if not isElement(player) then return end spawnPlayer ( player,unpack(posB[math.random(1,3)]) ) setElementModel (player, 46 ) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) Link to comment
☠ RaZeR ☠ Posted April 29, 2014 Author Share Posted April 29, 2014 تفضل addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) local posB = { {-3694.53979,-2994.83765,109.55537}, -- المكان الاول {-3693.61548,-3000.81396,109.55537}, -- الثاني {-3694.32080,-3005.88672,109.55537}, -- الثالث } function spawn(player) if not isElement(player) then return end spawnPlayer ( player,unpack(posB[math.random(1,3)]) ) setElementModel (player, 46 ) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) شكرا نسيت اناا setElementModel (player, 46 ) Link to comment
</Mr.Tn6eL> Posted April 29, 2014 Share Posted April 29, 2014 تفضل addEventHandler("onResourceStart", resourceRoot, function() for i,player in ipairs(getElementsByType("player")) do spawn(player) end end ) local posB = { {-3694.53979,-2994.83765,109.55537}, -- المكان الاول {-3693.61548,-3000.81396,109.55537}, -- الثاني {-3694.32080,-3005.88672,109.55537}, -- الثالث } function spawn(player) if not isElement(player) then return end spawnPlayer ( player,unpack(posB[math.random(1,3)]) ) setElementModel (player, 46 ) fadeCamera(player, true) setCameraTarget(player, player) showChat(player, true) end addEventHandler("onPlayerJoin", root, function() spawn(source) end ) addEventHandler("onPlayerWasted", root, function() setTimer(spawn, 1800, 1, source) end ) شكرا نسيت اناا setElementModel (player, 46 ) bool spawnPlayer ( player thePlayer, float x, float y, float z, [ int rotation = 0, int skinID = 0, int interior = 0, int dimension = 0, team theTeam = nil ] ) 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