Leaderboard
Popular Content
Showing content with the highest reputation on 25/02/17 in all areas
-
مع الفكرة صراحة والفكرة حلوه وزي ماقال الاخ شاطح يكون اللغات ترتبط بين اللوا مثل الفيجوال بيسك والبي اتش بي والاتش تي ام ال نطور من مستوانا مانبقى على اضغط زر وقفل زر3 points
-
@iRamX تراح مايحتاج المنت داتا ابد, وطريقتك غلط بأيفنت الدخول لان اول مايدخل الاعب راح يكون حسابه جوست والمفروض تتحقق ان الاعب مسجل دخول ان حسابه ماهب جوست والطريقة الثانية والي هي افضل يقدر يسويها بالترايقرات لان اسم حساب الاعب مايتغير اول مايدخل الاعب ترايقر للكلينت وحط حسابه وخلاص واول مايشتغل المود ترايقر للسيرفر ويجيب اسمه ويرسله للكلينت وانتهينا3 points
-
السلام عليكم ورحمة الله و بركاته اليوم بنشرلكم الأيكسبريشن : return or اولاً أيش معنى return? لغوياً : فعل إرجاع برمجياً : تستخدم لترجيع قيمة كيف تستعمل؟ return [ value ] أمثلة : function outputChat(msg,element,r,b,g,bool) -- Function نسوي وظيفة if type(msg) ~= "string" then -- تحقق إذا الأرقمنت الأول سترنق return false -- يرجع قيمة false = خاطئ else -- أذا كان سترنق outputChatBox(msg,element,r,b,g,bool) end end outputChat(123) -- returns false outputChat("123") -- returns true function validate(num) if type(num) ~= "number" then return end -- اذا لم تكن القيمة رقم, يوقف الفنكشن givePlayerMoney(getLocalPlayer(),num) end ثانيا: or معنى لغوياً : أو برمجياً : اذا كان الصيغة القبل nil او false فيقوم بتكميل امثلة : givePlayerMoney(lafdksafksdakfk,100) or givePlayerMoney(source,100) طيب والأن, مثال لهم مع بعض guiSetVisible(rasfdsaf,false) or return false function isvalidpass(pass) if type(pass) ~= "string" or string.len(pass) =< 3 or pass == " " then return false else return pass end end للي عنده مثال ثاني يحطه تحت تحياتي2 points
-
السلام عليكم ورحمة الله وبركاته جتني فكرة انهم يسون قسم اخر لبرمجة لغات اخرى منها نستفيد ونتعلم اللغات الثانية وش رايكم انتو؟ @!#NssoR_)2 points
-
2 points
-
2 points
-
2 points
-
السلام عليكم ورحمة الله وبركاته اخباركم يا شباب, عساكم بخير طبعا اليوم حاب اوريكم سكربت الثوب المطور هو سكن واحد ويمديك تحط له اشكال لا نهائية المود يعتمل على الشادر طريقة التحكم بسيطة جداً بالتيبل (موضحة في اخر المقطع) ابغى آراكم بالسكربت وهل انشره ام اخليه ولا ايش اسوي فيه2 points
-
Superman : local team = "" -- Team Name function checkSuperMan() for i,v in ipairs(getElementsByType("player")) do if getPlayerTeam(v) == getTeamByName(team) then setElementData(v,"canFly" , true) end end end checkSuperMan() addEventHandler("onPlayerJoin",root,function() v = source if getPlayerTeam(v) == getTeamByName(team) then setElementData(v,"canFly" , true) end end) جربها, شغالة عندي المشكلة ما اعرف لو مود سوبر مان معدل ولا لا حقي. لو ما اشتغل بعطيك مود السوبر مان حقي ايش دخل الداتا بالموضوع؟؟2 points
-
2 points
-
2 points
-
أن شاء الله يعطيك العافية ع الاقتراح حبيبي تسلم حبيبي، كلنا مبدعين مو بس انا تسلم حبيبي منور, شكرا على اقتراحك !2 points
-
2 points
-
2 points
-
@iRamX @#BrosS المفروض تستخدمون هاذي الاحداث او تسوون مثل ماقال عبدالكريم onResourceStart onPlayerLogin onPlayerLogout2 points
-
Razočaran sam. Iskreno sam se nadao da ćete napraviti nešto hvale vrijedno. Kao prvo, očiti znakovi Valhalle, što znači da gamemod ne radite from scratch. Community skripte, iako nije neka velika stvar, server koji bi potencijalno držao tisuće igrača u isto vrijeme ne bi si trebao dopustiti korištenje besplatnih javnih skripti. Ne znam u kojem trenutku ste pomislili da će korištenje Valhalle, oG, uG ili koji god derivat istog ste koristili, biti dobra ideja? Vama je očajno potreban kod visokih performansi s naglaskom na asinkronu logiku koja će biti neizbježna kod tolikog broja igrača, a Valhalla je sve samo ne visokih performansi. Vjerujem da imate i više nego dobar budžet kako biste ostvarili unikatnost i originalnost. Nadam se da vam taj profesionalni skripter ne maže oči pizdarijama i da zna što radi, a ako to nije slučaj, savjetujem potragu za novim. Bez ljutnje, nije hejt post, jednostavno nisam mogao vjerovati što vidim...2 points
-
عفوا اخوي، هو حر يقدر ينشر الي يبغاه؟ تبغى منه يبرمجلك قوله خاص لا تجلس تأمره.2 points
-
بسم الله الرحمن الرحيم السلام عليكم ورحمة الله وبركاتة لقد تم عمل هذا الشرح خصيصاً للاعضاء الذين لايعرفون طريقة عرض الاكواد لنبدأ بالشرح الخطوة الأولي : الخطوة الثانية : النتيجة : setElementPosition getElementData وهكذا قد انهينا الشرح و الحمدلله وطبعا لاننسى ترتيب الاكواد الذي تم ذكره في موضوع الاخ تيتي الله يعطيه العافية وبالتوفيق للجميع1 point
-
1 point
-
1 point
-
شرح ممتاز اضيف للشرح حقك and الشرح :- الاند عكس الاور تماما يعني لو القيمه القبلها تروً تاخد البعدها مثلا 5 and false ولو القبلها مثلا true and 5 بتاخد ال بعدها حتي لو كانت ترو print ( ( not false ) and 'Error' ) -- Error لان ال not تستخدم للعكس يعني تقدر تقلب الترو ل فولس و العكس مثلا لو سوينا not not true النتيجه بتكون true1 point
-
1 point
-
1 point
-
1 point
-
Here some photos from the server, tank battles, ship battles, infantry battles:1 point
-
You can draw dx in front of a browser. Check out the wiki page for the dxDraw functions and you'll see there's a postGUI argument. Just set that to true and also make sure it's drawn after the browser.1 point
-
Dear @Jusonex & @jhxp & @darkdreamingdan How are you I suggest to add sections which we have away from lua language and all of us here want that, but i hope to take some famous languages as an example App telephone programing section including java & c# & swift and the web programing as general and i have ex experience in java android and i will present explanations and i will solve some problems if i can And by this i will make the site not concentrating in one thing but will include many things Thank you for precious times1 point
-
1 point
-
Jusonex 52 Replied: 6 minutes ago · Report What languages do you think of? In theory, it is possible, but something like that requires a lot of effort which leads us to the question: Is it worth it? وش رايكم انتو؟ الرد بالإنجليزي فقط اللي مايفهم لايرد عشان لا ينكبنا خخ + مع وضع منشن له1 point
-
1 point
-
والله فكرة جميلة قدام بس يبالغها واحد من الادارة العرب يكلمون نفس اصحاب المنتدى1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
وعليكم السلأم ورحمة الله وبركاته . يعطيك العافيه ع المجهود ي كنأن . بالنسبة لـ دمار طيب انت م تبي المود ذا خلأص مو لازم تحمله1 point
-
@_Kinan يعطيك العأفية ع المجهود ماتقصر بس تنبيه بسيط givePlayerMoney بجانب الكلنت مافيها ارقمنت اللاعب . وبالتوفيق .1 point
-
انا ماجربت صراحه ولا يمديني اجرب وبقولك اللي ف بالي حاليا يمكن اكون صح او غلط، الوظيفه اللي تجيب لك عدد الروز بتجيب لك العدد كامل،يعني لو فيه 3 رو بيطلع لك 2 لأن الرو الاول بيكون رقمه صفر والثاني 1 وكذا يعني اللي انت طارحه بيكون الرو آخر شي تحتهم كلهم، وهو يبغى العكس يكون الاول فهمت؟1 point
-
1 point
-
مع الفكرة + بس ما اتوقع انه يكون قرار المشرف لحاله اتقول لازم الادارة يلي تفتح القسم1 point
-
You are only allowed to give 10 likes per day. You cannot give any more likes today. اكره شيء1 point
-
You're completely on the wrong track, TS is not asking to cancel a ban-''kick'' when the ban system got that player as banned, nor if you meant to cancel-kick joins (I wouldnt be surprised if you mean this as your other comments also make little sense) as he wants the players to persist while drawing that information screen about ban details. I've read your other replies in here and I don't think its really contributing1 point
-
That's intentional, but you're able to change the maximum transfer rate using the bandwidth argument. So if your server has a good connection you can increase it.1 point
-
1 point
-
1 point
-
You most likely nailed it exactly, BUT MY AIM ISN'T TO GET A SERVER LEVEL SCRIPT TO USE! My aim is to learn how to do this all, so no offence, but I didn't learn almost crap from this Would you be willing to get in contact or something and possibly explain this and/or teach me a bit?1 point
-
my two cents: local TIME_TO_PREPARE = 3*60*1000 --3m local TICK_DURATION = 500 --tick every 500ms local DAMAGE_PER_TICK = 1 --DPS = DAMAGE_PER_TICK*(1000/TICK_DURATION) --just an example local methTimers = {} function cook(thePlayer, cmd, ...) if getElementModel(getPedOccupiedVehicle( thePlayer )) ~= 508 then return end --not in Journey if not hasPlayerTheIngredients(thePlayer) then outputChatBox( "No ingredients!", thePlayer ) return end --check if he has ingredients if methTimers[thePlayer] and isTimer( methTimers[thePlayer][1] ) then outputChatBox( "Already cooking meth!", thePlayer ) return end methTimers[thePlayer] = {} methTimers[thePlayer][1] = setTimer( cookMethTick, TICK_DURATION, math.floor(TIME_TO_PREPARE/TICK_DURATION), thePlayer ) setElementFrozen( thePlayer, true ) methTimers[thePlayer][2] = setTimer( setElementFrozen, TIME_TO_PREPARE, 1, thePlayer, false ) --if you want, remove ingredients here end addCommandHandler( "cookmeth", cook, false, false ) function cookMethTick(thePlayer) if hasPlayerTheGasMask(thePlayer) then setElementHealth( thePlayer, getElementHealth( thePlayer ) - DAMAGE_PER_TICK ) end local _, tickLeft, _ = getTimerDetails ( methTimers[thePlayer] ) if tickLeft == 0 then --last tick --use inventory to add meth or wathever you want (remove the ingredients if you didn't at start!) --also clear the methTimers table methTimers[thePlayer] = nil end end function hasPlayerTheIngredients( thePlayer ) --use exported functions/data provided from the inventory script return true or false end function hasPlayerTheGasMask( thePlayer ) --use exported functions/data provided from the script that handles gas masks return true or false end function alertPlayerEnteringJourney(theVehicle) if getElementModel(getPedOccupiedVehicle( thePlayer )) ~= 508 then return end --not in Journey outputChatBox( "You can cook meth! /cookmeth", source ) end addEventHandler( "onPlayerVehicleEnter", root, alertPlayerEnteringJourney ) --explain more the point: --At the same time display a countdown of the 3 minutes saying "3 minutes of cooking remaining" or something like that that goes down. --DX? UNTESTED I'm also not sure about the getTimerDetails part, as wiki is not much helpful PS: 3 minutes? what if other players starts attacking you? Should you stay frozen watching you beign killed?1 point
-
1 point
-
Sorry, but if you open executables from random people, it's your own fault. There's nothing we can do about it.1 point
-
Это запрещает критиковать? ИМХО критика и есть проявление уважения к ПО и разработчику. Плохо когда не критикуют. Мне например не нравится дизайн, отсутствие гибкости программы, отсутствие подсветки и автодополнения.1 point
