Leaderboard
Popular Content
Showing content with the highest reputation on 14/08/17 in all areas
-
2 points
-
السلام عليكم ورحمة الله وبـركـاته بـعد التـحيـة ,, أعرض لكم قائـمة المجسمات والـأبراج لبعض الدول العربية . ابغـا أخد رأيـكم فيـهـا نبدا علا بـركـة اللـه الـسعـودية -1 دوار المياه برج الرياض برج التلفزيون برج البيت قريـبا برج Al faisaliah الكويـت برج ال Wassil وبااقي اشياء اخررئ .... لـيـبيـا برج الـفاتح فـنـدق كورنـتـيا منـارة بـنغازي قلـعة السريا الحمراء الساعة العثمانية لبـدة الاثرية مصر نحتـاج اقتراحات اخرئ .. دبـي نحتـاج اقتراحات اخرئ .. علـم ،وضع رفـرفة خفيفة لأي صورة تضعـها ----------------- سيتم تعديل المكتبة في القريب العاجل وإضـافة دول اخرئ مع إضـافة روابط التـحميل ,,1 point
-
1 point
-
This code is actually terrible because it gets player's account and set it's data every iteration but anyway code is fixed, I think.1 point
-
for _, plr in pairs(getPlayersInTeam(gang)) do local account = getPlayerAccount(plr) if account then1 point
-
function teamspawnset ( player, cmd ) local x, y, z = getElementPosition( player ) local dim = getElementDimension( player ) local int = getElementInterior( player ) local gang = getPlayerTeam(player) local teamName = getTeamName ( gang ) for _, plr in pairs(getPlayersInTeam(gang)) do local account = getPlayerAccount(plr) if acc then setAccountData(account, "X", x) setAccountData(account, "Y", y) setAccountData(account, "Z", z) setAccountData(account, "dim", dim) setAccountData(account, "int", int) -- spawnPlayer(plr, x, y, z) UNCOMMENT THIS TO SPAWN EVERY PLAYER ON NEW COORDS end end outputChatBox ( "Succes!", source, 0, 255, 0, true ) end addCommandHandler ("setspawn", teamspawnset) function spawnTeammates(p) local acc = getPlayerAccount(p) if acc then local x, y, z = getAccountData(acc, "X"), getAccountData(acc, "Y"), getAccountData(acc, "Z") spawnPlayer(p, x, y, z) end end addEventHandler ( "onPlayerWasted", root, function() setTimer(spawnTeammates, 5000, 1, source) end) Try this code. Didn't test it.1 point
-
1 point
-
اخي مثل ما قلك حوولهم false يعني الي تلاقيها اخر الخارات true انا متأكد ضهرت ال التي أكس دي بس الأزرار لأ لانو التي أكس دي معطلات مثال توضيحي GUIEditor.button[1] = guiCreateButton(678, 291, 134, 25, "Login", true) -- خليها false الي اخر السطر GUIEditor.button[1] = guiCreateButton(678, 291, 134, 25, "Login", false)1 point
-
يب يعني لو رسلت مثلاً بالكلنت = FA وفي السيرفر عرفته على = FB مابيختلف .. بالسيرفر FB = FA1 point
-
1 point
-
1 point
-
Indeed, @!#NssoR_), it's "LF" as I looked through the post, and not "Offering".1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
If you use my example, it'll only trigger the client-sided script for the hitElement.1 point
-
@Omoi بالنسبة لـ هذا مايتعبر خطأ الى اخره end , false بالسيرفر عادي احط اي اسم ابغاه لانه يعتبر ارقمنت واقدر احط له اي اسم من راسي بشرط يكون غير الي تستخدمها اللغة مثل لو تبي اتعمق بالشرح قلي1 point
-
1 point
-
1 point
-
1 point
-
@killerProject You code doesn't working for several reasons 1 = if it was resource in group admin will return false 2= if username is not empty or password will return false1 point
-
1 point
-
https://community.multitheftauto.com/index.php?p=resources&s=list&name=dm&descr=&category=2 (type 'Map' and keyword 'dm' simply) @FukkaTsu1 point
-
1 point
-
1 point
-
The server is a must check! The story behind it is extremely detailed and the fact that every area has something going out in it is just outstanding. I was driving near the Vinewood mansion when I got sniped by Ryder lol, got attacked by some raiders at a small camp, bandits around Los Santos and of course walkers. Every place in the map has it's group of NPCs which is just outstanding and makes it feel so alive to play at it.1 point
-
I will suggest you to stay calm and wait for his answer. Also, it takes hell lot of time to do good updates. Also try not to make a post every hour.1 point
-
Note : The size of the marker should be greater than number 1. Progress_Window = {} Progress_Window = guiCreateWindow(0.25, 0.9, 0.55, 0.05, "Testing Progress", true) guiSetVisible(Progress_Window,false) guiWindowSetSizable(Progress_Window, false) guiSetProperty(Progress_Window, "CaptionColour", "FFFF0000") somebar = guiCreateProgressBar( 0.01, 0.4, 1, 1, true, Progress_Window ) function ProGUI(hitElement, matchingDimension) if isElement(hitElement) and getElementType(hitElement) == "player" and matchingDimension then local checkTeam = getTeamFromName("Job 1") if ( checkTeam and not ( setProgress or CompletedProgress ) ) then local playerTeam = getPlayerTeam(hitElement) if ( playerTeam == checkTeam ) then if isPedOnGround ( hitElement ) then guiSetVisible(Progress_Window,true) guiProgressBarSetProgress(somebar,0) guiSetProperty(Progress_Window, "CaptionColour", "FF00FF00") setProgress = setTimer(function(hitElement) local progress = guiProgressBarGetProgress(somebar) if ( progress >= 100 ) then setElementData (hitElement, "Iron.pres",(getElementData (hitElement, "Iron.pres")or 0 ) + 1) killTimer(setProgress) CompletedProgress = setTimer(function() guiSetVisible(Progress_Window, false) destroyElement(ProMark) killTimer(CompletedProgress) end, 10000, 1) elseif ( progress <= 100 ) then guiProgressBarSetProgress(somebar, progress+50) end end, 2000, 0,hitElement) else outputChatBox ("Something went wrong!") end end end end end function ProStart( ) ProMark = createMarker (-3293, 2216, 1517, "checkpoint", 2, 0, 200, 55, 255) addEventHandler("onClientMarkerHit", ProMark, ProGUI) end addEvent( "GoPro", true ) addEventHandler( "GoPro", root, ProStart ) GoProMark = createMarker (-497.0654296875, -196.90234375, 78.404663085938, "cylinder", 2, 0, 200, 55, 255) local GoProTeam = createTeam("Job 1", 20, 100, 150) function GoProTrigger ( hitElement, matchingDimension ) if isElement(hitElement) and getElementType(hitElement) == "player" and matchingDimension then if ( GoProTeam ) then if isPedOnGround ( hitElement ) then setPlayerTeam(hitElement, GoProTeam) triggerClientEvent ( "GoPro", hitElement ) triggerClientEvent ( "ShowIron", hitElement ) else outputChatBox("You must be on foot to change team!", hitElement, 255, 0, 0) end end end end addEventHandler("onMarkerHit", GoProMark, GoProTrigger) function SaveIron(quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then local account = getPlayerAccount (source) if (account) then local MyIron = getElementData( source, "Iron.pres" ) if (MyIron) then setAccountData (account, "Iron.saved", MyIron) end end end end addEventHandler("onPlayerQuit", getRootElement(), SaveIron) function getIron(_,acc) -- i did that function to restore your iron when rejoin to server. local MyIron = getAccountData( acc, "Iron.saved" ) if (MyIron) then setElementData (source, "Iron.pres", MyIron) end end addEventHandler("onPlayerLogin", getRootElement(), getIron)1 point
-
setElementData(hitElement, "Iron.pres", (getElementData(hitElement, "Iron.pres") or 0)+1) Try it like this.1 point
-
1 point
-
1 point
-
في بداية الموضوع اريد ان اسأل سؤال مهم عندما تطلب المساعدة في موضوع ما مثلاً ويجيبك احد المساعدين بوضع بعض الاكواد بألوان مختلفة هل تستفيد اي شي من هذه الاكواد ؟ هل تعرف ما هي وظيفة الاكواد ؟ هل تعتقد انه اذا وضعت الاكواد في السكربت سيشتغل بدون مشاكل ؟ هذه هي اسألة الاشخاص الذين لم يعرفو الويكي بعد طيب ... ما هي فائدة الالوان الخاصة بالأكواد ؟ مثال givePlayerMoney -- ازرق getPlayerAccount -- اصفر playSound -- احمر في بداية شرح هذه الاكواد يجب ان تعرف ان السكربت مكون من ثلاث ملفات meta.xml client.lua server.lua اذا كنت تريد شرح لملف الميتا اضفط هنا طبعاً من المعروف ان ملف الميتا هو الملف الرئيسي في السكربت بأكمله وفي حالة حذفه فإنه لا يوجد سكربت بالنسبة الى ملف كلينت وملف سيرفر يوجد اكواد خاصة بملف كلينت واكواد خاصة بملف سيرفر واكواد خاصة بأي من الملفين فعلا سبيل المثال playSound -- احمر .. الاكواد ذات اللون الاحمر .. هذه لملف كلينت فقط getPlayerAccount -- اصفر .. الاكواد ذات اللون الاصفر .. هذه لملف سيرفر فقط givePlayerMoney -- ازرق وهذه الاكواد التي لها اللون الازرق يمكن كتابتها في كلاً من الملفين .. كلينت وسيرفر لم استفد شئ حتى الآن ما هو الكود وكيف استطيع ان احضر مثال عليه ؟ بكل بساطة اذا كان الكود موجود بالفعل فقط يمكنك الضغط عليه وسيقوم المتصفح بنقلك مباشرة الى صفحة الويكي وستجد هناك كلاً من .. شرح مفصل للكود مثال او اكثر كيف تعرف اذا كان الكود كلينت ام سيرفر ام لأي من الملفين ستجد كلمات دلالية مثل Client-only function او Server-only function او Shared function اين موقع الكلمة ؟ انظر الصورة وستعرف اين موقع الكلمة الآن حان وقت الشرح المهم اذا ضغط على هذا الكود مثلاً playSound -- client only فـ رح تجيك بهذا الشكل طيب اذا ضغط على هذا الكود مثلاً getPlayerAccount -- server only -- and getAccountName -- server only طبعاً رح تفتح لك صفحة بها شرح وامثلة وما الى غيره طيب كيف تقوم بإنشاء امر function هذا يعتمد على الكود الذي تريد انشاء الامر له فمثلاً الكود السابق getPlayerAccount بيكون كالتالي function test () acc = getPlayerAccount ( thePlayer ) end -- حيث -- test اسم الامر -- thePlayer اللاعب المراد احضار الحساب الخاص به طيب بالنسبة للحدث والامر الخاص بالحدث ؟ -- Ex "onClientPlayerWasted" "onPlayerWasted" "onPlayerJoin" طبعاً نفس الشئ رح تعرف امثلة و شرح للحدث عن طريق الضغط عليه طيب وش هو الـ source ? هو source الـ الشئ او الشخص او المركبة الذي قام بالحدث او الذي وقع عليه الحدث فعلا سبيل المثال الحدث التالي يوضح ان السورس هو اللاعب الذي مات "onPlayerWasted" وعلا سبيل المثال هذا السورس هو السيارة التي تم تفجيرها "onVehicleExplode" طيب شرح الحدث كالتالي انشاء حدث و امر ووضع الارجمنتات الخاصة بالحدث بداخل الامر فعلا سبيل المثال function killerProject ( _, killer, killerweapon ) if killer then if getElementType ( killer ) == "player" then outputChatBox ( " [ the killer "..getPlayerName(killer).." killer weapon "..killerweapon.." ] ", source ) end end end addEventHandler ( "onPlayerWasted", root, killerProject ) --[[ -- حيث killer: القاتل killerweapon: سلاح القاتل source: الشخص الذي مات --]] حتى الآن لم افهم من اين جاء كل من killerweapon و killer و source هذه الصورة توضح من اين اتى القاتل وسلاحه و السورس طيب كيف تعرف اذا كان الحدث كلينت ام سيرفر ام لأي ملف فيهم ؟ في حالة دخولك للويكي ستجد الصفحة اما ذات لون احمر او اصفر وستجد كلمة Clientside event او Serverside event طبعاً الكلمة الاولى باللون الاحمر ومكتوب فيها كلينت والكلمة الثانية باللون الاصفر ومكتوب فيها سيرفر اين موقع الكلمات ؟ انظر في هذه الصورة وسوف تعرف ...................................................................................................................... ملاحظة هذا الشرح سليم ما دام الويكي مفتوح وبه شروحات برمجة اللعبة ...................................................................................................................... هذا شرح لمن لا يعرف ماهي الاكواد او كيف يستعملها او ما هي اهميتها عندما يكتبها له احد المبرمجين او المساعدين له ذا اللي عندي اتمنى افدتكم بأي شي والسلام عليكم ورحمة الله وبركاته1 point
-
0 points
