Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 23/01/19 in all areas

  1. Verifique se o elemento que atingiu a marker é mesmo um jogador Não vejo o trecho que é definida a skin, mas para muda-lá use a função setElementModel
    3 points
  2. 2 points
  3. local x,y,z = getElementPosition(player) outputChatBox("Estás nas coordenadas "..x..", "..y..", "..z, player)
    2 points
  4. فاهم فكرة الفنكشن خطأ انت tonumber = يحول القيمة الموجودة الى رقم, مثلاً يحول السترنق الى رقم
    2 points
  5. To post a topic in the Scripting section your topic should meet the following requirements: It must contain specific questions about either: the code you will include that is problematic or you are asking direct support for, or asking for help in finding the best approach to achieve something. For example, asking more experienced scripters if there is a more efficient way of coding your desired script/function. The contents of the topic must focus around code support or coding methods. It needs to follow the Formatting guidelines and Conduct guidelines listed below. This section is not for: (resource) progress show-off, recruiting scripters, or polling interest or brainstorming on what kind of project you are up to next All of the above things have their own categories to post them in. These categories are respectively: https://forum.multitheftauto.com/forum/87-resources/ https://forum.multitheftauto.com/forum/149-looking-for-staff/ https://forum.multitheftauto.com/forum/140-mta-chat/ If you still post such a topic in the Scripting section mistakenly, the first time it will get moved gracefully to the correct section. Any subsequent repeated mistakes may result in an instant deletion of your topic. Formatting guidelines It would be highly appreciated if you tag your topics appropriately and use proper topic titles. Although this is not a hard requirement, it helps to maintain overview. Use the following template for this: [BUG] TOPIC_TITLE - for problematic code that will not work or has issues that you need assistance with. This type of topic must always contain a code snippet of the script in question. Most of the times, you will need to provide the entire script. [QUESTION] TOPIC_TITLE - scripting questions, including (but possibly not limited to): asking for help in understanding scripting principles, function or code usage, or if you wonder whether your approach to achieve something is the most optimal and efficient one. We are all learning and aid from more experienced scripters can be useful. Use code snippet tags. Always add your code (if applicable) in this uniform way. Click the ''< >'' shortcut in the text editor, as seen in below screenshot: Then put your code within the box that said button (< >) creates. Be sure to select Lua for highlighting from the drop-down list in bottom right corner for automatic syntax colouring, wiki links for built-in functions and events and other cool features. Please do not use loose [ code] tags for the sake of readability. Do not mass-quote code snippets, or else it would fill up the whole topic with repeats of the same code over and over again. Remove the code column from a previous quote before posting or limit your own quote by narrowing down the parts of code you are replying about. Quote selectively. Advice Last but not least, please try to explain your issue or question the best way you can. A clean and detailed topic can increase the chance that someone will sit down to analyse your problem and actually help you. Clear communication and description is also the key to attracting scripters who may potentially take a look for you. Note that a common request is to "post the full script" and that isn't without reason - problems often go deeper than you think (or the issue is structural / architectural of nature) and other scripters will find it difficult to help you debug or trace it without having a good picture of everything. Especially with questions regarding bugs or something not working as it's supposed to, you may have low or non-existent outreach from others if you're not providing full code. Similarly, also keep in mind posting screenshots (or lines) from debugscript, errors or warnings, that include the line number, you will need to number any script code you provide in your topic to ensure others can intepret it and find the corresponding erroring lines. Code of Conduct Treat everyone with respect, no matter their skill in scripting. If someone posts what you think is low level/''stupid'', remember that you have once been there as a novice scripter yourself and everyone should have a chance to learn. Instead of resorting to humiliating replies, think about how hard it is to learn how to script efficiently, and dedicate yourself even more to help them understand it. You might play a noticeable role in someone's future as MTA scripter (or who knows, maybe an even more prominent role later on too). Long story short, avoid making remarks or rude comments aimed at someone's skill level, incapabilities, etc. It is not appreciated neither by us Moderators nor by regular users of the forums. The Scripting section is not meant for those unwilling to learn, whose only intent is to try get others to finish the scripts they need, line by line. We see this happening way too often - someone with seemingly zero scripting skills does not react on-topic to the set of functions they can use that other users provide them, and does not seem to take any pushes in the right direction forward; they are just waiting for a collective effort from other scripters to develop what they want. This is what we do not want to see. Do not expect all the work to be done for you while you lean back. You should at least try to script it by yourself - users on this subforum are generally happy to help in any particular issue you come across while coding. If you see someone who keeps bumping their topic that is clearly oriented at letting his work be done by others, then please report the post. The bumping policy in scripting section is a bit different from other forum sections, because scripting topics serve as a sort of knowledge-base for those dealing with the same issue/question as described in existing topics. It is often suggested (and usual practise for many scripters) that prior to posting a new topic, someone searches the forums to see if their question has been asked/answered before. Therefore, you may bump old topics if you're certain your approach or solution/code is better than other posted answers, and if it's a fairly common question (not someone just asking how to have their own code fixed or similar case-specific topics). However, we the moderating team may still review if your posts are really useful bumps with new insights, and even if so, we can lock the topic to prevent derailing of an old topic/continuous posts. So expect your useful bumps to possibly be the last ever made in a certain topic (which means if you do it, do it well). If you believe a popular topic for a really common scripting problem should be unlocked for you to post input, or you wish to improve upon someone's earlier bump after which it was locked, then please use the Report button referring to this part of the regulations. No support is offered for leaked code or scripts (even if they only partially originate from a leak) and such topics will be locked and trashed on sight. If you notice a topic where something related is being asked, or other clandestine requests (such as questions how to decompile scripts, etc, anything with not-so-noble intentions) then please report the topic and do not reply as it may incite unnecessary arguments. Mention the source proving that it is a leaked code within your report, though you can omit that if you feel that it is fairly obvious that the resource/script was leaked. In the latter case however, keep in mind that we may not be aware of such a leak, so the Moderator who handles your report will have to take his judgement upon it if you do not provide evidence. Still, keep in mind that you should not openly accuse users who post pieces of your (or someone else's) code as per https://forum.multitheftauto.com/topic/46410-stolen-resource-accusations/. If this happens, simply report such posts. Failure to abide by the Code of Conduct may result in a forum punishment. If you notice anything that violates the Code of Conduct, please report those posts instead of enforcing the rules yourself. It just takes a few seconds, but greatly benefits the Section and makes it a better place to seek help from.
    1 point
  6. Hi! Following the community discussion in our forums, we have created an official Discord server quite a while ago, as an alternative (and maybe a full replacement in the future) to our current IRC channels. We kept it in under the radar while we were fine tuning things, but we believe we can now present it to you guys. All MTA players and fans are welcome to join our Discord server (though please behave while you are in there ). You can join it by using this link: https://discord.gg/mtasa What is Discord? Discord is a hybrid of IRC, an Instant Messenger and a Voice Chat software. It incorporates the most important features of these elements into a handy and multiplatform app which you can run on your desktops, smartphones or tablets. Why is it cool? Compared to IRC, it offers a built-in chat history buffer, so even if you are offline, you can still catch up with what happened in the channels then. IRC also offers that, but only through an IRC Bouncer that you either need to pay for, or have someone host it for you. It also has a modern look and features such as URL embedding (regular websites, but also pictures and videos), handy syntax colouring for pasted code snippets, emojis (also custom ones), chat messages reactions, Steam integration and more. What can I find while I am there? We currently have some channels created, including: #general - for general MTA and offtopic chats #scripting - for Lua scripting-related queries #support - for any problems related to MTA:SA client or server #announcements - for all important messages from us as well as some others. We are still thinking of how to put our Discord server into its full potential, so we may add more channels soon. Can I have Discord app installed and/or running on several of my devices concurrently? Can I use more than one server? Sure, absolutely. It will sync the messages automatically. And yes, you can add more servers than just our one. How do I join it? Hey, we have mentioned that already. Just click the link below and follow the instructions: https://discord.gg/mtasa I have a suggestion about the Discord... Okay, let us know. As usual, we are open for suggestions. Just post in this topic or hit us up directly on Discord. Hope to see you there! -- MTA Team
    1 point
  7. You're the GOAT. Thank you, man. I'm going to modify my code using your suggestions.
    1 point
  8. I just edited my post, talking about the possible error at line 17: #value returns the length of a table or a string, example: local myTable = { "one", 2, "three" } print( #myTable ) -- output: 3 By the way, I think I understand what you want to do, here is a small code that creates sequentially routes defined in a table: local locations = { { X, Y, Z }, { X, Y, Z }, { X, Y, Z }, } local index = 1 -- test -- addCommandHandler( "createloc", function ( player ) crearPuntoEntrega( locations, player ) end ) -- function crearPuntoEntrega(tabla, thePlayer) local tabla = tabla local RADIO_ENTREGA = 1 local X,Y,Z = unpack( tabla[index] ) local zonaEntrega = createMarker(X, Y, Z, 'checkpoint', RADIO_ENTREGA, 255, 0, 0, 255, thePlayer) local zonaEntregaIcono = createBlip( X, Y, Z, 0, 2, 255, 0, 0, 255, 0, 16383, thePlayer ) addEventHandler('onMarkerHit', zonaEntrega, function( hitElement, md ) if getElementType(hitElement) == "player" and md then if isElement(zonaEntrega) then destroyElement(zonaEntrega) end -- isElement: to avoid annoying error messages if isElement(zonaEntrega) then destroyElement(zonaEntregaIcono) end onMarkerHitFunc( tabla, hitElement ) end end) end function onMarkerHitFunc( t, p ) if p and t and #t <= (index + 1) then index = index + 1 crearPuntoEntrega( t, p ) elseif p and #t > (index + 1) then index = 1 crearPuntoEntrega( t, p ) else -- invalid table or player element end end The table 'locations' represents the table with all coordinates, just pass the table you want for the function along with the player element. Don't call the function inside a loop, from what I saw above, you did it here: dbQuery(function(queryHandle) local resultados = dbPoll(queryHandle, 0) for indice, puntoEntrega in pairs(resultados) do table.insert(tablaRecorrido, resultados[indice]) crearPuntoEntrega(tablaRecorrido) end end, db, seleccionarSitio) Firstly, get the query result, and then use the table 'tableRecorded' for that (this table must be structured in the same way as the table 'locations' from my code). It will look like this: local tablaRecorrido = { } function cargarRecorrido( thePlayer ) if not (isElement(thePlayer)) then return end -- dbQuery(function(queryHandle) local resultados = dbPoll(queryHandle, 0) for indice, puntoEntrega in pairs(resultados) do table.insert(tablaRecorrido, resultados[indice]) end end, db, seleccionarSitio) crearPuntoEntrega( tablaRecorrido, thePlayer ) end
    1 point
  9. Try by checking the 'hitElement' parameter, also, you need to pass the player to the function. Edit: Another thing you need to debug is the table.remove and the condition at the line 17. Probably the 'destroyElement' message is due the function "createPuntoDelivery" being always called, causing this error. Try this: function crearPuntoEntrega(tabla) local RADIO_ENTREGA = 1 local X = tabla[1].x local Y = tabla[1].y local Z = tabla[1].z local zonaEntrega = createMarker(X, Y, Z, 'checkpoint', RADIO_ENTREGA, 255, 0, 0, 255, player) -- local zonaEntregaIcono = createBlip(X, Y, 0, player) 4th argument is the blip id local zonaEntregaIcono = createBlip( X, Y, Z, 0, 2, 255, 0, 0, 255, 0, 16383, player ) addEventHandler('onMarkerHit', zonaEntrega, function( hitElement, md ) if getElementType(hitElement) == "player" then if isElement(zonaEntrega) then destroyElement(zonaEntrega) end -- isElement: to avoid annoying error messages if isElement(zonaEntrega) then destroyElement(zonaEntregaIcono) end table.remove(tabla, 1) local next = next if next(tabla) == nil then recargarPizzas() else crearPuntoEntrega(tabla) end end end) end
    1 point
  10. Hello, yesterday I was playing on MTA on 4Life server, I was doing a job, driving a small car and cleaning roads to make money. The more I will collect pollutions, the more I will get cash. I was driving and collecting pollutions about 3 and half hours, I collected 150kg of pollutions what is about 7000PLN (currency using on this server), and when I was on spot to unload pollutions, my game has been paused and I got notification about ban "Disconnect, You has been banned by console: Antyhack #5". I searched on internet about it then I found on MTA Wiki about it and I can see its because of Detects use of trainer. I wasn't using any trainer or program which was helping me with game. I also have some short records, from Snapchat when I was making that job for 3 hours, but I can't attach an mp4 here.
    1 point
  11. The ban with reason "Anty:hack #5" is a server ban with custom ban reason (being that), not global. The only way to get rid of it, is appeal your ban on their forums at https://mta4life.pl/forums/forum/145-apelacje-od-nałożonych-kar/. MTA has nothing to do with server bans, so unfortunately we can't help you further.
    1 point
  12. منورين الموضوع جميعا حبايبي ..
    1 point
  13. ما انتبهت إنه حاط الخط الإفتراضي
    1 point
  14. Forum Rules for Multi Theft Auto: Forums Welcome to Multi Theft Auto: Forums. Please follow these rules to ensure your stay here. TL;DR version Please use common sense and do not do anything which would cause us trouble and we will do our best to not cause you trouble either. Also, be nice. How to contact the Forum Staff MTA Forums are maintained by a team of volunteer administrators and moderators, later referred to as Forum Staff. Please respect their work, as they do it in their spare time and are not getting paid for it. The Forum Staff consists of all active Moderators (section-specific Moderators and forum-wide Moderators) and MTA Team members and is lead by Lead Global Moderators. Their job is to keep these forums in check. You can find the list of Forum Staff members in the Staff section of the Forum. If you need to contact us, you can use following communication channels: Discord (recommended for general questions): Server details | Click to join Forum Messages (PM; recommended for account actions requests and private queries): Staff List Twitter (you can highlight us in your tweets if you would like to receive a reply): @MTAQA Steam Group: Steam Community A. General Forum Rules This is an international forum so all posts should be in English and should also be placed in appropriate sections. Discussions in other languages are allowed, but only within the designated section. By posting to this board, you agree that any content (including code snippets) posted by you will stay visible indefinitely unless decided otherwise by the Forum Staff. Requests for release dates, beta tester positions and demands for information regarding future MTA features may be refused or ignored. Racism, discrimination, bigotry, obscenity and illegal activities are unacceptable in any form, whether it be posts, images or signatures. This includes pornographic and racist images, violent and insulting language of any kind, and posting copyrighted content and warez. Breaking this rule may result in an immediate ban. Do not disclose personal details (eg. names, addresses, telephone numbers, photos) of other users. Do not insult or impersonate other forum members. Do not post religious content on these boards (and on the other services we provide). This is a forum for a multiplayer mod, and not the one to discuss religions. We have no problem with whatever you believe (or whatever you do not believe), just do not drag us into it. Flaming and 'flame wars' will not be tolerated. Ban evasion will not be tolerated either and will be dealt with severely. Backseat moderation² is not allowed. If you see that something should be done about a certain topic, post or user, please report it and leave the decision to the Forum Staff. Do not post anything that is against our EULA. Any advertisement, discussion or sales which appears heavily based on content from existing servers, may be subject to deletion at the discretion of forum staff. Do not post any software that could be used for cheating in MTA gameplay. However, if you have such software in your possession and you would like to share it with MTA Developers, please send it directly to Anti-Cheat Team members via PM (currently ccw & Dutchman). If it is an unknown cheat, we may offer you a compensation for it. Do not advertise non-MTA related products, services and websites on our forums and other pages. MTA-related products, services and websites can be advertised in the following sections: MTA gameservers and communities that you can play on – please use the Servers to play on section hosting companies that can host a MTA server for you – please use the Hosting solutions section paid scripting, mapping, administration, web-design and similar offers – please use the Looking for staff section You can appeal a ban or a decision made by the Forum Staff member – see tips below on how to do it correctly. Insulting a Forum Staff member or getting in an argument with them are not the best ways of doing so. You can expect further actions from us if you do that. B. User Accounts Rules The Forum Staff will never ask you for passwords to your forum account, game server or other services. Quite contrary – we urge you to keep your user account credentials safe, and if possible, to use unique passwords in our forums. If you lost credentials for your old forum account and you can not use the forum’s built-in Password Recovery form, then we can attempt to recover your account manually for you. Please contact us in such a case and make sure to provide us as much information about the account as possible (eg. possible associated e-mail addresses, registration and used IP addresses / ISPs / countries, last activity dates or usage patterns). It is possible to merge two or more accounts into a single forum account, provided that you own all of them. Please contact us and we will do it for you – all of the content will then be moved to that single account. It is possible to rename your forum account, although only once per a while. Please read this topic to find out how to do it and how often it can be changed. Users can own more than one forum account, as long as these accounts are not used for breaking forum rules or other malicious actions (eg. evading a ban, tampering with forum statistics or poll results, disrupting topic discussions). Using multiple forum accounts for posting fake feedback or opinions on servers/server hosters/resources/etc. is strictly forbidden. Similarly, we allow sharing accounts, with the exception of the following cases: Shared account has moderator permissions – sharing such an account is strictly disallowed. One of the users involved in sharing an account is banned. Account is shared with an intention of personal gain by one of the involved users (eg. by tampering with forum statistics). Account is shared with an intention of derailing an existing forum topic by posting off topic comments. Very rarely, we may use special counter-measures against spam bots and ban evaders, such as manual account activation. When this is in effect, new user accounts may not be activated instantly. Please do not create an additional account as it will not be activated faster in such a case, (unless you need an additional account). Instead, please contact us by using any of the communication channels listed at the top of this article and provide your username or e-mail address. Similarly, new and junior Forum accounts must use the Forums for a period of time before being granted all Forum features. These restrictions are to combat spam and abuse. C. Posting Rules and Advice Please use the Forum Search feature to see if your question had been asked before. Additionally, please consult the online documentation if you have problems with the mod or Lua scripting before you post. If you cannot locate your topic or post, please search for it. It could have been moved to another section. If you want to create a topic, please use the sub-forum which suits best for it. You can find the list of sub-forums on the main page of the forum. Make sure to use descriptive titles for your topics. Topic titles which consist just of words such as 'HELP', 'Help me' or 'Please read' are not descriptive at all. Please keep in mind that when you make a post, you may not be able to edit it after 2 hours since it was posted pass. This is done to prevent users from removing the original post content right after they received a satisfactory reply. There are exceptions to this though – see this topic for more details. Please avoid making double posts. Do not post the same topic or content multiple times or re-post it to different sub-forums. It is okay re-post the translation of the content which was originally in English to Other Languages sub-forum as long as this does not violate other rules. Likewise, it is okay to re-post a foreign language topic to main forums, but it needs to be translated to English and posted in the correct section. If there is a topic similar to the one you wish to create, please reply in that topic rather than making a new one. You may bump¹ an old topic if it was created by you, or if the topic is about a problem you are also having. Please do that sparingly though, and only after some time has passed since you have posted. If you intend to bump a support topic then please provide some additional details about the problem in the new post, if available. Please use the [ quote] tag sparingly. Usually there is no need to quote the full message of the original poster, or the message of the poster directly above your post, so please do not do that. If you need to include a source code snippet in your post, always put it inside the [ code] tag. This makes your code easier to read and provides syntax highlighting where applicable, also makes it possible to automatically provide wiki links to MTA scripting functions where needed. Do not reply to spam posts or other posts severely breaking the rules, please report them instead! The reason for this is, that if you reply to a spam bot, your posts will remain even after we delete all posts made by such a bot. Not only this leaves us with more work, but it may also lead to mistakenly flagging your account for removal for posting unwanted content. At the same time, please keep in mind that we will ignore post reports which are related to an argument between some forum users and ask us to support either side. Similar to User Accounts Rules, very rarely we may use special counter-measures against spam bots and ban evaders, which may lead to hiding newly posted content until it is approved by the Forum Staff. In such a case please wait patiently until we approve the post – there is no need to re-post it. D. User Profile Rules Total size of images in your signature must be within either 500x150 OR 720x80 pixels. Anything larger may be removed when noticed. Signatures should use reasonably sized fonts and only a limited number of hyper-links. E. Moderator Decision Appeals Please do not contact several Forum Staff members regarding the same subject. You can contact another Forum Staff member if you do not get a reply to your first message in a timely manner (eg. within 48 hours). Our Moderators are chosen from talented, respectful and active members of our community. We are confident in decisions they make. However, if you are not satisfied with a certain moderator's decision, you can contact them directly about your concerns. Make sure to be polite and explain your point well. If you are still not satisfied with the decision, you can ask a moderator with a higher rank to mediate for you. Just like above, be polite and try to explain your point even better. See Appendix C below for a more extensive explanation of the appeal process. F. Ban appeals Please do not create a new forum account once you get banned from the forum. If you do so, you will be banned again for ban evading and the duration of your original ban will be extended. Instead of evading the ban, you can try appealing it on our Discord’s #support channel. If you were also banned on Discord, please do not try to evade your ban there. Ask someone to contact us for you (or use another communication method as listed at the top of this article). Based on your infractions, we might decide to issue a cooling off period for your ban, during which you should not access the forums. Once it expires and you have followed our suggestions, you can ask us again to remove your ban. If you are looking for an appeal for a ban from a certain MTA server, please contact the server owner of that server. We can not unban you as we have no power over that server. Easiest way to contact the server owner would be to go to that server's website or look for the contact details for that server in Servers to play on sub-forum. G. Section Specific Rules a. General MTA -> Other languages (non-English) section and its sub-forums Basic guidelines. Additional rules may apply, depending on the section. You can only post in these sections if you speak the language which is used in the specific section. Do not post there otherwise. Additionally, English discussions are generally not allowed in those sections. Posting in English in these sections may result in a forum warning. Exceptions apply – if a Moderator starts a topic in such section in English, then other users (only those who speak the language of that section) can post in English in such topic too. Posting in English is also allowed (and preferred) in the General Multi Language discussion sub-forum. Moderation in some sections might be limited if we do not have moderators fluent in such languages. b. MTA:SA -> Support for Client & Server sections Client - How to ask for help in the Client Section Client - Introduction to MTADiag utility c. Community -> Scripting sub-forum Guidelines and formatting tips Additional guidelines d. Community -> Resources sub-forum Community regulations & guidelines Stolen resource accusations are not allowed e. Community -> Other Creations & GTA Modding -> Modelling sub-forum Purpose and usage of this section f. Community -> Competitive gameplay / Gangs sub-forums You may only post in another gang's thread to: ask for a match, arrange time for a match, cancel a match, apply to join, or to offer assistance such as refereeing or providing a server/web space. You may NOT post in another gang's thread for any other reason. Arguments and disagreements should be taken up elsewhere, such as the gang's own forums, for instance. g. Community -> Servers -> Servers to play on sub-forum Only one thread per server is allowed. This makes it easier to find information about a certain server, as it will all be available in a single topic – just make sure to keep it updated. Stolen resource accusations and other causes for fighting are not allowed. Click here for a detailed explanation. In addition to above, we may take extra measures against users who are server owners and are trying to pick a fight in topics of competing server owners. Make sure to report such posts instead of replying to them. h. Community -> Servers -> Looking for staff sub-forum Rules and formatting for this section i. Community -> Servers -> Hosting solutions sub-forum This sub-forum can be used by companies who sell MTA-related hosting services. This also includes web-hosting and virtual/dedicated server hosting, as long as they can be utilized by MTA servers or for hosting them. It can also be used by users to discuss their experiences with a certain host, or who are looking for a server host. We have additional rules in place for entities who would like to offer hosting services to our users. You can find them here. j. Other -> B.L.A.S.T. sub-forum This section is reserved for off-topic fun chat. Blind spamming, however, is not allowed. Posts made in this section do not count for post count or rank improvement. k. Other -> Multi Theft Auto 0.5r2 and Older MTA:VC/GTA3 versions sub-forums These sections are all about our older creations – MTA for GTA3 (also known as GTA3MTA) and for GTA: Vice City (MTA:VC). We no longer maintain these mods, so you may not receive support for them. These mods may also not work on newer PCs at all. You might notice some third party MTA derivatives that are listed in this section, which may or may not be supported by said third parties. While these attempt to recreate the experience of our older creations, they were not made by us so use them at your own risk. l. Other -> Third party GTA mods sub-forum Rules page H. Other Notes If you no longer intend to visit our forums, we can remove your forum account on request. You can ask any Lead Global Moderator for an account removal. See Appendix D for details on how this is done. We are constantly looking for new moderators, especially for the sub-forums in the Other Languages section which do not have any moderators yet. Remember though, you have to be an active forum member with a significant amount of contributions to the forum to even consider applying for the position. What we consider as contributions to the forum: posting useful or original content, providing help to other forum members, reporting troublesome posts and topics and helping us with organizing the forums. What we do not consider as a contribution: having a huge post count gained by posting (at best) normal content or by posting in (at best) regular discussions. Not to even mention gaining it by spammy ways. To apply, please contact a Forum Staff member via a forum PM or ask us on our Discord. However, please keep in mind that by sending your application you agree that it will be shared with other Forum Staff members. This is to ensure that your application is evaluated and handled properly. If you fail to comply with these rules, your post or topic may be immediately deleted from this board without a warning and/or you may face additional consequences depending on the severity of your actions. Thank you for your understanding. -- MTA Team Appendix A – Glossary ¹ Bumping a topic happens when a user posts in a topic solely with an intention of putting it at the top of the list of topics in a sub-forum. ² Backseat moderation is an occurrence when a person who is not a moderator tries to act like one, eg. by posting messages such as 'This topic is dumb and should be locked' or 'This user should be banned' and so on. It is a generally unwelcome behavior on Internet forums. Appendix B – List of possible moderation actions for rule violations A Private Message with a complaint from the Forum Staff member (usually this is the only thing that happens, providing that user is co-operative with us) Forum Warning (expires over time, can be seen in a user's forum profile; having 3 or more warnings at the same time disables user's ability to post) Posting Restrictions (any new posts or topics made by a user may require an approval by a forum moderator) Temporary Forum Ban (user can not access the forums during a specified period; each further ban has a longer duration) Permanent Forum Ban (same as above, except that it does not expire over time; has to be appealed in order to be removed) Global Ban on all of our services (given to extreme cases of rule abusing, using exploits, hack or cheat tools, or posting potentially dangerous resources; generally disallows user from accessing any MTA-related service, including playing the mod itself) Abuse Letter to user's ISP abuse department (last resort if user is still causing us problems) Appendix C – Moderator Decision Appeal process Forum Staff member made a decision which you did not like or think that it might have been biased. You contact this Forum Staff member about it, stating why do you think this decision is wrong and what should be done instead. Forum Staff member adjusts their decision and now both of you are happy about it and no further action is needed. ✓ Alternatively, they sustain or adjust their decision, but you are still not satisfied with it. X You contact a second Forum Staff member with a higher rank than the one who made the initial decision. You explain the situation well and ask this Forum Staff member to review the situation again. Second Forum Staff member evaluates the situation from both yours and original Forum Staff member’s point of views. Once that is done, they give their decision (which is final) as well as an explanation to this decision which should hopefully satisfy all of the parties. Notes: If the original decision is going to be changed, a Lead Global Moderator should be notified about it by the second Forum Staff member before any changes are made. As mentioned above, the appeal should be made to a Forum Staff member with a higher rank than the original one (or another Lead Global Moderator if there are none available). It should not be made to the Forum Staff member with the same rank/level. Appendix D – Forum Account Removal process If you decide that you no longer need your forum account then we can remove it for you. Keep in mind though that we reserve the right to not remove your posts when your account is removed, as they might be still useful for other forum users. Whether your posts will remain or will be removed, will be announced to you by a Forum Staff member who will handle your case. This depends on the amount of the posts on your account and their actual content. If your posts will remain, you will have a choice of them being listed either under your nickname, or under a “Guest” nickname. To remove a forum account: Send a PM on Forums to a Lead Global Moderator (alternatively, you can send it to any Forum Staff member and they will forward it accordingly) asking for an account removal. A Forum Staff member will handle this request and will attempt to verify whether you are the rightful owner of the account. This might be done in various ways and not all of them will require any interaction from your side. Once verified, you will receive a response, giving you terms for removing your account. If you agree to these terms, you will be asked to confirm the removal by sending an e-mail message from the same e-mail address that is associated with the forum account to an address given by the Forum Staff member. Such an e-mail should at least contain the forum username and the account removal request. Once you have sent an e-mail message, you will receive an e-mail message stating that your account will be removed after 14 days, provided that you will no longer access the account during that time. Once you receive this message, you should log out from the account on Forums and no longer try to log in to this account again. Simply log out using the Forum Log Out feature and you are done. After 14 days have passed and the account was not accessed during that time, it will be removed by the Forum Staff member and you will receive an e-mail message, stating that forum account was removed. If the account is accessed any time during the removal period then the process is cancelled.
    1 point
  15. يب صح اصعب امتحانات في التاريخ مشفتش اصعب منها
    1 point
  16. como a velocidade do carro vem ja em number vou usar tostring() vou testa o resto
    1 point
  17. A quantidade de linha você pode pegar obtendo o comprimento da string (converta o valor pra string). Deve até ter funções de string melhores pra fazer isso, mas eu faria desta forma: local valor = "500" for i=1, #valor do print( valor:sub(i,i) ) end --[[ output: 5 0 0 ]]
    1 point
  18. Obrigado pela ajuda de todos, já resolvi!
    1 point
  19. isElementVisibleTo function finalizar (source) if veh[source] and isElement(veh[source]) then if isElementVisibleTo(entregarparte2,source) then setElementVisibleTo ( bliptparte2, source, false ) setElementVisibleTo ( entregarparte2, source, false ) givePlayerMoney (source, 10000) destroyElement (veh[source]) outputChatBox ('#C09F96[SERVER]: #ffffffTrabalho finalizado, você recebeu #7AB5DF$10.000 #ffffffpelo serviço.', source, 255, 255, 255, true) end end end addEventHandler( "onMarkerHit", entregarparte2, finalizar )
    1 point
  20. Só pra esclarecer sobre as markers, elas são criadas quando o resource é ligado, no comando é chamada a função setElementVisibleTo que vai deixar blip e marker visíveis (bliptrab2 e entregartrab2). Sobre o problema, tem duas soluções: Permitir que o jogador possa passar na marker só depois que ele pegar os passageiros, por meio de uma um setElementData ou uma variável na tabela Ou Criar a marker só depois que ele pegar os passageiros
    1 point
  21. Resumindo, o blip do local não mostra, é isso? A marker "entregartrab2" é a primeira rota e quando atingir ela será criada a segunda rota na marker "entregarparte2"? Sobre o seu código, em createBlipAttachedTo - linhas 10 e 13 no último argumento tem source, que não está definido, logo, retornará nil. Tem também esse monte de funções setElementVisibleTo que eu acho bom evitar em muitos casos, criando os elementos no lado cliente. Outra coisa, otimize o código definindo resourceRoot no fim das funções createMarker e createBlipAttachedTo, assim você também irá evitar essas linhas chatas no começo do código: setElementVisibleTo ( entregarparte2, root, false ) Corrigindo: entregartrab2 = createMarker ( 113.229, -1900.505, 0.162, "corona", 3, 255, 140, 0, 255, resourceRoot) --setElementVisibleTo ( entregartrab2, root, false ) irá dispensar o uso disso +: As variáveis em createPed não funcionarão com mais de 1 jogador, quando outra pessoa também digitar o comando irá reescrever a mesma variável do(s) jogador(es). Passe o jogador no setTimer dentro do evento "onMarkerHit" - linha 68, e use o jogador no parâmetro da função definindo na linha 60 em "function()".
    1 point
  22. 5+ ones claiming to be the real one, doesn't technically violate any rule but really, you guys are so desperate for players you've restarted this thing a million times.
    1 point
  23. جرب. BadBoy = getRootElement ( ) addEventHandler ( "onClientGUIChanged", BadBoy, function ( ) if source == edit_box then -- اسم الاديت if not tonumber(guiGetText(source)) then guiSetText (source, "") end end end )
    1 point
  24. لينا زيارة انشاء الله ( بعد الامتحانات الصعبه اوووي ( مشيها صعبة وخلاص ذذ
    1 point
  25. https://wiki.multitheftauto.com/wiki/AR/String
    1 point
  26. تم اضافة درسين هذا اخر درس موجود:
    1 point
  27. يا مرحبا , تشرفت بالإنضمام لمجتمع العرب و أتمنى أن أفيد و أستفيد معكم
    1 point
  28. No seu primeiro código o erro era a coluna que não foi criada pra segunda gridList (isso foi até dito pelo MaligNos). Pode ser que isso seja da própria gridlist que não suporta mais de uma lista ao mesmo tempo; Seria útil se você mostrasse qual é esse script de classes de DX. Obs: use resourceRoot em vez de root no evento "onClientResourceStart", da forma que está, vai ser criadas outras gridlists se outros script forem iniciados.
    1 point
  29. I'm working on the scrollbar but I'm having issues. As the player holds down their mouse, I'm trying to make the scrollbar follow the cursors Y coordinate. I use this to get the absolute position of the cursor's Y: local cX, cY, wX, wY, wZ = getCursorPosition() local w, h = guiGetScreenSize() local absoluteY = cX * h I then set the scrollbars Y to absoluteY but it bugs out, no errors or anything. It goes slightly below the dxWindow and remains there, even when I try to click/drag it. Fixed that ^, for future reference absoluteY was supposed to be cY * h not cX.
    1 point
  30. 0 points
×
×
  • Create New...