-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
اصلاً ما فيه وظيفة اسمها onResourceRestart يعني من المستحيل انك تعرف ان الادمنية اتسوى لها ريستارت الا اذا مثلاً جبت فكرة من عندك او تحققت من ال console ولوحة الادمنية
-
حبيبي الكود الي انت طارحه فقط عبارة عن وظائف مو كود
-
الشكر لله .. العفو ^^
-
بدل هذي بالاخرى function D5(vehicle, player) local Speed = getElementSpeed(vehicle,"kmh") if Speed >= 10 then local x,y,z = getElementPosition(vehicle) if isElement(objects[player]) then return end objects[player] = createObject(2780, x, y, z-2, 0, 0, 0) setElementAlpha(objects[player], 0.0) attachElements(objects[player], vehicle, 0, -2, -1) else if isElement(objects[player]) then destroyElement(objects[player]) objects[player] = nil end end end
-
local timers = {} local objects = {} function getElementSpeed(element,unit) if (unit == nil) then unit = 0 end if (isElement(element)) then local x,y,z = getElementVelocity(element) if (unit=="mph" or unit==1 or unit =='1') then return (x^2 + y^2 + z^2) ^ 0.5 * 100 else return (x^2 + y^2 + z^2) ^ 0.5 * 1.61 * 100 end else outputDebugString("Not an element. Can't get speed") return false end end function D5(vehicle, player) local Speed = getElementSpeed(vehicle,"kmh") if Speed >= 10 then local x,y,z = getElementPosition(vehicle) if isElement(objects[player]) then return end objects[player] = createObject(2780, x, y, z-2, 0, 0, 0) attachElements(objects[player], vehicle, 0, -2, -1) else if isElement(objects[player]) then destroyElement(objects[player]) objects[player] = nil end end end addEventHandler("onVehicleEnter", C, function(thePlayer, seat) if seat == 0 then timers[thePlayer] = setTimer(D5, 1000, 0, source, thePlayer) end end ) addEventHandler("onVehicleExit", C, function(thePlayer, seat) if seat == 0 then if isTimer(timers[source]) then killTimer(timers[source]) timers[source] = nil if isElement(objects[source]) then destroyElement(objects[source]) objects[source] = nil end end end end ) addEventHandler("onPlayerQuit", root, function() if isTimer(timers[source]) then killTimer(timers[source]) timers[source] = nil if isElement(objects[source]) then destroyElement(objects[source]) objects[source] = nil end end end ) C جرب هذا وحطه تحت كود سيارة
-
وريني كودك بالكامل
-
local timers = {} local objects = {} function D5(vehicle, player) local Speed = getElementSpeed(vehicle,"kmh") if Speed >= 10 then local x,y,z = getElementPosition(vehicle) if isElement(objects[player]) then return end objects[player] = createObject(2780, x, y, z-2, 0, 0, 0) attachElements(objects[player], vehicle, 0, -2, -1) else if isElement(objects[player]) then destroyElement(objects[player]) objects[player] = nil end end end addEventHandler("onVehicleEnter", root, function(thePlayer, seat) if seat == 0 then timers[thePlayer] = setTimer(D5, 1000, 0, source, thePlayer) end end ) addEventHandler("onVehicleExit", root, function(thePlayer, seat) if seat == 0 then if isTimer(timers[source]) then killTimer(timers[source]) timers[source] = nil if isElement(objects[source]) then destroyElement(objects[source]) objects[source] = nil end end end end ) addEventHandler("onPlayerQuit", root, function() if isTimer(timers[source]) then killTimer(timers[source]) timers[source] = nil if isElement(objects[source]) then destroyElement(objects[source]) objects[source] = nil end end end ) جربتها واشتغلت ^
-
local timers = {} local objects = {} function D5(vehicle, player) local Speed = getElementSpeed(vehicle,"kmh") if Speed >= 10 then local x,y,z = getElementPosition(vehicle) objects[player] = createObject(2780, x, y, z-2, 0, 0, 0) attachElements(d5an, vehicle, 0, -2, -1) else if isElement(objects[player]) then destroyElement(objects[player]) end end end addEventHandler("onVehicleEnter", root, function(thePlayer, seat) if seat == 0 then timers[thePlayer] = setTimer(D5, 1000, 0, source, thePlayer) end end ) addEventHandler("onVehicleExit", root, function(thePlayer, seat) if seat == 0 then if isTimer(timers[thePlayer]) then killTimer(timers[thePlayer]) timers[thePlayer] = nil destroyElement(objects[thePlayer]) objects[thePlayer] = nil end end end ) addEventHandler("onPlayerQuit", root, function() if isTimer(timers[source]) then killTimer(timers[source]) timers[source] = nil destroyElement(objects[source]) objects[source] = nil end end )
-
كيف تحطها سيرفر وانت معرف ال بلاير لوكال هنا؟ local vehicle = getPedOccupiedVehicle ( localPlayer )
-
اذا مو متآكد ليش اساعد؟.
-
function D5() local vehicle = getPedOccupiedVehicle(localPlayer) if vehicle then local Speed = getElementSpeed(vehicle,"kmh") if Speed >= 10 then local x,y,z = getElementPosition(vehicle) d5an = createObject(2780, x, y, z-2, 0, 0, 0) attachElements(d5an, vehicle, 0, -2, -1) else if isElement(d5an) then destroyElement(d5an) end end end end addEventHandler("onClientVehicleEnter", root, function(thePlayer, seat) if seat == 0 then updateTimer = setTimer(D5, 50, 0) end end ) addEventHandler("onClientVehicleExit", root, function(thePlayer, seat) if seat == 0 then if isTimer(updateTimer) then killTimer(updateTimer) updateTimer = nil end end end )
-
استخدم هذي في "\n"
-
I suggest using 50p's .dff exporter for 3ds max.
-
Hi, i'd like to suggest making occupancy option for server browser that player could search on servers sorted by occupancy number they entered like video below i hope my idea gets applied this time.
-
يمديك تستخدم هذا function AboShanab ( attacker, weapon, bodypart ) if weapon == 16 or weapon == 17 or weapon == 18 or weapon == 37 or weapon == 41 or weapon == 42 then if attacker == source or getPlayerTeam(attacker) == getPlayerTeam(source) then cancelEvent() end end end addEventHandler ( "onClientPlayerDamage", localPlayer, AboShanab ) او هذا function AboShanab ( attacker, weapon, bodypart ) local weapons = {[16]=true, [17]=true, [18]=true, [37]=true, [41]=true, [42]=true} if weapons[weapon] then if attacker == source or getPlayerTeam(attacker) == getPlayerTeam(source) then cancelEvent() end end end addEventHandler ( "onClientPlayerDamage", localPlayer, AboShanab ) الاثنين شغالين ان شاء الله
-
اذا الموضوع كودات ينقل الى قسم البرمجة
-
اذا تبي تجيب لاعب من وسط لاعبين السيرفر عنك مليون طريقة عشان تجيبه بها مثل تجيبه من اسمه تجيبه من سيريله تجيبه من الآي بي الخ .. مثال على الاسم : for i, v in ipairs(getElementsByType("player")) do -- ندور على كل اللاعبين local name = getPlayerName(v) -- نجيب اسم كل لاعب if name == "M-d-MR" then -- اذا اسم اللاعب هذا كذلك banPlayer(v) -- يبند هذا اللاعب end end
-
ليش ما تحط السبات بعد ما يساعدونك .. بعد إذنك .. هذا منتدى محترم
-
حقك جربه clipboard لا ياخوي هذا بعد ما تحط الماركر وتضبط احداثياتها اضغط انتر وكود الماركر رح ينتقل الى ال .. ومشكروين على الي ردوا فوق
-
ينقل الى قسم البرمجة