Jump to content

i S6O

Members
  • Posts

    437
  • Joined

  • Last visited

Everything posted by i S6O

  1. ! اجازة سعيدة
  2. العفو هذا واجبي
  3. ايه عادي زي اي ميتا <meta> <script src='Server.lua' type='server' /> </meta> تحط اسم ملف الي حطيت فيه كود حفظ ملابس سي جي بدال Server وطلبك الثاني بمقابل و كلم اي واحد عنده خبره يسوي لك بمقابل
  4. # Example Not Tested : # Server Side : addEventHandler ( 'onPlayerJoin', root, function ( ) triggerClientEvent ( source, 'ShowdxText', source ) end ) # Client Side : function ShowText ( ) dxDrawText ( "Text here.", 29, 490, 195, 521, tocolor(255, 255, 255, 255), 1.00, "bankgothic" ) end addEventHandler ( 'onClientRender', root, ShowText ) function HideText ( ) removeEventHandler ( 'onClientRender', root, ShowText ) end setTimer( HideText, 10000, 1 ) addEvent ( 'ShowdxText', true ) addEventHandler ( 'ShowdxText', root, ShowText )
  5. كود حفظ الملابس باحساب الاعب # Server Example : function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) and ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} end end addEventHandler("onPlayerQuit", getRootElement(), saveClothes) function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) setElementModel(source,0) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end outputChatBox("Clothes were added by clothessaver", source, 0, 255, 0) textures = {} models = {} end end addEventHandler("onPlayerLogin", getRootElement(), setClothes) واذا تبي تحذف بعض السكنات لازم تسوي واحد جديد لان هذا كل السكنات موجود
  6. مود اكثر من روعة, سو تنسيق افضل وافكار جديدة
  7. العفو , بس طريقت سفاح شوي صعبه وماانصحك بها حقتي افضل بس تحتاج تجيب احداثيات الكول شيب وبالتوفيق لك واسف ي سفاح اذا مااعجبك الاسلوب
  8. Use : createColRectangle setTime setWeather [url=https://wiki.multitheftauto.com/wiki/IsElementWithinAColShape]isElementWithinAColShape[/url] Event - '[url=https://wiki.multitheftauto.com/wiki/OnClientColShapeHit]onColShapeHit[/url]' and '[url=https://wiki.multitheftauto.com/wiki/OnClientColShapeLeave]onClientColShapeLeave[/url]' ![/b]
  9. عوافي نسيت ارتبها ض1
  10. local key = 'F4' -- حط هنا الزر بدال F4 local Open = false function Dx ( ) dxDrawRectangle(329, 313, 347, 204, tocolor(151, 149, 103, 255), false) end bindKey ( key, 'down', function ( ) if Open then removeEventHandler ( 'onClientRender', root, Dx ) showCursor ( false ) Open = false else addEventHandler ( 'onClientRender', root, Dx ) showCursor ( true ) Open = true end end )
  11. ياخوي انت فاهم البرمجه غلط تحسب اي واحد من المبرمجين الكبار هم بس يعرفون كل شيء ترا حتى الي ماهو من المبرمجين الكبار يعرف هو عطاك زي كذا guiGetText setAccountData getAccountData انت وش تسوي الحين تروح عند الكلامات ذي الي بالالوان ثم تظغط Ctrl + ماوس اليسار وتقرا الموقع الي يطلع لك وتفهمه زين
  12. ماشوف اي مشكلة بالموضوع لا اكواد نعدلها ولا شيء ؟ بس سو كذا اذا ظغط زر الدخول او التسجيل guiSetVisible ( png1, false ) guiSetVisible ( png2, false ) guiSetVisible ( png3, false )
  13. هذا مثال بسيط انت بدل بها ازرار النافذه و القريد لست حقكك Window = guiCreateWindow ( .... ) Grid = guiCreateGridList ( .... ) Warp = guiCreateButton ( .... ) guiGridListAddColumn(Grid, "الاماكن", 0.3) Warps = { { 'اسم المكان', x, y, z }, { 'اسم المكان', x, y, z }, { 'اسم المكان', x, y, z }, } for i,v in ipairs ( Warps ) do Row = guiGridListAddRow ( Grid ) guiGridListSetItemText ( Grid, Row, 1, v [ 1 ], false, false ) guiGridListSetItemData ( Grid, Row, 1,{ v [ 3 ], v [ 4 ], v [ 5 ] } ) end function Click ( ) if source == Warp then local sel = guiGridListGetSelectedItem ( Grid ) if sel == -1 then outputChatBox ( '* يجب عليك اختيار المكان اولاً', 0,120,255,false ) else local x,y,z = unpack ( guiGridListGetItemData ( Grid,sel,1 ) ) setElementPosition ( localPlayer, x, y, z ) guiSetVisible ( Window, false ) showCursor ( false ) end end end addEventHandler ( "onClientGUIClick", root, Click ) لازم تظغط بالقريد لست مع الزر
  14. ليه تقلدون حرب العصابات ؟
  15. يعطيك العافيه , ونتظرا الجزء الثاني
  16. خلاص عرفت طريقه الداتا تمت الافادة يغلق
  17. عشان اتاكد قبل ابد السكربتات + عشان مايصادفني مشاكل
  18. يعني بالسكربت الاول احط setElementData -- عشان انشاء داتا getElementData -- وبالثاني اجيب الداتا واسوي كذا صح ؟
  19. ابي استفسار مثالاً لو انا سويت داتا بسكربت وجيت ابي اجيب الداتا بسكربت ثاني getElementData ( source, 'Data', false ) لازم اسوي export > للمود الاولى او ميحتاج او على طول بسكربت الثاني اكتب كذا ؟ setElementData ( source, 'Data', true )
×
×
  • Create New...