Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 31/03/18 in all areas

  1. Render events enchanting Having a lot of render events in your resource? Easier attach and remove? Or do you want to pass arguments in to a function which is attached to a render event? Then this might be something for you. Syntax: addRenderEvent bool addRenderEvent(function functionVar [, string eventName, arguments ...]) Arguments: The function you want to attach/target. The event you want to use. ( "onClientRender", "onClientPreRender", "onClientHUDRender") If you do not fill in one of these three, it will automatic fallback to "onClientRender". Fool proof. Arguments you can pass to the target function. (which isn't possible with the default addEventHandler + onClientRender function) Returns: true when added, and false otherwise. Syntax: removeRenderEvent bool removeRenderEvent(function functionVar [, string eventName]) Arguments: The function you want to attach/target. The event you want to use. ( "onClientRender", "onClientPreRender", "onClientHUDRender") If you do not fill in one of these three, it will automatic fallback to "onClientRender". Fool proof. Returns: true if found + removed, and false otherwise. (Not recommended to execute this function every frame > performance) onClientPreRender + timeslice If you use "onClientPreRender", just like the default event, it will pass the timeSlice to the attached/targetted function. https://wiki.multitheftauto.com/wiki/OnClientPreRender I am not sure if attached is the right word for this example, because it isn't really attached to the event. It is saved in a table which gets looped every frame. Performance Is this code bad for performance? The answer to that is NO. I ran a test for it, and it seems that addRenderEvent used less CPU AFTER adding the events. (addRenderEvent: 31% CPU, addEventHandler 99/100% CPU) Adding the event will probably use more CPU, but that is only one execution. Feel free to re-test this example, I am interested how it would perform on your pc's. Performance test code (Not the source code ) Source code:
    2 points
  2. 1st April 2019: THIS TOPIC HAS BEEN CLOSED BY MODERATOR ON REQUEST OF TOPICSTARTER EMERALD GAMING ROLEPLAY https://emeraldgaming.net WHO WE ARE We are a small team with 21 years of combined roleplaying experience amongst us all put together and we all have the same goal - creating a roleplaying environment that is enjoyable, accessible and most importantly - fair for everyone. Each of us have all held a administrative or leadership role within popular roleplaying servers in the past which has given us an in-depth understanding of all aspects within roleplay - civilian, legal, illegal and government. No matter what server, one thing has always been persistent; no community was able to continuously fulfill the three goals stated above. This eventually led us to come together and form a community of our own. WHAT WE PLAN TO DO Creating the ideal roleplaying environment which will appeal to everyone and all sides will take time and feedback - this is why we have gone public quite early in development; to build from the ground up based on community feedback in order to ensure we create the ideal server filled with features, rules and guidelines dictated by the community. At the end of the day it is you who'll be primarily playing and on the end of everything, not us. By removing the bureaucracy that most other communities revolve around, we're creating something that is built by the players themselves to ensure we stick to the right path and work from ideas and suggestions that the players have approved of. We aim to be a medium-to-heavy roleplaying server, enforcing the highest levels of immersion, roleplaying rules and at the same time, maintaining a high level of enjoyability. We feel that roleplaying nowadays has lost its touch with what it used to be years ago, a sort of grounds where you could come online, play with friends, build up what you desire or play any role within roleplay and enjoy doing it - whereas now it seems to be is competition, cops versus robbers and all about winning. Read more about Emerald Gaming here: https://forums.emeraldgaming.net/topic/35-what-is-emerald-gaming/ DEVELOPMENT CONCEPT There have been numerous communities that crumbled because of lack of attention given to a certain part of development or a feature, and that's why working without a deadline and at our own pace gave us the opportunity to work on features more thoroughly and in-depth. We've seen this in the past from other communities that have failed as a result of increasing desire and pressure to launch an unfinished server. We have devoted a great deal of our time to not only development but also to research what players expect from a server and how to improve from the mistakes of other communities, overall creating a more enjoyable experience. A substantial part of the process we need to go through is not only reducing the internal bureaucracy of the staff, or ensuring that everyone has equal opportunities, but also the experience of not being restricted by the server's script capabilities. WHAT WE HAVE TO OFFER All concepts, ideas and showcases are currently in their early alpha stages and do not represent actual gameplay, they are subject to change at any given moment throughout development until the final public release. 3D User Interfaces This is the primary feature that we believe will make us unique and re-invent the way roleplay is conducted on MTA. By creating graphical interfaces within the 3D world, players can interact with things such as vehicles or objects seamlessly like any open world game where pointing the center of your screen at the element triggers the ability to interact with it. Expanding on this idea, having 2D GUIs on screen all the time or for each interaction can leave the user feeling quite clustered - so we've minimized it all down to simple prompts and selections to get what you need done. An example of this concept can be seen below, where a player interacts with an ATM to withdraw money - the ATM interface is drawn as soon as the player approaches it, and you can begin interacting with it like any other GUI. Please bear in mind that the example below is a very rough draft to show the concept and does not represent the final project. Advanced Inventory & Item System Our item and inventory system is one that provides the highest level of immersion and accessibility. With custom models for objects to reflect the actual item itself, a sleek and simple inventory with an easier level of interaction to use - you'll get used to it as if you've been using it for years in no time. The inventory is split up into 4 portions. The main inventory holds all of your basic items such as your wallet, keys, clothing, accessories and storage items. The weapon inventory holds.. weapons. When a weapon is placed into this inventory, it'll appear on the player and be added to their hotbar for usage. Ammo is fed to the weapon directly from the main inventory. The hotbar is a concept we wanted to try out and see what the community thinks - you can place items into your hotbar by dragging and dropping them to any of the six available slots. From there you can pin your hotbar so it remains on screen wherever you like when you close your inventory. When roleplaying, you can then scroll through each item within your hotbar with number keys 1-6 or your mouse scroll wheel. This can be used to select weapons to equip in-hand, or hold out items such as your car keys to unlock your car, handcuffs to use before handcuffing a player and so on - the possibilities are endless! The storage inventory is only visible when you click on a storage item such as a backpack, dufflebag, basket, armor and so on. The size and slots that can be stored within the storage item depends on the item itself and its predefined slots. Dropping a storage item on the ground with contents inside will retain its contents, so you can finally fill a briefcase up with tons of money and pass it over the table to a mob gangster just like in the movies. Unique GUI System We use a custom GUI system which draws amazingly designed and easy to use interfaces instead of the stock MTA GUIs. Player Report Panel accessible via F1. Administrative Item Spawn Panel. Character creation. Character creation skill points allocation. (This will be explained in-depth at a later date.) Video displaying the full character creation. Focus on all sides of Roleplay We aim to provide enough script support for all sides of roleplay. Be it legal, illegal, government or just plain civilian. Leaving one side more superior and focused with features scriptwise can result in a loss of incentive of to play other roles, so making one role just as enjoyable as the next is key. Law Enforcement Because LEO roleplay is quite major and requires quite a lot of equipment on the script end to assist in being able to carry out essential tasks such as using an MDC, a prison system and tactical equipment, we'll be sure to incorporate everything a law enforcement officer needs to get the job done. Starting from just a pen and ticket book, all the way to a remote controlled bomb disposal bot. Illegal Roleplay The other major role of every roleplaying community. Illegal roleplayers are the heart and soul of creating exciting roleplay opportunities for other players such as gangs, large factions, shootouts and the general illegal atmosphere. With the Faction Team already functioning and prepared, we spent a considerable amount of time thinking of ways to provide life and new innovative features to illegal roleplay. We're making it easier than ever to grow drugs with a fully detailed drug system, requiring as minimal staff interaction as possible and allowing players to roleplay independently. We'll be putting measures in place to make sure that the economy is balanced to allow healthy illegal roleplay. Legal Roleplay When attempting to achieve a perfect balance between all sides of roleplay, legal RP plays a major role. Be it a bar, club or a trucking service - it's going to be a pleasant experience for company leaders, employees and entrepreneurs. Everything you need is going to be accessible in-game, such as creating a faction by going through the typically mundane process of acquiring a business license from the government. The Faction Team is more than open to hearing your suggestions and will have an announcement up in the coming weeks for more information, we can't wait to hear what you think! Customization Everyone loves customization and personalization. It helps you feel more comfortable and make something yours, and to do that we've added a ton of customization opportunities throughout. If you've seen the video above of the inventory system, then you already know you can move each inventory anywhere you want and save it's location. Pin and unpin your hotbar so its constantly on-screen or only appear whenever you hit a scroll number key. Adjust your HUD style to whatever theme you like through the settings menu, as of now we have two styles already available for all players, 'White on Black' and 'Black on White' with more coming soon. We even plan to open up design submissions to the community, so anyone can make their own HUD design using our provided templates and if it receives enough approval, we'll add it in-game! White on Black HUD Style. Black on White HUD Style. A ton of extra settings exist and can be found in the F10 menu in-game to toggle on graphical enhancements, shaders, or adjust how certain scripts react to your actions and make them do what you prefer. Preventing Abuse As with every server, we plan to have a large staff team at some point, and tracking the actions of each and every member can be quite time consuming, and some unintended actions can slip past unnoticed. We've tailored different ideas as to how we can resolve this, and at the end of the day we can have as many policies, regulations and rules in place but this doesn't stop the pesky habits of administrators who think they can slip past them all to get a quick weapon, item or vehicle fix. Everything and anything they do is logged, along with live notifications being sent to managers on duty with their actions for every command that can be abused in one way or another. If a staff member abuses the commands they have access to or breaks any rule and there is no manager online to see it, there are measures we put in place, allowing us to ensure that everyone is maintaining a very high standard. Performance Hey, with everything going on and all these great features being brought forward, where do we stand in terms of performance? All our code is written and rewritten multiple times until we're happy that it's at its most optimal and the highest standard possible. Promising such great and advanced features is one thing, being able to use them seamlessly is another so we've taken it as our goal to ensure that low end computers still have a chance to experience what we have to offer. We continuously check and monitor the usage of each resource occasionally to avoid the common mistakes other servers make, such as memory leak or high CPU usage. Prior to a public launch, we plan to run tests on virtual machines and try out different specifications to see how resources react and assess the playability until we're satisfied. A public graph will also be provided displaying the minimum and recommended specifications. Please bare in mind that MTA functions on only one CPU core, so even if you have a beefy super computer with an i9 processor and a ram size of 512GB, you'll still experience FPS drops for rendering and object loading in minor occasions. DEVELOPED BY YOU Development is a process that requires a lot of decisions to be made. An ideal community can only be built up when ideas and decisions are put into discussions - the best way to do is to hear everyone out, the whole community. We want to make roleplaying enjoyable for everyone, in all areas, fields and roles of roleplay. The reason we are publicizing the community rather early in development is for the sake of determining important decisions and features which will be utilized by the players for months to come. Each month we will be posting what progress has been made, constantly be creating surveys and initiating discussions regarding what features we need to pursue in order to satisfy every kind of player. We urge you to contribute to discussions and to make your opinion heard, everything is equally considered. The community will pave the road ahead. If you possess programming skills that you believe are of use to us, we always appreciate and urge developers willing to dedicate themselves to this project to apply for the Development Team here. Keep in mind that we have a very high standard that we maintain throughout development in order to reach the perfect balance of performance and enjoyability. We urge all newcomers with roleplaying experience to start a discussion, introduce themselves within the community or give us feedback regarding our ideas! When you've gotten comfortable, send us your suggestions and what you want to see in the server. Let's make something great together. Thanks for reading! CREDITS All content displayed is developed directly by the Emerald Gaming Development Team with the exception of any listed resources and/or code obtained from external sources. @thisdp for his original dxLibrary. @Grozz for assistance with 3D interface functions. @ryden for original superman resource. Stay up to date with Emerald Gaming and our progress!
    1 point
  3. السلام عليكم ورحمة الله معنا اليوم مود اذارة حسابات من صنع ThePrInCe وكان فيه بعض الأخطاء كان لما تفتح اللوحة تفتح للجميع الموجودين بي السيرفر فقام خوي MrKAREEM بتعديل على المود و صار يشتغل عادي و بدون مشاكل قم بتعديل على المود عبر وضع السريال لتفتح لك اللوحة صورة للمود رابط تحميل المود https://up.top4top.net/downloadf-7553snmo1-zip.html او http://www.mediafire.com/file/ycc5q3rm5gxh32i/Xaccount.zip
    1 point
  4. Excellent. This is a very nice and clean implementation. I hope many people start using this.
    1 point
  5. Reasons for your last 4 crashes: 1) offset 0x003C91CC (gta_sa): out of video memory 2) offset 0x00349B93 (gta_sa): bad model (your gta3.img mod or server mods) 3: offset 0x001D23AC (core.dll): out of memory (RAM) 4: offset 0x0031F760 (client.dll): out of memory (RAM) As you do have a 64-bit OS: in cases like this it's either too low amount of RAM/too basic graphics card, bad memory (like damaged RAM sticks prone to faults) or playing intensively on servers with a myriad of inefficient, bloated models (those who typically have over 1GB client download) most of the times combined with a not too high-end PC. But in your case.. you have 8GB of RAM, and a pretty decent GPU. I would blame it on software system issues I can see in your log or otherwise playing in the type of servers that I described for hours. Download & run this file: https://mirror.multitheftauto.com/mtasa/utils/servicing.bat (rightclick > Run as Administrator) to try solve underlying system issues. Also removing those modded GTA sound files could help, some of them look corrupted (nearly empty, and one is missing entirely) which perhaps results in some kind of memory leak. What you can also do is monitor your memory usage while playing (use /showmemstat and take a screenshot every 20 minutes, then post it here creating a graph indicating the point it crashed) and tell us which servers you usually play and for how long at a time. Note: besides bloated mods, the memory usage resulting in this kind of crashes can also be caused by bad scripts (abusing certain functions, creating memory leaks..) a good example of that is https://bugs.mtasa.com/view.php?id=9833 where it's demonstrated how one of the crashes listed above that you experienced can be caused by a script. If you have one certain server where you constantly crash on, it's a good idea to also contact the server owner besides troubleshooting on your own.
    1 point
  6. Do you have bad internet? You can try to find out what's consuming the most bandwidth on your PC in "Resource Monitor". Click on Start > Write "Resource Monitor" > Click Network tab > Look for process that's using the most bandwidth. Whatever the cause is, try to stop it, if you are not sure what exactly it is, then maybe you can post a screenshot here, but if it's your internet then we cannot help you with that.
    1 point
  7. Esse "funcionar" significa mostrar a mensagem no chat, certo? Porque essa é a única coisa que vai acontecer quando clicar. Seu código tem alguns problemas: 'source' em outputChatBox será nulo, e você está usando no argumento que é a cor Use os parâmetros button e state em "onClientClick"; e a variável pvip e a função isMainMenuActive pro painel-dx funcionar corretamente e de uma forma mais otimizada. Você está usando else na linha 43, que poderia ser elseif pvip == true then Use as variáveis de guiGetScreenSize fora do "onClientRender"; Você também colocou a variável screenH e screenW invertidas (linha 17)
    1 point
  8. اكيد باذن الله رجعت مصر يا منحوس +_+ نو كومنت اكيد باذن الله
    1 point
  9. To be able to do that, you have to learn how to communicate between client(player his pc) and the server(can also be the player his pc or another computer). GUI = clientside. Giving weapons, take money away(synced) = serverside You need to be able to understand this, even if you run your server on your own machine: The fibreculture journal. (z.d.). Architecting Cheating in MMORPGs [Foto]. Geraadpleegd van http://sixteen.fibreculturejournal.org/files/2010/07/Figure_3.jpg This tutorial might be handy.
    1 point
  10. تم الاتفاق مع شخص --------------------- شكراً لكم جميعاً .
    1 point
  11. على الرقم الأفتراضي 22005 httpport حيث قام احد المبرمجين بعمل تغير على اعدادات سيرفرات ام تي اي يضع بورت open game panel سبب مشكلتك هو تعنت احد المبرمجين في لوحة serverport مماثل لرقم البورت httpport في السابق قبل التعديل كان يتم وضع البورت من 22005 إلى رقم آخر غير مستخدم سابقا لسيرفر آخر وذلك لان من غير الممكن تشغيل اكثر من سيرفر على نفس رقم البورت httpport الحل لمشكلتك هو بعد عمل اي سيرفر جديد يجب عليك تغير رقم البورت
    1 point
  12. Would require a complete rewrite of MTA, as well as research into the mac version of SA (If there even is one) will almost certainly not happen.
    1 point
  13. @Debo15 نفترض ان الاعب اول مره يدخل بالسيرفر false راح يرجع count وتقدر تختصر الكود في سطرين
    0 points
  14. 0 points
×
×
  • Create New...