Jump to content

تصحيح كود


Recommended Posts

سلام عليكم

 

ابي اسوي مهمة

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

 

محاولاتي

positionSpawn = {
{-1342.63623, -493.42276, 14.17188},
{-1346.38293, -480.58237, 14.17761},
{-1358.17273, -469.03412, 14.17188},
{-1363.95496, -471.81088, 14.17761},
{-1372.91296, -477.62204, 14.17761},
{-1379.52441, -487.14044, 14.17188},
{-1380.61511, -500.12457, 14.17188},
{-1368.32007, -497.55319, 14.17188},
}

setElementPosition( localPlayer, positionSpawn[math.random(1, #positionSpawn)][1] )

 

Link to comment
positionSpawn = {
{-1342.63623, -493.42276, 14.17188},
{-1346.38293, -480.58237, 14.17761},
{-1358.17273, -469.03412, 14.17188},
{-1363.95496, -471.81088, 14.17761},
{-1372.91296, -477.62204, 14.17761},
{-1379.52441, -487.14044, 14.17188},
{-1380.61511, -500.12457, 14.17188},
{-1368.32007, -497.55319, 14.17188},
}

setElementPosition( localPlayer, unpack(positionSpawn[math.random(1, #positionSpawn)]) )

 

Link to comment

ملاحظة بسيطة, إستعمال الماث راندوم ممكن يكرر نفس القيمة وهنا راح يرسبنون فوق بعض

الأصح استعمال المتغيرات وتزيدها مع كل دخول لاعب

 

Edited by N3xT
Link to comment
2 hours ago, Trefeor said:

positionSpawn = {
{-1342.63623, -493.42276, 14.17188},
{-1346.38293, -480.58237, 14.17761},
{-1358.17273, -469.03412, 14.17188},
{-1363.95496, -471.81088, 14.17761},
{-1372.91296, -477.62204, 14.17761},
{-1379.52441, -487.14044, 14.17188},
{-1380.61511, -500.12457, 14.17188},
{-1368.32007, -497.55319, 14.17188},
}

setElementPosition( localPlayer, unpack(positionSpawn[math.random(1, #positionSpawn)]) )

 

هآدآ آتوقع ممكن آتنين يجي نفس آلقيمة حقت آلمآث رآندوم

آلآفضل تسوي . لمآ يدخل آلآعب يروح آلسبآون رقم 1 ولمآ يدخل آلآعب آلتآني يروح سبآون رقم 2 , وآلخ

Link to comment
3 hours ago, +Source|> said:

سلام عليكم

 

ابي اسوي مهمة

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

 

محاولاتي


positionSpawn = {
{-1342.63623, -493.42276, 14.17188},
{-1346.38293, -480.58237, 14.17761},
{-1358.17273, -469.03412, 14.17188},
{-1363.95496, -471.81088, 14.17761},
{-1372.91296, -477.62204, 14.17761},
{-1379.52441, -487.14044, 14.17188},
{-1380.61511, -500.12457, 14.17188},
{-1368.32007, -497.55319, 14.17188},
}

setElementPosition( localPlayer, positionSpawn[math.random(1, #positionSpawn)][1] )

 

انت عندك سرفر تكتيك وش دخل ذول

عندك سرفر اخر ؟ 

:-)

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