Leaderboard
Popular Content
Showing content with the highest reputation on 30/03/17 in all areas
-
--(((استفسار)))--
AHMED MOSTAFA and one other reacted to Abdul KariM for a topic
"onPlayerLogin" getAccountData setAccountData getTeamFromName setPlayerTeam "onPlayerQuit" getPlayerAccount isGuestAccount getAccountData setAccountData هذا لو تبيها اذا سجل دخوله كأول مره واذا تبيها اول مره يدخل السيرفر فـ تحتاج للسكل2 points -
طيب وكيف نظامكم من ناحية التواصل ومن ناحية البرمجه؟ ومتى الوقت؟2 points
-
[ MineSystem ] [ عالسريع ] - مود اللغم
Master_MTA and one other reacted to Abu-Solo for a topic
أحسنت ي بطل [ عالسريع ]2 points -
executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aTable ( aSerial , aData )' ) addEventHandler( 'onPlayerQuit' , root , function ( ) local aData_ , aSerial_ = ( getElementData ( source , 'Launcher' ) or 0 ) , getPlayerSerial ( source ) local aSQL_ = executeSQLQuery( 'SELECT * FROM aTable WHERE aSerial = ?' , aSerial_ ) return ( ( ( #aSQL_ == 0 ) and executeSQLQuery( 'INSERT INTO aTable VALUES ( ? , ? )' , aSerial_ , aData_ ) ) or executeSQLQuery( 'UPDATE aTable SET Launcher = ? WHERE aSerial = ?' , aData_ , aSerial_ ) ) end ) addEventHandler( 'onPlayerLogin' , root , function ( ) local aSQL_ = executeSQLQuery( 'SELECT * FROM aTable WHERE aSerial = ? ' , getPlayerSerial ( source ) ) for Index in ipairs ( aSQL_ ) do setElementData ( source , 'Launcher' , aSQL_ [ Index ] [ 'aData' ] ) end end ) ماجربته لاني جوال شوف لو في خطء قلي2 points
-
شباب مساعده
LOAM and one other reacted to AHMED MOSTAFA for a topic
@#_iMr.[E]coo ما فهمت طلبه في البداية والاخ راسلني بالخاص وفهمت مشكلته وكملت معه2 points -
[ MineSystem ] [ عالسريع ] - مود اللغم
#Mr.Pop reacted to AHMED MOSTAFA for a topic
[ عالسريع ] السلام عليكم ورحمة الله وبركاته بكل اختصار وبدون مقدمات ادري ان المود سهل بس طفشان بسويه مع فقرة [ عالسريع ] اي شي بسويه كدة وانا طفشان بسويه في [ عالسريع ] على العموم اكتب في اف 8 mine ورح ينضاف ماركر شفافيته 5 يعني شبه ظاهر اللي رح يلمس الماركر رح ينفجر لأنه لغم وش اقول يعني هههههه تقدر تسوي الماركر اذا معك الداتا "MineDataInTheAcc" كيف تعطي نفسك لغم من اللوحة ؟ ادخل تاب ريسورس واكتب في الادت حق كلينت وسيرفر هذا الكود setAccountData ( getPlayerAccount ( source ), "MineDataInTheAcc", number ) number : العدد اللي تبيه بعض الملاحظات تقدر تسوي اكثر من ماركر اذا اللاعب لمس اي ماركر من اللي انت مسويهم رح ينفجر سواء كان لاعب او سيارة مارح تفرق حتى اذا كنت انت الماركرات بالداتا لهذا مارح تنفجر غير اللي انضافو عن طريق F8 > mine التحميل ClickHere ماهو مشفر بسبب [ عالسريع ] ما فيه صور .. لأنو اكيد مارح اصور انفجار او الكلمة وانا بكتبها شكراً على المتابعة1 point -
1 point
-
1 point
-
Server side addEventHandler("onPlayerJoin", getRootElement(), function() setElementData(source, "halhatatlan", true) end) addEventHandler("onResourceStart", getResourceRootElement(), function() for i, k in ipairs(getElementsByType("player")) do setElementData(k, "halhatatlan", true) end end) Client side function halhatatlansag() if getElementData(source, "halhatatlan") then cancelEvent() end end addEventHandler("onClientPlayerDamage", localPlayer, halhatatlansag) addCommandHandler("godmode", function() setElementData(localPlayer, "halhatatlan", not getElementData(localPlayer, "halhatatlan")) outputChatBox("#FF0000[INFO]#FFFFFF Halhatalanság " .. (getElementData(localPlayer, "halhatatlan") and "bekapcsolva" or "kikapcsolva") .. ".", 0, 0, 0, true) end) Works just totally fine for me.1 point
-
1 point
-
Buddy, you don't understand my post above at all. He thought he wrote if getElementData(...) == true then with if getElementData(..., ..., true) then So if he wanted to write if getElementData(...) == false then he would just write if getElementData(..., ..., false) then So before he thought that this is the way he would do it, I corrected his code, so he doesn't think that he is checking the elementdata with that true as the last argument.1 point
-
var getElementData ( element theElement, string key [, inherit = true] ) You probably want to do this: getElementData(someElement,someKey,false) since getElementData(someElement,someKey,true) === getElementData(someElement,someKey) hope i've been clear1 point
-
Changed "true" with the default (true)? mmm i would suggest posting the code where you set the data (on connect) Also, you may add an outputchatbox that tells you the data value when the player gets damaged Another advice, it could be better not binding the event to root but to localPlayer (so every player won't use it on other players, since they will have their own clientside script doing it)1 point
-
addEventHandler("onPickupUse",getRootElement(),function(thePlayer) triggerClientEvent(thePlayer, "playPickup", source, playPickup) destroyElement(source) end)1 point
-
Replace line nr 2. with if getElementData(source, "halhatatlan") then1 point
-
Can you paste you server sided script too? (This is an event, and it's being called by the server sided script.)1 point
-
you wanna hear allah bless1 point
-
Your problem in your code was a huge mistake. if jatekos and not indok and getElementData(admin, "gm", true) then local jatekos = getPlayerFromName(jatekos) kickPlayer (jatekos, admin, "Ismeretlen indok.") if indok and getElementData(admin, "gm", true) then kickPlayer (jatekos, admin, indok) end end First it checks, if you wrote anything in the "jatekos" arg. If yes, it goes by, and check if there is no "indok" set before, if there is nothing set to indok, it goes by. After it, checks for admin priviliges (I suppose), if you have, again, it goes by. After it's in the true part, it checks for the palyer by just name, and tries to kick him. (Which could lead to an error, if there is no one up on the server with that name. After the player got kicked, it checks for the "indok" arg, which CANNOT BE SET, because you checked at your first line if the "indok" arg doesn't exist. Which leads to that the if statements true part won't be triggered because it will be if false and true then -> if false then (false and true equals false, for the AND operator, you need two TRUE args to be passed to return TRUE.) And btw, if the script actually got somehow into that part (but it'll never), the player would be already kicked, and there is no way to kick a player who is not online.1 point
-
1 point
-
btw with this, you dont need to enter the player full name better to use this one for getting player name: In your script : local jatekos = getPlayerFromName(jatekos) with this you can use local jatekos = getPlayerFromPartialName(jatekos) function getPlayerFromPartialName(name) local name = name and name:gsub("#%x%x%x%x%x%x", ""):lower() or nil if name then for _, player in ipairs(getElementsByType("player")) do local name_ = getPlayerName(player):gsub("#%x%x%x%x%x%x", ""):lower() if name_:find(name, 1, true) then return player end end end end1 point
-
طلب مود مهم احتاجه
AHMED MOSTAFA reacted to iMr.WiFi..! for a topic
اخوي .. حاول تخلي هذا شيء في ببالك ( الاستسلام ليس بالسقوط اكثر من مره بالـ بعدم النهوض مره اخرى ) وانت استسلمت بسرعة .. لاتخاف تقدر ترجع .., حاول تتعلم اساسيات البرمجة مثل .. كيف تسوي ملفات برمجية وأين تحطها ^ ترانا كنا مثلك مستعجلين بس نبي المود جاهز بس الحين تتطورنا وتعلمنا حاول تتعلم اسرع مننا , قعدنا شهور وايام ندور عالطريقة ولقيناها بس أنت استسلمت بسرعة .. عشان مانخرج من سياق الموضوع شوف اساسيات البرمجة ثم تعلم وين تضع الملفات وكيف تنصنع وتعلم عالويكي .. بعد كذا بتلاقي انك اتجزت شيء سهل جداً ..1 point -
function kirugas(admin, parancs, jatekos, ...) local indok = table.concat({ ... }, " ") if not getElementData(admin, "gm", true) then outputChatBox ("#A1D490[King of the Kill]#FFFFFF Nincs jogod a parancs használatához.", admin, 255, 255, 255, true) end if not jatekos and getElementData(admin, "gm", true) then outputChatBox ("#A1D490[King of the Kill] #FFFFFFHibás szintaxis. Helyes: #A1D490/"..parancs.." #86B5DB[játékosnév] [opcionális indok]", admin, 255, 255, 255, true) end local jatekos = getPlayerFromName(jatekos) if jatekos and not indok and getElementData(admin, "gm", true) then kickPlayer (jatekos, admin, "Ismeretlen indok.") elseif indok and jatekos and getElementData(admin, "gm", true) then kickPlayer (jatekos, admin, indok) end end addCommandHandler ("kirugas", kirugas)1 point
-
Which line doesn't kick? Line nr. 10 or 12? Nvm, give me a minute, gonna fix it. function kirugas(admin, parancs, jatekos, indok) if not getElementData(admin, "gm", true) then outputChatBox ("#A1D490[King of the Kill]#FFFFFF Nincs jogod a parancs használatához.", admin, 255, 255, 255, true) end if not jatekos and getElementData(admin, "gm", true) then outputChatBox ("#A1D490[King of the Kill] #FFFFFFHibás szintaxis. Helyes: #A1D490/"..parancs.." #86B5DB[játékosnév] [opcionális indok]", admin, 255, 255, 255, true) end local jatekos = getPlayerFromName(jatekos) if jatekos and not indok and getElementData(admin, "gm", true) then kickPlayer (jatekos, admin, "Ismeretlen indok.") elseif indok and jatekos and getElementData(admin, "gm", true) then kickPlayer (jatekos, admin, indok) end end addCommandHandler ("kirugas", kirugas) This one should work.1 point
-
Serverside: local aw1 = {} local aw2 = {} local aw3 = {} local aw4 = {} function createAllWater() --x, y, z theWater = createWater(609, 151, -100, 609, -606, -100, 1527, 129, 4, 1527, -533, 4) setWaterLevel(1, theWater) if theWater then print("Water is work") print(theWater) end end addEventHandler( "onResourceStart", getRootElement(), createAllWater ) function helpwater() outputChatBox( "aw1 = bottom left" ) outputChatBox( "aw2 = bottom right" ) outputChatBox( "aw3 = top right" ) outputChatBox( "aw4 = top left" ) end addCommandHandler("helpmew", helpwater) function addwater1(player, cmd) local x, y, z = getElementPosition( player ) table.insert(aw1, x) table.insert(aw1, y) table.insert(aw1, z) print(x) print(y) print(z) outputChatBox( "Position 1 set" ) end addCommandHandler( "aw1", addwater1) function addwater2(player, cmd) if aw1[1] == nil then outputChatBox( "Use in order please. /aw1 /aw2 /aw3 [/aw4] optional." ) else local x, y, z = getElementPosition( player ) table.insert(aw2, x) table.insert(aw2, y) table.insert(aw2, z) print(x) print(y) print(z) outputChatBox( "Position 2 set" ) end end addCommandHandler( "aw2", addwater2) function addwater3(player, cmd) if aw2[1] == nil then print("/aw1 /aw2 /aw3 /aw4") else local x, y, z = getElementPosition( player ) table.insert(aw3, x) table.insert(aw3, y) table.insert(aw3, z) print(x) print(y) print(z) outputChatBox( "Position 3 set" ) end end addCommandHandler( "aw3", addwater3) function addwater4(player, cmd) local x, y, z = getElementPosition( player ) table.insert(aw4, x) table.insert(aw4, y) table.insert(aw4, z) print(x) print(y) print(z) outputChatBox( "Position 4 set" ) end addCommandHandler( "aw4", addwater4) function completeWater(player, cmd) if aw1[1] == nil then outputChatBox("Need to do first 3. /aw1 /aw2 /aw3 ") aw1 = {} aw2 = {} aw3 = {} aw4 = {} elseif aw4[1] == nil then outputChatBox("Triangle Maded.") local thisWater = createWater( aw1[1], aw1[2], aw1[3], aw2[1], aw2[2], aw2[3], aw3[1], aw3[2], aw3[3]) triggerClientEvent ( getRootElement(), "setWater", getRootElement(), thisWater ) aw1 = {} aw2 = {} aw3 = {} aw4 = {} else local thisWater = createWater( aw1[1], aw1[2], aw1[3], aw2[1], aw2[2], aw2[3], aw3[1], aw3[2], aw3[3], aw4[1], aw4[2], aw4[3]) triggerClientEvent ( getRootElement(), "setWater", getRootElement(), thisWater ) outputChatBox("Square Maded.") aw1 = {} aw2 = {} aw3 = {} aw4 = {} end end addCommandHandler("awc", completeWater) Clientside: function setWaterHeight(water) setWaterLevel(water, 20) end addEvent("setWater", true) addEventHandler("setWater", getRootElement(), setWaterHeight) Only works for the triangle water though. Square isn't working. I'll update if I find out why. Change '20' on the clientside script for the height you want.1 point
-
تخطيط لسيرفر بجيم مود جديد
AchrefF reacted to Master_MTA for a topic
والله كل شي مفتوح لكم لكني افكر في فكره حلوه وهي ان كل واحد على حسب الوقت الفاضي فيه يخش السيرفر ويبرمج بس بالنسبه للمود اللي برمجه يجي باول ملف السيرفر مثلا او الكلنت ايا كان ويكتب وظيفة المود ويكتب وش سوا واخر التحديثات بحيث لما يخش احد يعرف وين وصل تطوير المود ويكمل عليه وبكذا يكون ما ضيعنا وقت ولا وش رايك؟1 point -
How to add skin ids to the grid list?
Master_MTA reacted to kewizzle for a topic
thanks for that lovely info1 point -
How to add skin ids to the grid list?
kewizzle reacted to Master_MTA for a topic
no you mean guiGridListSetItemText if you wanna use guiGridListSetItemData you should know something about guiGridListGetItemData the function guiGridListSetItemData used for set data on the item wich you just created it with guiGridListAddRow in the loop so the difference between guiGridListSetItemData and guiGridListSetItemText is the visible the function guiGridListSetItemText is visible you can see it but the function guiGridListSetItemData is invisible it's look like setElementData i hope u understood me +_+1 point -
How to add skin ids to the grid list?
Master_MTA reacted to kewizzle for a topic
i see what you did guiGridListSetItemData( skinselect, Row, 1, v[2] ) would mean to get the Item data in the table skins and place it in the second column in each row according to the skin in the table.1 point -
Robber job
AHMED MOSTAFA reacted to Mhmd.z for a topic
السلام عليكم ورحمة الله وبركاته وظيفة سارق البيوت , طبعا انا نشرتها من قبل لكن كان فيها بقات وتم تصليح ذي البقات, الوظيفة باختصار تروح للبيوت يلي عندهم علامة حمراء وتدخل البيت, بعدها تسرق تلفاز وتروح للماركر الاخضر وتبيع التلفاز, اذا كنت تبي تتخلص من التلفاز اكتب في , المود مو مشفر, الرابط DropTV اف 8 http://cut-urls.com/MMUSXFh1 point -
طلب مود مهم احتاجه
AHMED MOSTAFA reacted to #Soking for a topic
ماينفع تستخدم setPlayerSkin Please use setElementModel This function changes the skin of a player. الكلام دا من الويكي لازم تستخدم setElementModel1 point -
Complie
Master_MTA reacted to Tails for a topic
He's trying to compile his code... not share it with the world.1 point -
لديك خبرة في انوع سيرفر ! ادخل سـاعـدنـي
Abu-Solo reacted to AHMED MOSTAFA for a topic
ما في شي اسمه رد سخيف في اللي قاله الاخ @Abu-Solo مافي احد رح يقدر يشرح لك الفرق الكامل بين الثلاث انواع لأنو فيه ناس تحب الهجولة و ناس تحب الحرب إلخ ... لكن انت تقدر تدخل كل السيرفرات وتتعمق فيها اكثر وتعرف وش الفرق بينهم وما فيه فرق بين سيرفر عربي وسيرفر اجنبي ترا ما رح يطردوك اذا دخلت سيرفر اجنبي1 point -
1 point
-
1 point
-
function getPlayerByIP ( aIP ) if ( type ( aIP ) == 'string' ) then for _ , aPlayers in ipairs ( getElementsByType ( 'player' ) ) do if ( getPlayerIP ( aPlayers ) == aIP ) then return aPlayers end end end return false end مادري اذا مفيد ولا لا هو وظيفته يجيب الاعب من الاي بي حقه1 point
-
حبيب قلبي اقدر تعبك لكن الحين ماحد يبي يشتري مود هيك مجوهرات لان النت مليان بيه شوف شي مو منشور وابتكر فكرة جديدة بالتوفيق ومو قصدي احطمك1 point
-
ابي افهم PHP
Abu-Solo reacted to Master_MTA for a topic
تقدر تدخل لقاعدة البيانات من لوا بدون المشوره ذي فايدة php تستخدمها مع فنكشن callremote لو تبي تعرض اسماء اللاعبين الموجودين في السيرفر الان في الموقع وكذا او انك تتحكم بحساب اللاعب من الموقع اشياء زي كذا يعني1 point -
Random crashes
OTBD|Crovic reacted to Dutchman101 for a question
I see. If the problem returns, you can also try the other solutions listed here: https://forum.multitheftauto.com/topic/78081-32-bit-windows-crashing/ ontop of just the 3GB switch.1 point -
Do you mean you want that the text shows the ID too?1 point
-
[WIP / Roleplay / HardCore] TrueLife Roleplay! [Unique]
Smeevil reacted to Cynergetic for a topic
I don't believe you connected to the correct server, as ours is offline currently as our login-panel, account and other resources are being edited. You would've also been given a ALPHA Lockout message when you registered your account. However, I do encourage you to keep up to date with the project and updates as they are released. We are currently in the process of deciding how our Government will truly be laid out, and with what powers are granted to whom. Hope to see you on our forums! (Once I fix them...)1 point -
[Show]J Bot Path Finder
K1parik reacted to Captain Cody for a topic
It's funny to see how multiple bots turned out.1 point -
El agua no se genera si las coordenadas no se ponen en el orden correcto. Es decir: bottom left (south-west) bottom right (south-east) top left (north-west) top right (north-east)1 point
-
طلب مود مهم احتاجه
Master_MTA reacted to #BrosS for a topic
addEventHandler("onPlayerSpawn",root function () setElementModel(source,0) end)1 point -
>>>>> الموضوع العام <<<<<
Master_MTA reacted to Abu-Solo for a topic
عواااااااااااااااء إوااااااااااااااء1 point -
Variable 'vehicle' will be assigned a boolean value if the client is not in a vehicle.1 point
-
1 point
-
Well it would be well the union seeing it from that point I join the opinion1 point
-
I guess he is just looking for normal clan members cuz he wrote "mature and behaved race members".1 point
-
Please be more specific about the staff you're looking for, is it managing, scripting, modeling, etc, as the pinned topic in this section states.1 point
