ما تقدر بس تقدر تصنع سيارة من الـ0
مثلا تجيب اوبجكت شبه السيارة او شي هيك تحط له تي اكس دي
تسوي لما للاعب يبقا علي مسافة منو مثلا 10 متر
و يدوس انتر يخفي اللاعب و يسوي له
attachElements
مع الأوبجكت و خلي الأوبجكت يتحرك تسوي
setElementPosition
getElementPosition
و عشان تخلي سرعتها تزيد او تقل
سوي
Speed = Speed + 1
setElementPosition(obj, x + Speed, y, z) -- ده مثال
كدا يعني ما هي سهلة ترا
انا لما سويت الغواصة دوختني عشان اخلها تمشي تحت الماء
المهم انا قلت لك الطريقة فوق
لول دي منشورة و انا نزلتها مثل اي سيرفر طورتها و تارك حقوقهم لك شي فيها ؟
الكل يستعملها
اي اس - سرك - عرب كوم
+
الكل يستعملها زي ما هي انا الوحيد الي فكرت اطورها شوف التطوير و شوفها قبل
http://prntscr.com/bw1iy0
http://prntscr.com/bw1j1g
http://prntscr.com/bw1j4u
http://prntscr.com/bw1j7t
المود كان عبارة عن
اظهار - اخفاء - قفل - اضاءة - علامة - بيع
تمام
انا ضفت
- طرد اللاعبين من السيارة - سحب اللاعب للسيارة - السبكتات للسيارة - تشغيل و اطفاء السيارة - عدل وضعية السيارة
لك بقا فيها شي ؟
ياليت نكون بعيدين عن هالألفاظ ولا تنسى تراك مب مبرمج محترف ويمكن ماتعرف تركب كودين ع بعضهم ف هالألفاظ ما يصلح تنقال قول عنه متعلم.
ذا بيست
لا تنسى ماضيك حبيبي
لا تخلني افصح عنه
لهيك لا تكبرها
http://prntscr.com/bw0a08
http://prntscr.com/bw0a3t
http://prntscr.com/bw0a8q
http://prntscr.com/bw0abm
http://prntscr.com/bw0afc
نكمل ولا يكفي ؟؟
كل واحد بدايتو نوب اكيد يجيب و يعدل
لا تقول بقا خلني ساكت لحسن افضح ماضيك ترا واضحة يعني ان الكل بادي طلب جاهز
شنوووووووووووووووووووووووهذذذذذذذذاع
شنو هذا يا راجل
ما في شي واحد يجيب البست هنا
+ قال بست
يعني لاعب 1
يعني يستخدم
table = {}
getElementData
for i, player in ipairs(getElementsByType("player")) do
table.insert
table.sort
CurrentDepth = 0
function MoveSubmarine()
local Waterlevel = getWaterLevel()
local x, y, z = getElementPosition(theobject)
local check = isElementInWater(theobject)
local vehiclecheck = isPedInVehicle ( source )
if getKeyState( "arrow_u" ) == true and check == true and vehiclecheck == true then
CurrentDepth = CurrentDepth + 1
setElementPosition(theobject, x, y, z - CurrentDepth)
elseif getKeyState( "arrow_d" ) == true and check == true and vehiclecheck == true then
CurrentDepth = CurrentDepth - 1
setElementPosition(theobject, x, y, z - CurrentDepth)
end
end
Will make a proper code later on, i'm currently scripting it on my phone.Will fix it once i'm home
your code is wrong
there is something is undefind like source ?
what is this from where you get is i don't see any event
All what you need is:
isPedInVehicle()
getPedOccupiedVehicle()
isElementInWater()
getElementPosition()
setElementPosition()
i try to do this but it make the submarine go up
Hi all i have got a problem with Submarine
i have Create a Submarine and it work good
but i don't know how to make it go down
i try
setElementPosition
but when it go down it go up again so
i need some help
Markers = {
{z, y, x}
}
for i=1,#Markers do
local x, y, z = Markers[i][1], Markers[i][2], Markers[i][3]
local Marker = createMarker(x, y, z-1, "cylinder", 1, 225, 255, 0, 150)
end