Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 02/09/17 in all areas

  1. اليوم حبيت اسوي سكربت بسيط وتقريبا الكل يعرف يسويه هو الحافز فكرة الحافز معروفة الي هي يوزع فلوس كل مدة معينة image : الخصائص : بأمكانك التعديل علي الوقت الخاص للتوزيع بلدقائق بأمكانك تغيير عدد الفلوس يجي صوت لجميع اللاعبين عند م يتم توزيع الفلوس ------------------------------------------------ رابط التحميل https://up.top4top.net/downloadf-609a0vfz1-zip.html ------------------------------------------------ الاهدائات @MR.StoRm @#_iMr.[E]coo @Master_MTA @#Soking @Killer Project @#Aln3mani
    2 points
  2. 2 points
  3. السلام عليكم ورحمة الله وبركاته .... مب لاقي شي اسويه ولا اي افكار فقلت خلني اشرح بعض الاشياء .... شرحي رح يكون عن setTimer .... والـ هو مؤقت يسوي شي كل وقت او يسوي شي بعد فترة محددة .... طيب خلنا نبدأ على بكرة الله .... المثال الاول رح اشرح فيه طريقة انشاء شي معين كل فترة معينة -- server function theFunctionName ( ) exports["guimessages"]:outputServer(root,"message from server file.",0,255,0,root) -- YourCode end setTimer ( theFunctionName, 5000, 0 ) -- لاحظ الرقم 0 -- client function theFunctionName ( ) exports["guimessages"]:outputClient("message from client file.",0,255,0) -- YourCode end setTimer ( theFunctionName, 5000, 0 ) -- لاحظ الرقم 0 المثال الثاني رح اشرح فيه طريقة انشاء شيء معين بعد فترة معينة -- server function theFunctionName ( ) exports["guimessages"]:outputServer(root,"message from server file.",0,255,0,root) -- YourCode end setTimer ( theFunctionName, 5000, 1 ) -- لاحظ الرقم 1 -- client function theFunctionName ( ) exports["guimessages"]:outputClient("message from client file.",0,255,0) -- YourCode end setTimer ( theFunctionName, 5000, 1 ) -- لاحظ الرقم 1 اذا لاحظتوا الفرق بين المثال الاول والمثال الثاني وهو شي واحد وهو الرقم 0 و الرقم 1 وهم يتحكمون في نوع المؤقت المؤقت مع الرقم 0 يسوي شي معين كل فترة معينة المؤقت مع الرقم 1 يسوي شي معين بعد فترة معينة المثال الثالث رح اشرح فيه كيفية تحديد وقت المؤقت .... واللي ما يعرف هذا الشي علامة الضرب [ * ] علامة القسمة [ / ] علامة الطرح [ - ] علامة الجمع [ + ] رح تقولولي وش فائدتهم بقولكم تقدرون تستفيدون منهم في البرمجة .... وقت المؤقت يكون عبارة عن 1000 جزء من الثانية بمعنى 1000 ميلي ثانية = ثانية .... طيب بنشوف مثال -- server -- guimessages ( outputServer ) function theFunctionName ( ) exports["guimessages"]:outputServer(root,"message from server file.",0,255,0) end setTimer ( theFunctionName, 5000, 0 ) -- رقم 5000 = 5 ثواني -- يمكن كتابته بصورة مختلفة مثل setTimer ( theFunctionName, 5*1000, 0 ) -- 1000 * 5 = 5000 وهذه فائدة الضرب -- طيب اذا ابي اسوي مؤقت يخرج رسالة كل 5 دقائق مثلاً وش اسوي ؟ -- هذا المثال يوضح كيف function Timer5 ( ) -- Timer5 = اسم الامر ويمكن كتابته اي شيء تريده exports["guimessages"]:outputServer(root,"مرحباً بك في السيرفر",0,255,0) end setTimer ( Timer5, (5*60*1000), 0 ) -- 5*60*1000 = 5 دقائق هذا الـ عندي اتمنى انكم استفدتم اذا ما فهمت الكود اكتب تعليق وبساعدك بإذن الله اذا قصرت في الشرح فأنا آسف هذا اول شرح لي والقادم افضل بإذن الله ... ... والسلام عليكم ورحمة الله وبركاته ...
    1 point
  4. حيآكُم الله في سيرفر مدينة الزومبي للزومبي ,
    1 point
  5. The markers are invisible because when you define the color of them you have to use RGBA, which you did. you made your markers white, but defined their alpha 0. So they are completly transparent. Set the forth number to 255 and you'll see them. createMarker()
    1 point
  6. استخدم الرندر مع الوقت الحقيقي وزود ع التاريخ 7 ايام وبعدين سوي الي تبيه
    1 point
  7. 1000 = ثانية 60*1000 = 60000 = دقيقة
    1 point
  8. بالتوفيق . إن شاء الله نشوف سيرفركم من افضل سيرفرات الزومبي
    1 point
  9. 60000 هذي دقيقه تضرب الدقائق في 100080 يطلع لك وقت اسبوع كامل
    1 point
  10. I've been involved with computers and programming since as long as I can remember - I was making my first :~ty HTML sites at the age of 7. You can spend months, even years learning a single programming language; but one thing that really broadened my entire understanding of computing / programming was a computer science class that I took during my high school years. Computer Science takes you back to the basics, it teaches you the standards / logic used throughout pretty much all programming languages. From variables to functions, arrays to expressions - even taking the time to learn the difference between different data types, such as strings, floating points, integers and booleans - that'll make a huge difference to your general understanding of programming. Just because you can put bits of code together and run it successfully doesn't make you a good or professional scripter. It's something that I see often on this forum in-fact. What makes you a good programmer is knowing exactly what your code does, and how to debug & fix your code as soon as a problem arises. This also means that being great in a certain programming language isn't all it takes - you need a good, logical brain too. Being able to come up with fresh & creative ways on how to achieve your "goals", and thoroughly thinking through your ideas. I'd suggest you start with something like this https://en.wikiversity.org/wiki/Introduction_to_Computer_Science Once you're confident with that, w3schools is a great website to start writing your first bits of code. Check out their HTML and Javascript tutorials (which includes their "Try it yourself" code editor in each example!) Good luck.
    1 point
  11. أقصد يستعمل كودك Note: The amount may vary between the server and client, you shouldn't trust the client side value to always be accurate.
    1 point
  12. تفتح اللوحة وتضغط على القريد ليست, كذا انت حددت شخصية رقم 1
    1 point
  13. In terms of performance, it probably doesn't matter in your case. It also depends on how the script files access shared variables (e.g. global variables are much slower than local/upvalue variables) - but that's nothing you'd care about with a 700 lines script. Instead, the question should be: Does splitting it up simplify it and improve readability?
    1 point
  14. 1 point
  15. addEventHandler("onClientGUIClick", guiRoot, function() local getGui = guiGetVisible(Ventana2) if source == BOTON then if getGui then guiSetVisible(Ventana2, false) showCursor(false) Marker1 = createMarker(2482.2924804688, 1917.4254150391, 9.768750190735,"cylinder",2,0,218,255) addEventHandler( "onClientMarkerHit", Marker1, Inicio ) end end end end ) function Inicio (element) if element == localPlayer then destroyElement ( Marker1 ) Marker1 = nil Marker2 = createMarker(2482.2924804688, 1917.4254150391, 9.768750190735,"cylinder",2,0,218,255) end end si solo quieres que vea el market el jugador no es necesario un trigger pero si quieres que lo vean todos los jugadores como dice @aka Blue vas a necesitar un trigger
    1 point
  16. Es que claro, setElementVisibleTo es una función server-side. No hace falta que lo pongas si lo haces en el lado cleinte. El tema es que deberías crear un triggerServerEvent cada vez que pulses el botón, para que cree el marker, etcétera.
    1 point
  17. بدل هذا بـ حدث الموت + السباون لكن الخروج والدخول خله زي ماهو local playerWeapons = { } addEventHandler ( "onPlayerWasted", root, function ( ) if ( not playerWeapons [ source ] ) then playerWeapons [ source ] = { } end for slot = 0, 12 do local weapon = getPedWeapon ( source, slot ) if ( weapon > 0 ) then local ammo = getPedTotalAmmo ( source, slot ) if ( ammo > 0 ) then playerWeapons [ source ] [ weapon ] = ammo end end end end ) addEventHandler ( "onPlayerSpawn", root, function ( ) if ( playerWeapons [ source ] ) then for weapon, ammo in pairs ( playerWeapons [ source ] ) do giveWeapon ( source, tonumber ( weapon ), tonumber ( ammo ) ) end end playerWeapons [ source ] = nil end )
    1 point
  18. addEventHandler("onClientRender", root, function () name = getPlayerName(localPlayer) dxDrawRectangle(0, 740, 1366, 28, tocolor(0, 0, 0, 254), false) dxDrawRectangle(0, 0, 1366, 28, tocolor(0, 0, 0, 254), false) dxDrawText("Name : "..name.."", 10, 0, 202, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false,true, false) dxDrawText("Money : ", 10, 740, 202, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("IP : ", 286, 0, 478, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Serial : ", 659, 0, 851, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Account Neam : ", 960, 0, 1152, 28, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("FPS : 0", 1252, -2, 1309, 29, tocolor(159, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Ping : 0", 1309, -2, 1366, 29, tocolor(157, 0, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Team : ", 289, 740, 481, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Skin : ", 683, 740, 875, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) dxDrawText("Players : ", 1020, 740, 1212, 768, tocolor(7, 158, 0, 254), 1.00, "default-bold", "left", "center", false, false, false, false, false) end )
    1 point
  19. Pleasure is mine. The Discord invite still doesn't work. When you copy the link from your Discord server, make sure to set the duration to the maximum (i.e never-ending one).
    1 point
  20. Gosh, this guy doesn't even read what's being said. I must agree with some fellows on the server that new inventory system might be great-looking but is totally unpractical. Plus the loot system is completely not random, therefor you may run miles and miles (for about 30 minutes) without anything really happening and without falling on interesting stuff besides can openers and empty bottles, even after a "reloot" (loots reset). 3/10.
    1 point
  21. Hotfix: -Doubled medic heal speed once again (Now +1 HP in 5 seconds while being close to a medic) -Test fix for the famous "0 ammo" bug, now there is a cooldown of 0,1s for switching the weapon -Test fix for camera shake not working sometimes -Fixed medic not healing himself -Fixed bug that prevented players from registering -Fixed Shop UI getting messed up by low screen resolutions -Fixed bug that prevented the radar and the "online staff" text from showing if you get spawned by the autospawn timer -Fixed "bug" that allowed players to attach planes to landing boats (U crazy trolls lol) -Fixed a flying bush on El Alamein -Fixed Payday not working at all -Fixed matches always ending as TIE -Fixed german Medic having access to Perception by default -Increased Tickets on Islands and El Alamein to 500 -Removed spawn protection from players that spawn on cap zones My Server now supports 800x600 resolution somewhat successfully, however its really not recommended to play on such low resolutions. And please dont come here and cry because something looks ugly/ is unusable because you are playing on 640x480 or something similar.
    1 point
  22. إستعمل هذهـ الوظيفة , أفضل وأسهل inspect
    0 points
  23. 0 points
×
×
  • Create New...