Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 13/12/16 in Posts

  1. 'without having to compile' read the question
    2 points
  2. السلام عليكم ورحمة الله تعالى وبركاته, كيف الحال؟ إن شاء الله بخير اليوم معنا سكربت النك ( الإسم ) العربي الفيديو الخاص بالسكربت :- https://youtu.be/WIwcxctefcs طبعا السكربت معروف لاكن سويته بطريقتي وضفت عليه مميزات جديدة المميزات : - اسماء اللاعبين العربية في التاب للدلالة, - سجل خاص اللاعبين وتغييراتهم لأسماءهم والألوان - للرقابة - تغيير لون الإسم الخاص بك - تفعيل \ الغاء تفعيل الخاصية - حفظ كل شيء على SQLite - التفعيل على السيريال وليس الحساب ( طريقة افضل ) بكثير ---------- الصور :- @1 الرئيسية : @2 تغيير اللون @3 صورة للخاصية @4 لوحة الإدارة @5 سجل نشاطات المستخدمين ---------- لتحميل السكربت :- MR.GRAND لا تنسى الإنضمام لنا : مجتمع MTA العرب ---------- للتواصل معي :- Skype : kamel1234128 E-mail : [email protected] في أمان الله, اخوكم مستر جراند
    1 point
  3. A while ago we had published a release candidate build for the upcoming release for you folks to test. This phase went fine, so we feel that we are now ready to present you with the new stable version of the mod - Multi Theft Auto: San Andreas 1.5.3! Just like before, this is an update for our current stable version series - MTA:SA 1.5. Contrary to this definition, it is rather a huge update which contains mostly smaller changes, but makes up for it with the amount of them. A lot of effort was put by @Jusonex and @sbx320 into cleaning the code and reorganizing the build system, both of which should make it easier for us to maintain MTA:SA's code base and simplify the compilation procedure. However, during the above mentioned RC testing phase we decided to revert some of the code clean-up changes and leave them for a future release due to problems they were causing. We feel it will be better that way as some of these changes simply need more work as they affect a lot of the code base, making it harder to pinpoint other issues that might be discovered. In the meantime, @ccw and @darkdreamingdan had worked on fixing bugs reported by the community. We also had updated several dependencies (third-party components which are used in our mod), including a bunch of utility libraries (such as sqlite, zlib, libpng or libjpeg) and the CEF (Chromium Embedded Framework) components. The latter especially is an important change which we had explained further in a separate post and also summarized briefly below. This update will be slightly troublesome for some of our players who are still using Windows XP and Windows Vista (which is, to be honest, a rather small amount). Regular 1.5.3 build will not work for such users, so we had prepared a legacy build just for them. Furthermore, such users need to be prepared that at some point we might drop support for Windows XP and Windows Vista for our future releases. Please read this post to learn more about this change and its consequences. Since the build system was reorganized, a lot of smaller changes which were originally made for 1.6 were also introduced in this version (as long as they were not breaking the compatibility), making it actually one of the biggest releases we have ever made (and also sort of a bridge between 1.5 series and the then-upcoming 1.6 release). You can check the list below for some of the most interesting changes, but we really recommend checking full lists of changes to check whether the feature or function you have always wanted is already available in this release: Added support for German Steam version of GTA:SA (thanks to Lakota, Mario and @Sh4dowReturns for feedback) Improved streaming of low LOD objects and increased limits Multiple popular crashes were fixed Code cleanups and improved internal error logging MTA:SA will now try to use the native screen resolution when first launched Fixed desktop resolution when minimizing with fullscreen borderless window mode Added client resource files path info to Advanced tab in Options window Added icon for Windows server executable and digitally signed the CEFLauncher executable New scripting functions: canBrowserNavigateBack(), canBrowserNavigateForward(), navigateBrowserBack(), navigateBrowserForward() and reloadBrowserPage() (developed by mabako); createTrayNotification() and isTrayNotificationEnabled() (developed by Necktrox); also resizeBrowser(), fileGetPath(), setVehicleWindowOpen() and more... Tweaks to dbQuery()/dbExec(), fileRead(), addDebugHook() and more... Fixed setBrowserAudio() not muting the sound correctly on some websites e.g. YouTube Fixed setCameraTarget() calculation (thanks to lex128) setVehiclePlateText() now works with any kind of vehicle, including motorbikes (thanks to lopezloo) Added blend parameter for setPedAnimation() (thanks to lex128) Added support for objects and weapons in ped damage events (thanks to lopezloo) Water elements are now limited to a specific dimension Fixed sniper scope disappearing after killing a ped (thanks to lopezloo) Fixed MTA sometimes not loading custom textures Fixed MTA slowly updating position of attached elements Security and performance tweaks for CEF Fixed CEF popups (e.g. <select> boxes) not being rendered correctly Added option to block server admins who login with an unrecognized serial Added duplicate log line filter for script debugging Fixed a connecting player being able to block resources from starting Tweaked logic of client resource file validation Added server logging for redirectPlayer Tweaks for admin, missiontimer, race, runcode and webbrowser resources (thanks to Dutchman101, Einheit-101 and PhrozenByte) Added map backups for Map Editor and changed its default fps limiter setting value from 36 to 50 (thanks to AleksCore for the latter) Removed the no longer needed VS2008 redist package from the installer ...and much more! A complete list of changes can be found here (recommended read) and here (incomplete, from r7816 upwards). List of changes to the resource pack can be found here (starting from and including Feb 18, 2016 upwards). Please be advised that UltraThing and older versions of ENB series mods are blocked in MTA:SA 1.5.3 due to their incompatibility with the MTA:SA web browser components. If you want to use ENB mod in 1.5.3, please update it to a newer version if your current one does not work. If, on the other hand, you want to use UltraThing mod in 1.5.3, you will not be able to do it anymore - sorry for that just like above - please update it to a newer version (v0.29 or above). Want to download MTA:SA 1.5.3? Click here to download the build for Win 7+. Looking for a legacy build for XP/Vista? You can download it here. Or you can click here to go to our home page. Once there, click the Download button at the top center of the page, then choose your build and you are set. Linux server packages are also available. This version is backwards compatible with our older 1.5 releases, but we still encourage everyone to update their clients and servers ASAP to ensure, that they benefit from bugfixes, security updates for CEF, performance tweaks or other improvements. We would like to thank the following community members for their contributions to the MTA:SA source code, resources or feedback for this release: Aboshanab, AleksCore, braydondavis, Dutchman101, Einheit-101, Lakota, lex128, lopezloo, mabako, Mario, Necktrox, PhrozenByte, qaisjp, rafalh, @Sh4dowReturns, zneext (Have you contributed to MTA:SA 1.5.3's or 1.6's source code/resources pack but were not mentioned in the above list? PM @jhxp with a link to your contribution and you will be added) We hope that you will enjoy this release. Also, please keep in mind that if you encounter a bug or a problem which was not present in previous versions, you can report it to our bugtracker. --MTA Team
    1 point
  4. Hello everyone, I am not able to join a server. Whenever i enter it i am kicked out by this error: This happens with 1 server only. I am able to enter all other servers.
    1 point
  5. شباب اريد تغير شكل دم اللي بيظهر على اللاعب ممكن حد يساعدني
    1 point
  6. يعني صراحه استغرب من ناس لما تشوف سيرفر مسوي المود تروح تنشر مثله يعني ماشاء الله أغلب سكرباتك مقلد الأفكار الواحد يصنع افكار جديده مو يقلد الناس ويسوي اضافات
    1 point
  7. @Implicit no problem!
    1 point
  8. Oh, hubieras dicho que usabas un trigger entonces blip = false addEvent("prueba", true) addEventHandler("prueba", root, function () if blip == false then el = getAttachedElements(source) for idx,value in ipairs(el) do if getElementType(value) == "blip" then destroyElement(value, 0) end end blip = true else local r, g, b = math.random(50, 255), math.random(50, 255), math.random(50, 255) createBlipAttachedTo(source, 0, 2, r, g, b) blip = false end end )
    1 point
  9. When dxDrawText called then it just draw to the current frame. So you have to call it on every frame whit onClientRender. (Or onClientPreRender it depends on what do you want to do: Game Processing Order)
    1 point
  10. يقدر يستعمل بدون ما ترسل لاعب ولا شيء عن طريق الكلنت او يكون اللوكال بلاير بعدها لوكال بلاير يعني كذا triggerServerEvent("test",localPlayer,localPlayer) وليس هكذا triggerServerEvent(localPlayer,"test",localPlayer)
    1 point
  11. المنتدي رائع والله بس لفضل لو تغيرو الاستايل تخلوه حق wzarh.net الللي هو حق ترايدنت 2012 اعتقد ستايل رائع اعتقد مع نكست @N3xT بالتوفيق لكم @iPrestege @سعد الغامدي
    1 point
  12. بدله بـ <meta> <info author="aziz_ly" name="script" version="1" type="script"/> <script src="server.lua" type="server"/> </meta>
    1 point
  13. setTimer( function() exports[ "اسم المود حق البار شات" ]:sendClientMessage(" here text ",0,255,0,true) end, 30000, 0) ضض سبقتني
    1 point
  14. مثال عليه setTimer ( function ( ) exports[ "topbarchat" ]: sendClientMessage ( "Welcome to server", source, 255, 0, 0 ) end, 60000 * 5, 0 )
    1 point
  15. لما تفتح الوحه سوي تقريت يجيب الي بـ القاعده ويحطه بـ القريد مثل تقريت EventS
    1 point
  16. That should work. even though functions should be called with a ":" but it's inside a table so the dot should work.. try using a ":" instead?
    1 point
  17. Please do know that this will cause lag if your sql server is working really hard. Lets say.. if a lot of people are logging in at the same time. I would rather use a callback for this, like so: function spawnOnLogin () dbQuery ( function ( queryHandler ) local result = dbPoll ( queryHandler, -1 ); if ( #result > 0 ) then local skin = result [ 'skin' ]; local cash = result [ 'cash' ]; local waswanted = result [ 'waswanted' ]; end end, "SELECT * FROM `player_stuff` WHERE `name` = ?", getPlayerName ( source ) ); end addEventHandler ( "onPlayerJoin", getRootElement(), spawnOnLogin ); Especially since it's onPlayerJoin, you should use callbacks like that.
    1 point
  18. Not sure but you can try this function spawnOnLogin ( ) local dataresult = dbPoll ( dbQuery ( db,'SELECT * FROM `player_stuff` WHERE name=?',getPlayerName ( source ) ),-1 ) if type ( dataresult ) == 'table' and #dataresult == 0 or not dataresult then return end local skin = dataresult [1] ['skin'] local cash = dataresult [1] ['cash'] local wasWanted = dataresult [1] ['wasWanted'] end addEventHandler ( 'onPlayerJoin',root,spawnOnLogin ) @LopSided_
    1 point
  19. addEventHandler( 'onClientGUIClick', root, function ( ) if ( source == Enterbtn ) then if guiGetEnabled ( Conf ) == false and guiGetEnabled ( Conf2 ) == false then outputChatBox("خطا : جميع الازرار مقفلة", 255, 0, 0 ) else guiSetVisible ( Window, false ) end end end )
    1 point
  20. Espero esto te sirva, esto lo que hace es cuando un jugador presiona un botón, todos deben esperar 20 segundos para poder volver a escuchar el sonido Server tabla = { } tiempo = 20000 addEvent("playSound", true) addEventHandler("playSound", root, function(name) if (tabla[root]) then return outputChatBox( "Espera 20 segundos para usar el comando!", playerSource, 225,255,0, true ) end local nameSound = tostring(name) outputChatBox(nameSound) triggerClientEvent(source,"startPlaySound", source, nameSound ) tabla[root] = true setTimer( function() tabla[root] = false end, tiempo, 1) end )
    1 point
  21. @LopSided_ You are providing incomplete chunks of reply which probably makes the original poster confused if he can't follow your logic (I understood what you were trying to do but it's incorrect as there should be one (and only one) line per row (1 row = 1 tent; but each tent can have 0 or more "itens" (items I guess, might be a typo)). For an easy solution, build key-value based array where the key will be the "itens" name and the value will be the quantity of that itens you get with the getElementData. Once the array is built, use the toJSON function to convert that array into a string. local tentItensTable = { {"Assault Rifle"}, {"Motorcycle"}, } local itens = {} for i, data in ipairs(tentItensTable) do local itenName = data[1] -- the 'iten' name local itenQuantity = getElementData(thecol, itenName) or 0 -- the 'iten' quantity (0 if 'false') table.insert(itens, { name = itenName, quantity = itenQuantity }) -- adding the 'iten' datas in the list end --[[ Here 'itens' is like a table with 2 columns that should look like this (for example): { { name = "Assault Riffle", quantity = 63 }, { name = "Motorcycle", quantity = 0 } } But now as you can't save complex types (like arrays and tables) directly, you have to convert it into a simple string using the toJSON function: --]] local itensJson = toJSON(itens) --[[ saving line --]] dbExec(thedatabase, "INSERT INTO bau_obj VALUES (?,?,?,?,?,?,?,?,?)", numeros, modelo, x, y, z, rx, ry, rz, itensJson) --[[ saving line --]] And to load the itens from database do it like this: ---- Loading the itens back somewhere else ---- local itensJson = REPLACE_ME -- Do your thing to get the 'itens' column value as string from the database in that variable -- Then convert the Json string back into our table of itens like before the save using fromJSON function: local itens = fromJSON(itensJson) -- Loop to read all itens in that tent for i, data in ipairs(itens) do local itenName = data["name"] -- the 'iten' name local itenQuantity = data["quantity"] -- the 'iten' quantity (0 if nil/false) setElementData(thecol, itenName, itenQuantity) end But for a clean/not dirty solution as above, you should use another table to only save the 'itens' with an extra column like 'bau_obj_numeros' that will store the value of the bau_obj it is related to: bau_obj table: numeros | modelo | x | y | z | rx | ry | rz 1 | 123 | 0 | 0 | 0 | 0 | 0 | 0 <-- tent 1 2 | 123 | 9 | 9 | 0 | 0 | 0 | 0 <-- tent 2 bau_obj_itens table: bau_obj_numeros | name | quantity 1 | Assault Riffle | 54 <-- tent 1 1 | Motorcycle | 1 <-- tent 1 2 | Assault Riffle | 180 <-- tent 2 2 | Motorcycle | 0 <-- tent 2 Here tent 1 has: - 54 ammos of Assault Riffle - 1 Motorcycle And tent 2 has: - 180 ammos of Assault Riffle - 0 Motorcycle See one-to-many relationship. I hope it makes sense for you. It will require more modifications of your script but that's a standard thing for storing a list for a given row in a database. Remember this: If a column needs to store a list of another thing, then create another table for that other thing. Best regards, Citizen
    1 point
  22. To create a blip, the server needs a function 'createBlip'. The wiki states; blip createBlip ( float x, float y, float z [, int icon = 0, int size = 2, int r = 255, int g = 0, int b = 0, int a = 255, int ordering = 0, float visibleDistance = 99999.0, visibleTo = getRootElement( ) ] ) The visible distance is simply how far you can be away from it for it to work. If you want to do it the easy way; search every file (use an editor like notepad++ for this) to add the distance to every blip.
    1 point
  23. طيب ليه من اول مب مخبرنا جالسين نحشش فالكودات ضض
    1 point
  24. كلكم غلط + تم حل المشكله من يوم ما رد #Soking الاخ
    1 point
  25. 1 point
  26. 1 point
  27. نبي رايكم في منتدى مجتمع العرب www.mtaarabs.com + اقترحاتكم لكل شخص سجل او دخل المنتدى @N3xT @Mr.MtFcH @Abdul KariM @MoDeR2014 @MR.GRAND @MR.NaiF-MTA @iPrestege @MrSAUD1 @Mr.CoR @Mr.TnT @#BrosS @iMr ~ MnHmAr @iiKhaled @3NAD @MR.S3D
    1 point
  28. We just want a better streaming system and the ability to use custom ids in engineImportTXD, engineReplaceModel etc
    1 point
  29. You will be unbanned automatically once your ban period passes. An early unban? No, at least not any time soon. You did what you've done so don't be surprised that you're taking responsibility for it.
    1 point
  30. أستغرب الصراحة من الأكواد اللي فوق, كلها غلط بغلط والله لو برستيج بيعطيه الأكواد ماهي صعبة ترا وكلنا نقدر, خلوه يحاول بنفسه كلينت : addEventHandler( 'onClientGUIClick', root, function ( ) if ( source == btn1 ) then triggerServerEvent("refresh:Label:Text",localPlayer,"Label 1") elseif ( source == btn2 ) then triggerServerEvent("refresh:Label:Text",localPlayer,"Label 2") end end ) addEvent("set:Label:Text",true) addEventHandler("set:Label:Text", root, function ( text ) if text then guiSetText(Buy_Status, text) end end ) : سيرفر addEvent("refresh:Label:Text",true) addEventHandler("refresh:Label:Text", root, function ( text ) if text then triggerClientEvent(root,"set:Label:Text",root,text) end end )
    1 point
  31. No damn reason? Read the goddamn bug tracker on it. There is definitely a reason to not use it. The developers themselves have stated they don't fully understand it and why it breaks animations. You also think they would try and do it since there's a 100 Euro sponsorship on it. I remember Cazomino saying on IRC that it was a lot of hard work that would take a long time to do from multiple people. I don't see this feature happening anytime soon.
    1 point
  32. I really don't get why people are still playing SAMP; MTA is a whole lot better for plenty of reasons. - Better optimization - More scripting ability - Join and play, no having to manually install mods if the server is using them - Etc, I just woke up and don't feel like listing more.
    1 point
×
×
  • Create New...