-
Posts
2,711 -
Joined
-
Days Won
42
Everything posted by Abdul KariM
-
@iPrestege في موقع شبيه له https://titanpad.com/ وفكرة جميلة ي نكست ولازم يكون فيه ثقة من الطرفين
-
اصلا البيت ماهو المنت عشان تحط عليه داتا https://wiki.multitheftauto.com/wiki/Element
-
تقدر تسأل عن الي مافهمته وبفهمك اياه ان شاء الله
-
https://forum.multitheftauto.com/topic/90218-sqldata-شرح-سكربت/ يؤدي الغرض
-
F8 : debugscript 3
-
غلط , اتمنى انك تراجع اكوادك وتشوف الدي بوق وتحاول تصححها لان الافادة لك موب لنا , بأمكاني اعطيك جاهز لاكن انت تبي تتعلم من اخطائك حاول تحلها وان ماقدرت بصححها لك
-
@iPrestege هو قصده لما تفتح لوحة يجيب تيم الاعب ويجيب كل الاعبين الي بيتم الي فتح اللوحة ويحطهم بقريد ليست ماقصده انه يجيب كل الاعبين بشكل عام
-
عشان اول مره تفتح اللوحة يطلع لك الاعبين صح ؟ جا واحد جديد للتيم , بدال مايكرر الاسماء القديمة يحذف القديمة ويضيف عليها الجديدة
-
bindKey guiGridListClear getPlayerTeam getPlayersInTeam -- Loop guiGridListAddRow getPlayerName guiGridListSetItemText
-
@!#NssoR_) صحيح كلامك فيه طريقة عن طريق ملف اللوق حق السيرفر بحيث يوم يكتب الاعب بأف8 كلمة ستارت مثلا يحدد الكوماند ويتصل بالملف ويحطه على اخر سطر ويظهره بالشات لاكن خبرتي بـ فنكشات الفايل ضعيفه والموضوع مايستاهل اصلا كلها سطر بلوحة الادمنية
-
ماراح تقدر تجيب اسم الاعب الي شغل السكربت بالسيرفر الا عن طريق لوحة الادمنية او الحدث يكون كلينت
-
يعطيك العافية على التنبيه تلخبطت
-
+ addEventHandler ( "onResourceStart" , resourceRoot , function ( ) for _, players in ipairs ( getElementsByType ( "player" ) ) do local playerAcc = getPlayerAccount ( players ) if ( playerAcc ) and not ( isGuestAccount ( playerAcc ) ) then local accName = getAccountName ( playerAcc ) setTimer ( setElementData , 500 , 1 , players , "Account" , accName ) end end end )
-
الكود سيرفر سايد , واستخدامه يفضل ان يكون سيرفر سايد وش دخل الكلينت بالموضوع , والسيرفر سايد ماتظهر ملفاته يوم يتحمل السكربت
-
triggerServerEvent getPlayerAccount isGuestAccount getAccountName isObjectInACLGroup triggerClientEvent اذا تقصد قروب اسل استخدم الفنكشنات الي عطيتك اياه اذا تقصد قروب داتا استخدم فنكشنات فهد
-
try this local function setPlayerFlying(player, state) local playerTeam = getPlayerTeam ( player ) local Team = getTeamFromName ( "Staff" ) if ( playerTeam ) and ( Team ) then if ( playerTeam == Team ) then if state == true then state = true else state = false end setElementData(player, "superman:flying", state) end end end function Superman.onJump(key, keyState) local self = Superman local playerTeam = getPlayerTeam ( localPlayer ) local Team = getTeamFromName ( "Staff" ) if ( playerTeam ) and ( Team ) then if ( playerTeam == Team ) then local task = getPlayerSimplestTask(localPlayer) if not isPlayerFlying(localPlayer) then if task == "TASK_SIMPLE_IN_AIR" then setElementVelocity(localPlayer, 0, 0, TAKEOFF_VELOCITY) setTimer(Superman.startFlight, 100, 1) end end end end end
-
local aMyPositions = { { 1616.44446,-1506.94568,14.20866 } , { 1616.62317, -1503.23218, 14.22469 } }; function ToggleDDMenu ( hit ) if ( source and hit and hit == localPlayer ) then if eventName == 'onClientMarkerHit' then guiSetVisible ( GUIEditor_Window[1],true ) showCursor ( true ) elseif eventName == 'onClientMarkerLeave' then guiSetVisible ( GUIEditor_Window[1],false ) showCursor ( false ) end end end for _,aV in ipairs ( aMyPositions ) do marker = createMarker ( aV[1],aV[2],aV[3],'cylinder',1,255,0,0,0 ); ped = createPed ( 28,aV[1],aV[2],aV[3],90,0,0 ); setElementFrozen( ped,true ) if ( marker ) then addEventHandler("onClientMarkerHit",marker,ToggleDDMenu) addEventHandler("onClientMarkerLeave",marker,ToggleDDMenu) end end addEventHandler("onClientRender", getRootElement(), function() for _ ,v in ipairs ( getElementsByType ( "ped" , resourceRoot ) ) do local x, y, z = getElementPosition(v) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+1.1) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 30) then dxDrawText("Drugs Dealer", sx+2, sy+2, sx, sy, tocolor(0,0,0), 2-(distance/20), "arial", "center", "center") dxDrawText("Drugs Dealer", sx, sy, sx, sy, tocolor(255,0,0), 2-(distance/20), "arial", "center", "center") end end end end end )
-
try this addEventHandler ( 'onMarkerHit',resourceRoot, function ( hit ) if ( hit and getElementType ( hit ) == 'vehicle' ) then local player = getVehicleController ( hit ) if ( player ) then if ( marker [ player ] ) and ( source == marker [ player ] )then if ( isElement ( newVehicle [ player ] ) ) and ( hit == newVehicle [ player ] ) then triggerClientEvent ( player , 'onDelivered', player ) destroyElement ( newVehicle [ player ] ) destroyElement ( myBlip [ player ] ) destroyElement ( marker [ player ] ) newVehicle [ player ] = nil myBlip [ player ] = nil marker [ player ] = nil givePlayerMoney ( player,10000 ) end end end end end )
-
والله كل شي واضح بس مشكلتك ماتركز على الكلام حمل المود وشغله هذي اول خطوة بعدين رح السكربت الي تبي تحط فيه الكلام حط السطر هذاا exports["guimessages"]:outputServer(root, "سبحان الله ", 255 , 255 , 255 ) الارقمنت الاول والي هو الروت بدله للاعب الي عندك واذا تبي للجميع خليها روت outputServer وفي الكلينت احذف الارقمنت الاول واستبدل ال outputClient لـ
-
عليكم السلام والرحمة يعطيك العافية على طرح الطريقة الرائعة ولاهنت على الفكرة , ومجرد ملاحظة غير مفتاح الداتا عشان مايجي احد وياخذ المفتاح من هنا ويسوي لاي سكربت داتا ويشغل السكربت الي زرفه بسهولة , فخلي مفتاح الداتا خاص فيك وبالتوفيق للجميع ان شاء الله
-
show me code guiGridListSetItemData
-
عطيناك المساعدة بموضوعك القديم يعني ماشوف شي صعب بالموضوع انسخ المثال وعدل الكلام واذا كان سيرفر عرف البلاير وخلاص
-
خش الرابط https://community.multitheftauto.com/index.php?p=resources&s=details&id=4448 شوف الوصف مثال للكلينت example: exports ["guimessages"] : outputClient ( "Client message" , 204, 51, 255) مثال للسيرفر example: exports ["guimessages"] : outputServer (root, "Server sided message" , 204, 51, 255)
-
* getElementsByType