Emgawe.117 Posted June 30, 2016 Share Posted June 30, 2016 السلام عليككم اخباكم انشالله تمام آبي كود اذا مات الكل يتغير الماب تلقائي Link to comment
فاّرس Posted June 30, 2016 Share Posted June 30, 2016 كـ مثال : addCommandHandler ( 'newMap', function () if #getDeadPlayers() == getPlayerCount() then -- etc. end end) وانت مثلا سوي جدول لأسماء المابات وخليه يشتغل ماب عشوائي اذا تبي زي كذا . Link to comment
Emgawe.117 Posted June 30, 2016 Author Share Posted June 30, 2016 ولكمو Mr.Sha67 -- -- شف اخي انا مأعرف في الجداول بس حاولت وشف ذا صح او غلط؟ Map1 = { Note = {} } Map1 = { Map1 = {} } Map16 = {} Map16 = { Map16 = {} } Map19 = { Map19 = {} } Map90 = { Map90 = {} } Map191 = { Map191 = {} } Map166 = { Map166 = {} } Link to comment
Emgawe.117 Posted June 30, 2016 Author Share Posted June 30, 2016 سـأعدونا كنكم أنتم؟ ._. Link to comment
فاّرس Posted July 1, 2016 Share Posted July 1, 2016 حط اسم الماب اللي تبيه مثلاً كذا : اذا تبيه بالترتيب : local Maps, count = { 'Fallout', 'Hay', 'play', 'deathmtach' }, {} addCommandHandler ( 'newMap', function ( plr ) if #getDeadPlayers() == getPlayerCount() then if not count [ plr ] then count [ plr ] = 0; end if count [ plr ] == #Maps then count [ plr ] = 0; end count [ plr ] = count [ plr ] + 1 local r = Maps [ count [ plr ] ] outputChatBox ( r, plr ) end end) اما اذا تبيه عشوائي : local Maps = { 'Fallout', 'Hay', 'play', 'deathmtach' } addCommandHandler ( 'newMap', function ( plr ) if #getDeadPlayers() == getPlayerCount() then local r = Maps [ math.random ( #Maps )] outputChatBox ( r, plr ) end end) Link to comment
Emgawe.117 Posted July 5, 2016 Author Share Posted July 5, 2016 ما ظبط؟ --- local Maps = { 'Fallout', 'Hay', 'play', 'deathmtach' } addCommandHandler ( 'newMap', function ( plr ) if #getDeadPlayers() == getPlayerCount() then local r = Maps [ math.random ( #Maps )] outputChatBox ( r, plr ) end end) 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