Leaderboard
Popular Content
Showing content with the highest reputation on 11/05/17 in all areas
-
3 points
-
السلام عليكم ورحمة وبركاتةة اقدم لكم باك اب للي يبغى يسوي سيرفر ديزي لتحميل الباك اب اضغط هنا طريقه التثبيت ؟ كالتالي resources\[DayZ-MTA] اولا : روح للمسار التالي ثانيا : جميع الملفات اللي بهذا المسار تضاف الى قروب ادمن اضافتها شيء مهم !!! لاحد يقلي الباك اب من سيرفر فلان لانو انا سويته و حبيت انشره1 point
-
Why do you expect LUA to accept broken syntax? Of course it won't work, that is not the correct syntax.1 point
-
Hmm really strange haha. My bad, I really though you used it. (I never said you used the code, but the tutorial) I apologies for this misunderstanding It is sad to hear that your project ended up badly. Roleplay servers do indeed take a lot of time and it is hard to do it alone. Lol 'kutmode' sounds very Dutch haha, even though you are registered as the UK.1 point
-
Because it gets enabled again in the map start event. You can find that event and remove the code that enables it again, or have a timer that runs every 2<->5 seconds and disables it, first option is probably better.1 point
-
1 point
-
1 point
-
1 point
-
لقد فهمت ماذا تقصد انت تقصد لو كان لديك ثلاثة ملفات واثنان منهما معرفان بسيرفر وكلينت فكيف تعرف الثالث هذا الخيار يعود اليك <meta> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> <script src="اسم الملف.lua" type="نوع الملف كلنت او سيرفر"/> </meta>1 point
-
function getnames() local master={} local master2={} for k,v in ipairs(getElementsByType('player'))do local name=getPlayerName(v) if string.find(string.upper(tostring(name)),'P.P') then table.insert(master,v) else table.insert(master2,v) end end outputChatBox('*عدد اللاعبين الواضعين للشعار '..#master,root) outputChatBox('*عدد اللاعبين الغير واضعين الشعار'..#master2,root) end @#BrosS اريد اخذ حسنات فعلا بالتوفيق لصاحب الموضوع1 point
-
--------- local serials={'serial1','serial2','serial3'} addCommandHandler('opengui',function(plr) if plr then if serials[getPlayerSerial(plr)] then triggerClientEvent(plr,'evntname',plr) end end end) @Master_MTA1 point
-
The resource was coded from scratch, as it was a tool we used to compile all of our client-side (and I think server side files) for our old project GTA:Life. On top of that, the resource was made a month before actually being released onto the MTA community. The reason for releasing: We decided to not continue the project due to the complexity and time required to get a playable version of the game mode ready in order for release.1 point
-
Add an export clientside to call the server, and then trigger the event to the client to fix this. Delaying it can still be unpredictable due to the download rate of the client1 point
-
Dominar códigos como o postado neste tópico é um bom começo. Só nessas 9 linhas, você já vai ter uma noção do que é uma condição if ... then, saber usar outputChatBox, fazer códigos de comandos e restringir ações apenas admins. sabendo fazer o básico, o resto é você quem decide: aprender mais sobre tabelas, desenvolver usando GUIs ou DXs e olhar outros códigos pra ver como tudo é feito. Você pode sempre ter boa ajuda aqui no fórum quando tiver dificuldade ou alguma dúvida. É lógico que lendo tutoriais e ao mesmo tempo fazendo na prática - um complementa o outro. Com o tempo, você vai saber de cór boa parte das funções do MTA, é natural isso exigir tempo. Então te aconselho focar em outras coisas e não olhar função por função.1 point
-
1 point
-
Yes there's a solution for ''pub other servers'' you named (advertising servers) get it here: https://community.multitheftauto.com/index.php?p=resources&s=details&id=13376 It blocks advertisements, code; local BannedWords = {"22003", ":22", "22010", "22005", "tasa:"} addEventHandler("onPlayerChat",root, function(msg) function checkBannedWords(Message) for _, BannedWord in ipairs(BannedWords) do if (Message:lower()):find(BannedWord:lower()) then return 2 end end local Chunks = {(Message:gsub("%s+", "")):match("(%d+)%.(%d+)%.(%d+)%.(%d+)")} if (#Chunks == 4) then return 1 end return 0 end -- Definitions -- 1 = Might be an advert -- 2 = Confirmed advert local result = checkBannedWords(msg) if (result == 1) then cancelEvent() outputChatBox("Your Message was detected as potential server advert and you're in trouble now if true.", source, 255, 0, 0) outputServerLog("[SUSPECT-ADVERTISING] " .. getPlayerName(source) .. " (tried to) output '" .. msg .. "'") local _players = getElementsByType("player") for _, v in pairs(_players) do if (getPlayerAccount(v)) then if ((isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("Admin"))) or (isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)), aclGetGroup("Moderator")))) then outputChatBox("[SUSPECT-ADVERTISING] " .. getPlayerName(source) .. " (tried to) output '" .. msg .. "'", v) end end end elseif (result == 2) then cancelEvent() local g_Name = getPlayerName(source) local _r,_g,_b = getPlayerNametagColor(source) outputChatBox( g_Name .. ":server-advertiser " .. ' was detected and temporarily banned' , g_Root, _r, _g, _b, false) banPlayer ( source, false, false, true, nil, "Don't advertise other servers, you got an 1-day ban for it now.", 86400 ) end end ) when I thought of that, it didn't exist and I hadnt seen any anti-advert scripts at servers, while it's a growing and widespread problem. It blocks both by a filter list of words only used in server advertisements, but also logs/warns and prevent IP addresses in chat. But that's just 1 side of your problems. You can make the serverside script so heavily integrated with the client compiled ones, that making a stolen .luac usable takes far too much effort or becomes impossible. Also the no-cache option suggested before reduces it. However you can never stop others from cloning your scripts (written from scratch but looking and doing exactly the same as your scripts) however from that point it's not much related to your banlist.. it's just that you can never be assured. @TorNix~|nR1 point
-
use cache="false" in meta for each lua client file. https://wiki.multitheftauto.com/wiki/Meta.xml1 point
-
Only thing I understood is that people are stealing your clientside scripts, even when they are compiled. There is no big fix for that, but you could try to make it work only if the servername and some other things match with those ones specified in that script. Still, I am not sure if I understood your question as there wasn't a question.1 point
-
Надеюсь на помощь в предоставлении хоть какого-то материала. Из всех интересных проектов знаю только: SAS-Network, SAES-RPG, FFS.1 point
-
1 point
-
1 point
-
* Client Side : local screenW, screenH = guiGetScreenSize() addEventHandler("onClientRender",root,function ( ) if ( getElementHealth ( localPlayer ) <= 25 ) then dxDrawRectangle(0, 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawRectangle(screenW * 0.0000, screenH * 0.0065, screenW * 1.0000, screenH * 0.9870, tocolor(63, 0, 0, 159), false) dxDrawText("You Will Dead", screenW * 0.3469, screenH * 0.8815, screenW * 0.7680, screenH * 0.9206, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "left", "top", false, false, false, false, false) end end );1 point
-
Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you1 point
-
صراحة فكرة حلوه واتمنى لو يصلحون الاخطاء الي فيه ويكون شبيه للعبة 100 % 100 بيكون شي خرافي1 point
-
1 point
-
This community has grown quite a fanbase and eager players. The staffs here are certified decent and mature. This server was quite an experience for me, playing MTA for 6 years had me searching for unique and topnotch servers such as this, the idea, resources, maps and scripts here were flawlessly made, I'm gonna be honest, if this community grows more reputation and gets to be complex, it will probably sky rise amongst the big servers. Kudos, Martijn.1 point
-
يعطيك العافية , ولكن للاسف توجد الكثير من الاخطاء فيه مثل : لايمكنك تحديد قياس اللوحة وكما انه غيردقيق بما يكفي لايعمل مع متصفح فايرفوكس ( بالنسبة لي ) وبالتوفيق1 point
-
BOOL WINAPI DllMain ( HMODULE hModule, DWORD ul_reason_for_call, PVOID lpvReserved ) { switch ( ul_reason_for_call ) { case DLL_PROCESS_ATTACH: // DO STUFF HERE break; case DLL_THREAD_ATTACH: break; case DLL_THREAD_DETACH: break; case DLL_PROCESS_DETACH: break; } return TRUE; }1 point
