Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 28/05/17 in all areas

  1. @F_F -- هذا بيصنع لغة بنفسه وبيصنع نظام خارق ماحد يخترقه بنفسه .. @L3yr -- يعجبني اسلوبه بالتعامل مع الغير .. نادراً مايطلب كود جاهز ويتعلم بنفسه ========== في كثيرين بس مالي خلق احصيهم \: وماتقدر تعرف مستقبل الشخص , لأنك مو عالم غيب .. فمثال ذا : @Deativated -- كان 24 ساعة يطلب جاهز ويساعد غلط وشوف الحين كيف تطور -- للمعلومية كان اسمه لعبة : ) وبس بتوفيق للكل , اذا تبي تصير محترف بالبرمجة مو لاتطلب جاهز ! 1- خلهم يعطونك الفنكشنات والطريقة , 2- اذا مافهمت الوظيفة او الفنكشن تقدر تشوفه بالعربي واذا مو مترجم تقدر تقول في موضوع الويكي العربي 3- بعد ماتفهم الوظيفة وشفايدتها شوف الامثلة 4- طبق الامثلة ثم سوي كود خاص فيك 5- حاول 3 مرات تسوي كودات مختلفة بنفس الهدف 6- اذا تبي تتطور بسرعة بالبرمجة ماقول مستحيل لأن ذا بيد الله , لكن انت اهدف انك تتعلم وليس انك تتعلم بسرعة 7- من الممكن احد الاشخاص الله يعطيهم العافية يعطونك كود جاهز , ماقول لهم لا تعطون .. حاول يالشخص الذي استلم الكود تستعمل الكود بطرق مختلفة 8- تسوي نفس الهدف بعكس طريقة الكود ماقدرت حاول ماقدرت اطلب من المنتدى يساعدوك الشباب بأذن الله 9- لما تبدأ بالبرمجة توكل على الله ثم ابدأ ولاتخلي احد يحطمك فأنت تتطور مع مرور الايام وكثرة مشاهدتك للمواضيع , 10- انسى شيء اسمه مستعجل واستعجال , لان ذا بيخليك اولاً : تكره البرمجة ثانياً : مابتفهم شيء وبتتعود على الاكواد الجاهزة ======== ما اقول الا بتوفيق للكل وعسى كل واحد يصير من كبار المبرمجين بأذن الله .. [ سعر المحاضرة : 30 سوا , 90 فودافون ] للشراء تواصل معي : امزح بتوفيق للكل ثاني مره وسلام : )
    6 points
  2. يالحبيب هو يبيها كل واحد له مكان مايبي لو وصل اخر عدد يتصفر قلت لماستر فوق نفس الكلام
    2 points
  3. Because the function doesn't exist. Copy the function over to your script. Anything under https://wiki.multitheftauto.com/wiki/Useful_Functions are functions made by users and aren't actual MTA functions.
    2 points
  4. نحيطكم علماً بأن تم التعديل على الخطة الثانية لوجود خطأ مطبعي .. الخطة بعد التعديل تمت أضافة مبرمج في الخطة الالماسية : ملاحظة هامة جداًَ : المبرمج فقط سوف يبرمج لك 5 مودات كحد أقصى .. يمكن طلب مبرمج مره اخرى عن طريق التذاكر قريباً بعد فتح قسم البرمجة .. #خوادم_العرب_في_خدمتكم_دائماً
    2 points
  5. ممكن يسوي حدث كل ما يموت واحد من التيم يتحقق من عدذ اللاعبين الباقيين واذا وصل 0 يطلع رسالة انه الفريق خسر والفائز الفريق الآخر
    2 points
  6. Hello everyone, 1 month ago i started working on a script which will allow you to build using custom objects in a limited zone/area, more information bellow. And today i'm releasing the script! CITY ZONES About: City is a 100% player built system used in City zones.. Players can buy zones and then build stuff in their zone, like a house or group/team base. City also allows you to interact with some of it's objects, like programmable doors. City Zone Command List: /zonedata ID - Get information about the specified City zone (Stand in a zone to get the ID) /markzone ID - Find a City zone on your map /buyzone - Buy the City zone that you're stood in /sellzone - Sell the City zone you're stood in back to the server /setzonename ID name - Name your City zone /setzonedelegate ID AccountName - Give or take away permission to edit and add objects /setzoneradio ID webAddressForRadio - Play music to everyone in your zone, to turn it off just do /Cityzoneradio ID /wipezoneobjects ID - Sells every object that is in your zone. /objectswithinzone ID - see how many objects are in a zone /zonedelegates - to see who you've delegated access to. /zonesforsale - to see if have one City to sell. The blip is a green house. City Building Command List: /addentity - View a list of entities, make sure your camera is over the area you want to build on first /delentity - Delete the selected entity /copyentity - Allows you to copy a specific entity /editzonedoor - Allows you to edit a programmable door and give/remove access to players to spawn at the spawn point /editobjecttexture - Allows you to modify the texture of any City object /saveobject - Saves the selected entity. /objectzonesetslowmove 0-10 - Allows you to choose how is the slow movement of the city object 'ALT' is. To edit an object press 'X' then click on the object. City Entity Distance Modifiers: Left Shift - Hold this key to move objects fast Left Alt - Hold this key to move objects slow Left Shift + Left Alt - Hold both keys to move super slow (num lock must be off) City Entity Controls: (These controls can be changed in MTA settings) Arrow up - Move object north Arrow down - Move object south Arrow right - Move object east Arrow left - Move object west Tip: Have your camera facing north so the arrow keys make the object go in the same direction Numpad Del - Tell the server to update + save the object Numpad 9 / 6 - Raise / Lower the object height Numpad 1 / 2 - Rotate on the X axis (not usually needed) Numpad 4 / 5 - Rotate on the Y axis (not usually needed) Mouse Scroll Up / Down - Rotate on the Z axis Admin Access: /zoneadder - Create a city zone/area with an editable price. /deletezone - Delete a city zone that you're stood in. Ability to edit any city zone object (Press 'X' then click on the object) /sellzone - Force sell a city zone that you're stood in. General functions used: Edit door - Ability to edit a city door Edit texture - Ability to edit a city object texture Zone adder - Adding a city zone/area. Custom Objects - More than 160 custom objects. (Total 10mb) LUA files: [CLIENT] entityDoors.lua - /editdoor panel. [CLIENT] entityTextures.lua - /edittex panel. [CLIENT] zones.lua - Zone lines + Zone radio. [CLIENT] CityEditPanel.lua - /addent panel. [CLIENT] zonesManagments.lua - /zoneadder panel. [SERVER] zones.slua - Zone adder + Most commands are here. [SERVER] ZonesControls.slua - Object controls. [SERVER] ZonesCore.slua - Place object + Delete object + Copy object with current texture. [SERVER] ZoneDb.slua - To save city objects + zones created. [SERVER] ZonesFunctions.slua - Most functions are here. [SERVER] ZonesImportDb.slua - Import/Insert table from/to database. [DB] objects.db - All created zone objects are saved here. [DB] zones.db - All created zones are saved here. Price: 35$ 20$ - [G2A.COM] Steam Gift Card 20 USD (Send me the mail you receive containing the code you have recieved to my email) - PM me or reply for more information if you are interested.
    1 point
  7. ما في ناس ما يفهم بس في ناس مو حاط بالها إنها تفهم
    1 point
  8. I'm sorry to inform you, this section of the forum is not a gamemode supermarket where you can just ask for a complete list of resources, especially from other servers.. like, did you really think we will be able to give you all of those stuff? Go to https://community.multitheftauto.com/ and look for specific resources, you might find the one you're looking for, if not, either learn scripting or hire a guy.
    1 point
  9. You mean MTA's normal chat or a custom made chat? If it's the second, post the full script of the custom chat (client and server parts). Yes. Restarting a resource forces everyone to re-download and re-start the resource so that it's up to date with the changes.
    1 point
  10. حبيب قلبي والله انا اكثر كلكم حبايب
    1 point
  11. I don't exactly know how your database looks but just try storing them like this: payphones = {} for i,row in ipairs(result) do payphones[i] = {pos = {row.PosX, row.PosY, row.PosZ}, number = row.Number} end You could also use your row id and put that as the index/key for i,row in ipairs(result) do payphones[row.id] = {pos = {row.PosX, row.PosY, row.PosZ}, number = row.Number} end Later you can get them by their index phone = payphones[4] blip = createBlip(phone.pos[1], phone.pos[2], phone.pos[3], 0) number = phone.number Hope this helps.
    1 point
  12. لا تزعل علينا يا رجل والله اني احبك في الله
    1 point
  13. If you've deleted everything (lines in meta.xml and images) then all you need to do is /restart 'resourceName' to apply changes About the second thing, no idea. We'll need the full code I guess. And the third, there's probably some .xml file which holds the default values. Sadly I've never worked with anything other than Race gamemode so you'll have to figure where it is on your own. TIP: Open Notepad++, press CTRL+LShift+F, select your server's directory and type one of the setting's name in the "Find what:" box, now hit Enter. This way you'll find all files which contain that setting and there's a good chance you'll find the defaultsettings.xml (just example name, idk real xd) one which holds the initial values
    1 point
  14. addEventHandler("onClientGUIComboBoxAccepted", root, function(source) if source == moneycom then if guiComboBoxGetSelected( moneycom ) ~= -1 then if guiComboBoxGetItemText(moneycom,guiComboBoxGetSelected( moneycom )) == "100.000" then guiSetVisible(moneylabel1, true) end end end end )
    1 point
  15. حليت المشكلة خلاص كانت المشكلة في اللعبة الأصلية وليس برنامج الأون لاين نزلت نسخة اصلية وانحل الموضوع شكراً
    1 point
  16. اول ما بديت رحت اعدل على جيم مود ااتوقع وبسبب كذا عانيت الحمد لله على كل حال حاليا في تطور مع php+html wifi يعطيه العافيه علمني ككم شي بال php اما html الحمد لله افضل من php وفي اسستمرار باذن الله حاليا ابعد مخي كله عن css احسها صعبه هي والجافا سكربت
    1 point
  17. استبدل السيرفر بهذا local motor = { } addEvent('ev',true) addEventHandler('ev',root, function ( ) setElementDimension( source , 30 ) if isElement ( motor [ source ] ) then destroyElement ( motor [ source ] ) end motor [ source ] = createVehicle( 750,-1947.2127685547,161.13507080078,718618392944) setElementDimension( motor [ source ] , 30 ) warpPedIntoVehicle ( source, motor [ source ] ) end ) ولاتنسى حدث اول مايخرج الاعب تحذف سيارته من التيبل
    1 point
  18. والله المتغيرات مب هوايتي ه على العموم بما انها طريقه ابسط فالافضل للابسط مشكور +_+
    1 point
  19. @Master_MTA ماتستاهل كل هذا يرجال local Var = 1 local Places = { [ 1 ] = { x = 5 , y = 8 , z = 8 } , [ 2 ] = { x = 1 , y = 4 , z = 0 } , } aTeleportMarker = createMarker(-2766.55078,375.58664,7.33468,"arrow",2,255,255,0,255) addEventHandler('onMarkerHit',aTeleportMarker, function( player ) if getElementType( player ) == 'player' and not isPedInVehicle( player ) then if ( Places [ Var ] ) then setElementPosition( player , Places [ Var ].x, Places [ Var ].y, Places [ Var ].z ) Var = Var + 1 end end end )
    1 point
  20. You're trying to execute a client-side event that is called onBotSpawn. While in your client-side script, you have added an event and a handler for that event, but it's called onBotSpawn1.
    1 point
  21. باذن الله يب انت المقصود +_+
    1 point
  22. مشكور على نصيحة وانشاء الله بخفص جميع الاسعار
    1 point
  23. العفو يقلبي انا عطيتك نصيحه فقط ومبارك علينا وعليك يا رب
    1 point
  24. local Places = { [ 1 ] = { x = 5 , y = 8 , z = 8 } , [ 2 ] = { x = 1 , y = 4 , z = 0 } , } local mysec= { [ 1 ] = { x = 5 , y = 8 , z = 8 } , [ 2 ] = { x = 1 , y = 4 , z = 0 } , } aTeleportMarker = createMarker(-2766.55078,375.58664,7.33468,"arrow",2,255,255,0,255) addEventHandler('onMarkerHit',aTeleportMarker,function(player) if getElementType(player) == 'player' and not isPedInVehicle(player) and #Places < 2 then for k,v in ipairs(Places)do if k~=#Places then setElementPosition(player,Places[k].x,Places[k].y,Places[k].z ) table.remove(Places,k) break else setElementPosition(player,Places[#Places].x,Places[#Places].y,Places[#Places].z ) table.remove(Places,k) for m,l in ipairs(mysec)do table.insert(Places,mysec[m]) end break end end end end ) جرب بالتوفيق
    1 point
  25. Okay, so in this tutorial you will learn how to export a function, in this side to show a GUI and set the label text using "exports" let's start of with making the actual GUI part. requirements: a brain and an image called "warning.png" placed in a folder called "files" warning = guiCreateWindow(756,395,409,290,"Warning!",false) guiSetAlpha(warning,1) warningimage = guiCreateStaticImage(122,28,159,92,"files/warning.png",false,warning) warninglabel = guiCreateLabel(17,145,377,89,"Warning msg",false,warning) guiSetFont(warninglabel,"clear-normal") warningButton = guiCreateButton(18,245,376,29,"Close",false,warning) guiLabelSetHorizontalAlign(warninglabel,"center",false) Now we got our GUI, we'll need to make the function which we will later export. function warningWindow() end Okay, when we trigger the export, we will send a message right? So, we will need to retrieve the message by doing: function warningWindow(message) end Sweet! Now let's make sure that the GUI is actually visible and show them a cursor when we trigger the function using the export. function warningWindow(message) guiSetVisible(warning, true) showCursor(true) end And, of-course setting the label text to the message we will retrieve. function warningWindow(message) guiSetVisible(warning, true) showCursor(true) guiSetText(warninglabel, message) end Okay, now I think we're done with the function so let's add the event (because we will need to trigger it server sided if we make an export for server sided which we will!) and let's don't forget to disable the window when the players presses on the close button! warning = guiCreateWindow(756,395,409,290,"Warning!",false) guiSetAlpha(warning,1) warningimage = guiCreateStaticImage(122,28,159,92,"files/warning.png",false,warning) warninglabel = guiCreateLabel(17,145,377,89,"Warning msg",false,warning) guiSetFont(warninglabel,"clear-normal") warningButton = guiCreateButton(18,245,376,29,"Close",false,warning) guiLabelSetHorizontalAlign(warninglabel,"center",false) guiSetVisible(warning, false) function warningWindow(message) guiSetVisible(warning, true) showCursor(true) guiSetText(warninglabel, message) end addEvent("warningBox", true) addEventHandler("warningBox", root, warningWindow) function disableWarning() guiSetVisible(warning, false) showCursor(false) end addEventHandler("onClientGUIClick", warningButton, disableWarning) And, voila! You now have the full client code above! Now let's make the server-sided part! Since it's server-sided we need to retrevie the player and what message, so we just do as we did earlier function warningBoxServer(player, message) end And now we trigger the client event which we added with what player and what message. function warningBoxServer(player, message) triggerClientEvent(player, "warningBox", player, message) end Okay, now we're done with the lua part! Let's add those two functions to the meta! <export function="warningBoxServer" type="server"/> <export function="warningWindow" type="client"/> And now we can use this! --client: exports.RESOURCENAME:warningBox("Your message!") -- server: exports.RESOURCENAME:warningBoxServer(player, "Your message!") Enjoy, I tried to be so clear as I possibly could and hope you learnt something.
    1 point
  26. @#Soking local Marker1 = createMarker ( 1654.0517578125,-1655.1984863281,21.515625, "cylinder", 1.5, 57, 0, 0, 255 ) addEventHandler("onMarkerHit",Marker1, function (player) if getElementType(player) == 'player' and not isPedInVehicle(player) triggerClientEvent(player, "trig", player) end end )
    1 point
  27. -- at the top of the script, outside any function local playerVehicles = {} -- to destroy previous vehicle of this player (before spawning new vehicle, or when player disconnects, etc) if isElement(playerVehicles[player]) then destroyElement(playerVehicles[player]) end -- when spawning, store the vehicle as (don't forget to attempt to destroy BEFORE spawning a new one) playerVehicles[player] = createVehicle(...)
    1 point
  28. @Default الكود حقي و هذه كانت اسم الماركر و مفروض احط عليه داتا بس انا نسيت احذفه Marker = createMarker(-2766.55078,375.58664,7.33468,"arrow",2,255,255,0,255) addEventHandler('onMarkerHit',Marker,function(player) if getElementType(player) == 'player' and not isPedInVehicle(player) then setElementPosition(player,x,y,z ) setElementInterior(player,aInteriorNumber) end end ) @A7MEDENO تفضل الكود
    1 point
  29. جهازي قوي x_x والمشكلة انحلت طلعت ميزه في اعدادات الماوس والغيتها وبس والله ..
    1 point
  30. Sure, if you follow the same structure of the code (setting the X/Y, width/height) correctly, you should be able to add more. The calculation for armor is the same, imageHeight / 100 * armor, but for the oxygen, the maximum value is 1000, so it will be imageHeight / 1000 * oxygenLevel
    1 point
  31. Sorry, yes. I've figured it out. Apologies to @Jayceon, your code was perfect, I just copied it incorrectly. Thank you.
    1 point
  32. موضوع ادوات خاصة بالبرمجة داخل قسم خاص بالبرمجة .. ما اشوف القسم خطأ TXD workshop - txd يساعد في تعديل تصميمات الـ ووش سبب النقل !!!
    1 point
  33. على ما اظن لما قال شكرا فلقد استفاد
    1 point
  34. Hi there, I did a page documentation of one cpp file with it's 15 functions, what do you think, is it good? CAdditionalVertexStreamManager
    1 point
  35. As of 09/03/2017 we've pruned the entire section, as we felt some sort of rules and guidelines were needed in order to achieve a good listing for both server staff and interested parties. Rules: - General forum guide of conduct and rules apply in this section. - Any modification which is outside limits for the OP shall be reported via the report system in order to be addressed by a moderator. This is mandatory, as the goal is to keep this section as clean as possible. - Topics must have a detailed description of your server, this involves a brief description of your community, gamemodes you're offering and anything else that helps players to get interested on you. - Drama, server bashing, staff bashing, won't be allowed by any means. Members found guilty of these behaviour will be punished accordingly to our general guidelines and more severe depeding of staff judgement. - You should be atleast a staff member (or owner) of the server you're advertising (so no promotion by 'satisfied players'). - It's not allowed to actively recruit or persuade people to leave a positive opinion on your topic. Moderators reserve the right to judge if a spree of posts is suspicious (likely to be a result of this practise) and remove it on their own discretion, this is non-negotiable. Formatting your topic: - Topic titles shall have the form [SERVER TYPE] Brief description/Name [LANGUAGE]. - The first post shall be written in at least 3 parts, being the first a brief description of yourself, the second any media you may provide about your server, mostly ingame shots and anything you might want to show to interested players, and the third one server details, this involves connection details, contact details, and anything else you may provide to get players to your community. Any thread not following this guidelines shall be deleted and the user/s involved been given a warning depending of the staff judgement.
    1 point
×
×
  • Create New...