RLP[Farouk]
-
Posts
70 -
Joined
-
Last visited
Posts posted by RLP[Farouk]
-
-
خلص
انا عرفت من ايش كانت المشكلة
-
بقلك انا جربت مش زابط
-
السلام عليكم
ممكن تشوفو هالكود
كيف بدي المركبة تتلون ؟؟؟
وش احط محل
"?"
انا جربت vehicles[source]
بس ما زبط
vehicles[source] = createVehicle(id, x, y, z) setVehicleRotation (?, 0, 0, 180 ) setVehicleColor(?,34,64,170,255,255,255) warpPedIntoVehicle(source,vehicles[source])
-
يب اشتغل
بس تيجي السيارة وتختفي ع سريع
-
مو ظابط
خلص انسه الموضوع
-
vehicle = {} local TableMarker = { { x = 1556.6724853516, y = -1606.4342041016, z = 12.3 }, { x = 1544.0750732422, y = -1609.6583241953, z = 12.3 } } addEventHandler ( 'onResourceStart', resourceRoot, function ( ) for _, m in ipairs ( TableMarker ) do local marker = createMarker ( m.x, m.y, m.z ) end addEventHandler ( 'onMarkerHit', marker, onHit ) end ) function onHit (thePlayer ) if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end vehicle[source] = createVehicle ( 596, getElementPosition (x,y,z) ) warpPedIntoVehicle ( thePlayer,vehicle[source] ) end
ما يصير شي
ويعطيني
WARNING >> AddEventHandler
-
طيب مثلا انا عملت كمان ماركر
وانا بروح اخد سيارة من ماركر الاول
ورحت اخد كمان سيارة من الماركر الثاني
كيف بدي تختفي السيارة الي اختها من الماركر الاول ؟؟
اسف من كثر الطلبات
هذه اخر طلب لاني بدي انهيه
-
جرب الطريقة هذي
vehicle = { } vehicle[source] = createVehicle ( ... ) if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end
مشكووووور
-
جرب الطريقة هذي
vehicle = { } vehicle[source] = createVehicle ( ... ) if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end
بس اجي على الماركر بوقف وما يصير شي
يمكن انا وضعته غلط ...
function g() setElementData(source,"xxx",tostring("Yes")) end addEventHandler("onPlayerJoin",root,g) ma = createMarker (1556.6724853516,-1606.4342041016, 12.3, "cylinder", 2, 255, 0, 255, 150 ) vehicle = { } function M( thePlayer ) get = getElementData(thePlayer,"xxx") if get == "Yes" then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) if getElementModel( thePlayer ) == 287 then vehicle[source] = createVehicle ( 596, x, y, z ) setVehicleColor(vehicle[source],27,54,160,255,255,255) warpPedIntoVehicle(thePlayer,vehicle[source]) if isElement ( vehicle[source] ) then destroyElement ( vehicle[source] ) end end end end end addEventHandler( "onMarkerHit", ma, M )
-
function g() setElementData(source,"xxx",tostring("Yes")) end addEventHandler("onPlayerJoin",root,g) ma = createMarker (1556.6724853516,-1606.4342041016, 12.3, "cylinder", 2, 255, 0, 255, 150 ) function M( thePlayer ) get = getElementData(thePlayer,"xxx") if get == "Yes" then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) if getElementModel( thePlayer ) == 287 then create = createVehicle ( 596, x, y, z ) setVehicleColor( create,27,54,160,255,255,255) warpPedIntoVehicle(thePlayer,create) end end end end addEventHandler( "onMarkerHit", ma, M )
-
هو حاط الكود يآخذ مرة وحدة @@"
ElementData احذف كل شيء يخص الـ
اها مشكور بس حليتها من قبل
+
باقي مشكلة
انا اخت سيارة من الماركر
واروح مرا ثانيه اخد كمان سيارة من الماركر
السيارة الي اختها اخر مرا بدي تختفي
حاولت اسويها بس الماركر يختفي والسيارة الي اختها
-
جرب
function g() setElementData(source,"xxx",tostring("Yes")) end addEventHandler("onPlayerJoin",root,g) ma = createMarker (x,y,z, "cylinder", 2, 255, 0, 255, 255 ) function M( thePlayer ) get = getElementData(thePlayer,"xxx") if get == "Yes" then if not isPedInVehicle(thePlayer) then x,y,z = getElementPosition( thePlayer ) create = createVehicle ( id, x, y, z )--Add Id warpPedIntoVehicle(thePlayer,create) setElementData(thePlayer,"xxx",tostring("No")) end end end addEventHandler( "onMarkerHit", ma, M )
ولاتنسى تضيف ألأي دي لسياره بدل كلمة
id
طيب انا اخت سيارة من الماركر
بس ما اقدر اخد كمان وحده
-
يعني من ملف ميتا اخليه سيرفر؟؟
-
local marker = createMarker( 1556.6724853516, -1606.4342041016, 12.3, "Cylinder", 1.5, 14, 64, 237, 150) function ps () local soso = getLocalPlayer() local x, y, z = getElementPosition ( soso ) createVehicle ( 596, x + 1, y, z ) end addEventHandler("onClientMarkerHit", marker, ps)
Note: Vehicles (and other elements) created client-side are only seen by the client that created them, aren't synced and players cannot enter them. They are essentially for display only.
طيب شو الحل
-
local marker = createMarker( 1556.6724853516, -1606.4342041016, 12.3, "Cylinder", 1.5, 14, 64, 237, 150) function ps () local soso = getLocalPlayer() local x, y, z = getElementPosition ( soso ) createVehicle ( 596, x + 1, y, z ) end addEventHandler("onClientMarkerHit", marker, ps)
-
تحطون لخابيط
-
طيب انا حطيته
بس ما يصيرلي وارب
-
السلام عليكم
كيفكم
لما اجي على الماركر وتنزل سيارة عسريع انا سويته
بس كيف بدي اخلي لما اجي على الماكر اركب السيارة عسريع ؟؟
يعني اول ما ادخل الماركير
وكيف بدي اخلي لما اخد السيارة واروح اخد كمان سيارة بدي تختفي السيارة الي نزلت قبل ؟؟
-
شباب
الوارب مو مزبوط !!!!!
جرب مليون طريقة مش زابطه
local vehicles = {} function spawnVeh(id) local setPed = createPed (source) local x, y, z = getElementPosition(source) if isElement(vehicles[source]) then destroyElement(vehicles[source]) end vehicles[source] = createVehicle(id, x +1, y, z) warpPedIntoVehicle (setPed, x,y,z) end addEvent("CreVehice",true) addEventHandler("CreVehice", root, spawnVeh)
-
مستعجل في الكتابه
-
جرب تحط ذا الكود
setElementParent(source, getElementByID("cops"))
تحت كود التيم
setPlayerTeam
مشكووووووووووووووووووووووووووور
مشكووووووووووووووووووووووووووور
الله يرزقك بنت الحلالللللللللللللل يا رببببببببب
واخيراااااااااااااااااااا
-
طيب
برضو المخالف لما امسكه ما ينمسك
شو الحللللللللللللللللللللل
ما عندك مود كاملللللللللللللللللللللللللل
وخلصصصص
والله تعبت
-
ما نحلت
WARNING: Loading script failed: 1policejob\client.lua:69: ')' expected (to close '(' at line 68) near 'guiRoot'
انت بتخبص بالكود
وش تسوي
انا مبتدئ
انسخ كودي الي فوق
مرة ثانية
نفس الايرور!
اعتقد ان المشكلة ما راح تنحل
-
ما نحلت
WARNING: Loading script failed: 1policejob\client.lua:69: ')' expected (to close '(' at line 68) near 'guiRoot'
انت بتخبص بالكود
طلب بسيط جدا
in البرمجة
Posted
من الايفينت انا كنت مخبص