Jump to content

Mohamed

Members
  • Posts

    109
  • Joined

  • Last visited

Everything posted by Mohamed

  1. يصير هيك يعني function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end addEventHandler('onResourceStart', resourceRoot, function () for k,v in ipairs(getElementsByType("player")) do f = getSerialData(v, "snhwa" ) if (f) then setElementData(v,"snhwa", f) end end end) addEventHandler('onPlayerQuit', root, function () my = getElementData(source,"snhwa") if (my) then setSerialData (root,getPlayerSerial(),"snhwa",my) end end)
  2. وش الغلط هون function setSerialData(serial,key,value) if( value and type(serial) == "string") then setElementData(root,serial.."&"..key,value) end end function getSerialData(serial,key) if ( key and type(serial) == "string") then value = getElementData(root,serial.."&"..key) end return value end addEventHandler('onResourceStart', resourceRoot, function () for k,v in ipairs(getElementsByType("player")) do f = getSerialData(v, "snhwa" ) if (f) then setElementData(v, f) end end end) addEventHandler('onPlayerQuit', root, function () my = getElementData(source,"snhwa") if (my) then getSerialData (getPlayerSerial(),my) end end)
  3. ممكن الطريقة حق الاخ مجنون فيك + مثال
  4. محفوضة date مثل كيف اخليه لما يخرج و يدخل تبقى
  5. هيك صحيح for k,v in ipairs(getElementsByType("player")) do ss= getElementData(v,"new") if (ss) then bool setPlayerSerialData( v, mohamed, ss)
  6. Date استخدمتو بس معرفت كيف يحفض
  7. يعني كيف يستعمل هذ الكود هل يوجود مثال او اي شي
  8. Account مو على Serial تحفض على date انا بدي
  9. addEventHandler("onPlayerQuit", getRootElement(), function () local Serial = getPlayerSerial (source) if Serial then local NoAccount = getElementData(source, "NoAccount") setAccountData(Serial, "NoAccount", NoAccount) end end) هل هذا الكود صحيح
  10. اسهل من الطريقة لانتا مسويها tooltips انصحك تستخدم
  11. تمت الافادة شكر ALw7sH
  12. local blips = {} local blipSize = 1 local blipDist = 65535 local blipID = 59 function makeBlip(plr) if (not isElement(plr)) then return false end if (not blips[plr]) then local blip = createBlipAttachedTo(plr, blipID, blipSize, 0, 0, 0, 255, 0, blipDist) blips[plr] = blip end end function onQuit() if (blips[source]) then destroyElement(blips[source]) blips[source] = nil end end addEventHandler("onClientPlayerQuit", root, onQuit) function checkPlayers() for c,d in pairs(getElementsByType("player")) do if isElement(blips[d]) then destroyElement(blips[d]) blips[d] = nil end return false end for index, player in ipairs ( getElementsByType ( "player" ) ) do if ( localPlayer ~= player ) then if ( getElementData ( player, "Group" ) == getElementData(localPlayer,"Group") ) then makeBlip(player) else destroyElement(blips[player]) blips[player] = nil end end end end setTimer(checkPlayers, 5000, 0) وش الخطاء هون
  13. ابي كود السيارة تكون شفافة و ما تلمس السيارة الاخرين مثل زي في الرايس لما تعمل سباق مافيك تلمس السيارة لجنبك يعني تتخترق السيارة لجنبك بدون ما تلمسها كمان طلب ثاني كيف اخلي الهنتر ما تطلاق سواريخ ارجو الرد بسرعة و شكر
  14. انا ابيه الكود هذ بليوم و الساعة و الدقيقة و الثانية الدقيقة و الثانية تمام شغلين بس الساعة و الايوم مو شغلين
  15. function getTimeLeft(Timer) local d = math.floor(Timer/86400) local h = math.floor(Timer/3600) local m = math.floor(Timer/60) local s = math.floor((Timer-m*60)) return ""..d.." Day "..h.." Hours "..m.." Minute and "..s.." Second" end شو الخطاء هون انا لما اعطيه ساعة تجي في الدقاق 60 و في الساعات 1 ساعة
  16. اش الخطاء هون function PlayerSim (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local accountData = getAccountData (theCurrentAccount, "Cart") if (accountData) then local playerMoney = getAccountData (theCurrentAccount, "Cart") end end end addEventHandler ("onPlayerLogin", getRootElement(), PlayerSim) function onQuitSim (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "Cart", tostring (getElementData(source,"Cart"))) end end end addEventHandler ("onPlayerQuit", getRootElement(), onQuitSim)
  17. اسلام عليكم شباب تجي ايقون blipI ابي اعدل على هذا الكود ابي في مكان تجي local blips = {} local blipSize = 1 local blipDist = 65535 local blipID = 59 function makeBlip(plr) if (not isElement(plr)) then return false end if (not blips[plr]) then local blip = createBlipAttachedTo(plr, blipID, blipSize, 0, 0, 0, 255, 0, blipDist) blips[plr] = blip end end
  18. local x, y, z = getElementPosition( vehicle ) createProjectile(vehicle,19,x+0.3,y,z,500) ما تغير شي ركبو هيك
  19. ورح اضغط ف2 team F8 بالله هذا المود اكتب في http://www.up-00.com/?0Etm
  20. وشوف شو يصر repair fشوف اخي لازم تكون في السكين رقم 50 وروح كسر سيارة و اكتب في 8
  21. تتصلح السيارة و تاخذ فلوس repair شوف هوا شقلك يعني لما تكتب في ف8
  22. local x, y, z = getElementPosition( vehicle ) createProjectile(vehicle,19,x+0.5,y,z,500)
×
×
  • Create New...