Jump to content

#\_oskar_/#

Members
  • Posts

    570
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by #\_oskar_/#

  1. انت فهمت اللي كتبته لك ؟ اذا مافهمت دا مثال بسيط عشان تفهم local markers = { [1] = {-730.77167, 965.94550, 12.55161}, -- marker 1 [2] = {-714.79846, 983.33972, 12.22370}, -- marker 2 [3] = {-705.29993, 962.83490, 12.43508}, -- marker 3 } addEventHandler("onClientResourceStart", resourceRoot,function() mrks = {} for k=1,#markers do mrks[k] =createMarker(markers[k][1],markers[k][2],markers[k][3],'cylinder',3.5,0,255,0) addEventHandler ( "onClientMarkerHit" ,mrks[k],markers.Hit) end end) function markers.Hit() if source == mrks[1] then outputChatBox ("marker 1 " ,0,255,0) elseif source == mrks[2] then outputChatBox ("marker 2 ",255,0,0 ) elseif source == mrks[3] then outputChatBox ("marker 3 ",255,255,0 ) end end
  2. كدا mrks[1] هنا اسم الماركر هو الرقم حقه يعني سويت 3 ماركرات تحط اسم اول ماركر مثال بسيط mrks[1] اول ماركر قمت ب انشائه تحط رقم واحد mrks[2] ثاني ماركر تحط رقم 2 والخ يعني كل ماتنشئ ماركر جديد تحط رقم مثلا لو سويت ماركر رقم ثلاثه تحط اسمه كدا mrks[3] وتكمل علي نفس الطريقه
  3. الماركر اللي انت مستخدمه بجهة كلنت او سيرفر ؟ + لو بجهة كلنت اتأكد انك كاتب اسم الماركر if ( source == Marker هنا اسم الماركر
  4. طيب تقدر توريني اكواد لوحتك ؟
  5. دي احداثيات صورتك 862, 578, 141, 130 انت كدا خليت الصوره تظهر بمكان بعيد عن اللوحه او المكان اللي تبي تظهر الصوره فيه يعني ال 862 دي ماتنفع المفروض تحط من 1 الي 200 ع الاقل والارتفاع اللي هو 578 غلط اعتقد انك مبدل الارقام المهم جرب كدا GUIEditor.staticimage[1] = guiCreateStaticImage(141, 130,862, 578, "Test.png", false, GUIEditor.window[1]) او GUIEditor.staticimage[1] = guiCreateStaticImage(10,30,141, 130, "Test.png", false, GUIEditor.window[1]) guieditor والافضل انك تضبط الاحداثيات من مود
  6. SQL لازم تغير اسم الجداول حقت وبعدين تبدء شغل من جديد
  7. اتأكد ان اسم الصوره موجود بالجدول او حط دا ب اول الملف عندك GUIEditor = {window = {},staticimage = {}}
  8. لا ماتحتاج اذا سويت لها رند رح تنشئ صور كثيره وتسبب لاق الرندر فقط للدي اكس وع حسب استخدامك له بس بالطريقه الصحيحه + صمم اللوحه والصوره من الجيو اديتور عشان تضبط احداثيات الصوره داخل اللوحه
  9. متأكد انك بحثت ؟ بعض المودات المنشوره https://community.multitheftauto.com/index.php?p=resources&s=details&id=12000 https://community.multitheftauto.com/index.php?p=resources&s=details&id=9789 https://community.multitheftauto.com/index.php?p=resources&s=details&id=12448 https://community.multitheftauto.com/index.php?p=resources&s=details&id=11499 https://community.multitheftauto.com/index.php?p=resources&s=details&id=11265
  10. افضل واسهل لك انك تستخدم guiCreateStaticImage لان الدي اكس بحالتك دي ماينفع
  11. GUIEditor.window[1]) << ?? مانتبهت للي انت مسويه ليه حاطت اسم اللوحه هنا ؟ + كودك المفروض كدا للدي اكس function updateCamera () dxDrawImage(979, 330, 164, 156, "Test.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end addEventHandler ( "onClientRender", root, updateCamera )
  12. onClientRender تختفي لانك ماستخدمت الرندر
  13. myShader = [[ float Time : TIME; float4 color = float4(1,1,1,1); float4 GetColor() {float4 tColor = float4(cos(Time*7),cos(Time*7),cos(Time*7),255); return tColor * color;} technique tec0 { pass P0 { MaterialEmissive = GetColor(); EmissiveMaterialSource = Material; ColorOp[0] = SELECTARG1; ColorArg1[0] = Diffuse; Lighting = true; }} ]] local ID = 597 engineImportTXD(engineLoadTXD("car.txd"),ID) engineReplaceModel(engineLoadDFF("car.dff",ID),ID) --- local shader = dxCreateShader(myShader) function SetShaderApply(Apply,Remove,r,g,b) local Vehicle = getPedOccupiedVehicle ( getLocalPlayer() ) if ( Vehicle ) then if getElementModel(Vehicle) == ID then dxSetShaderValue(shader, 'color',r,g,b) engineRemoveShaderFromWorldTexture(shader,Remove,Vehicle ) engineApplyShaderToWorldTexture(shader,Apply,Vehicle ) end end end function left() SetShaderApply('l','p',255,0,0) end bindKey ("vehicle_left","both",left) function right() SetShaderApply('p','l',255,0,0) end bindKey ("vehicle_right","both",right) try this
  14. local Key = 'L' -- addEventHandler("onPlayerJoin",root,function () bindKey (source,Key,"down",switchEngine) end) local function bindTheKeys() for _,player in ipairs(getElementsByType("player")) do bindKey (player,Key,"down",switchEngine) end end addEventHandler("onResourceStart",resourceRoot,bindTheKeys) try
  15. function hex2rgb (hex) local hex = hex:gsub("#","") for i=0,5 do if hex:len() == i then return error ('Error hex2rgb ('.. (hex)..')' ) end end r = tonumber("0x"..hex:sub(1,2)) or 0 g = tonumber("0x"..hex:sub(3,4)) or 0 b = tonumber("0x"..hex:sub(5,6)) or 0 return r..','..g..','..b end try _- i edited the code
  16. outputChatBox("#FFFFFF[GANG] #00FFFF Você Passou pro level "..getElementData(localPlayer,"level").. " na sua gang.",255, 255, 255, true ) ( <
  17. createWeapon -- انشاء سلاح attachElements -- الصق السلاح بالطياره setWeaponState -- يخلي السلاح يضرب bindKey -- بند كي لما تدوس ع الماوز يطلق النار حاول تسوي اي شئ
  18. local Key = 'H' addEventHandler("onPlayerJoin",root,function () bindKey (source,Key,"down",repairVehicle) end) local function ResourceStart() for _,player in ipairs(getElementsByType("player")) do bindKey (player,Key,"down",repairVehicle) end end addEventHandler("onResourceStart",resourceRoot,ResourceStart)
  19. https://community.multitheftauto.com/index.php?p=resources&s=details&id=11265
  20. function teleport(hitElement,int, px, py, pz,msg) if getElementType (hitElement) == "player" then local Vehicle = isPedInVehicle(hitElement) if Vehicle then return outputChatBox("No Car", hitElement, 0, 0, 0, true) end setElementInterior (hitElement, int, px, py, pz ) outputChatBox (msg or '',hitElement,255,0,0, true) end end local HitMarker = createMarker (2019.5, 1007.7, 10, "cylinder", 1, 255,255, 0,255) local LaveMarker = createMarker (2234, 1714.4, 1011.5, "cylinder", 1, 255, 255, 0, 255) setElementInterior (LaveMarker, 1 ) addEventHandler("onMarkerHit", root, function (hitElement) if source == HitMarker then teleport(hitElement,1, 2235, 1699, 1008,'Welcome To Casino') elseif source == LaveMarker then teleport(hitElement,0, 2026, 1008, 11) --[[Add More elseif source == Marker Name then teleport(hitElement,Interior ID, px, py, pz [,'ChatBox'])]] end end) try this
  21. ماشوف اي خطأ بس الخطاء اللي عندك من اسم الملف نفسه تأكد من الملف اذا كان بصيغة ال ifp
  22. هات اكوادك كامله مع ال meta.xml وملف الانيميشن
  23. الشكر لله ♥ هو مجرد تعريف للملف IFP يعني عادي اكتب اي اسم
×
×
  • Create New...