Leaderboard
Popular Content
Showing content with the highest reputation on 30/03/17 in all areas
-
"onPlayerLogin" getAccountData setAccountData getTeamFromName setPlayerTeam "onPlayerQuit" getPlayerAccount isGuestAccount getAccountData setAccountData هذا لو تبيها اذا سجل دخوله كأول مره واذا تبيها اول مره يدخل السيرفر فـ تحتاج للسكل2 points
-
2 points
-
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
-
2 points
-
[ عالسريع ] السلام عليكم ورحمة الله وبركاته بكل اختصار وبدون مقدمات ادري ان المود سهل بس طفشان بسويه مع فقرة [ عالسريع ] اي شي بسويه كدة وانا طفشان بسويه في [ عالسريع ] على العموم اكتب في اف 8 mine ورح ينضاف ماركر شفافيته 5 يعني شبه ظاهر اللي رح يلمس الماركر رح ينفجر لأنه لغم وش اقول يعني هههههه تقدر تسوي الماركر اذا معك الداتا "MineDataInTheAcc" كيف تعطي نفسك لغم من اللوحة ؟ ادخل تاب ريسورس واكتب في الادت حق كلينت وسيرفر هذا الكود setAccountData ( getPlayerAccount ( source ), "MineDataInTheAcc", number ) number : العدد اللي تبيه بعض الملاحظات تقدر تسوي اكثر من ماركر اذا اللاعب لمس اي ماركر من اللي انت مسويهم رح ينفجر سواء كان لاعب او سيارة مارح تفرق حتى اذا كنت انت الماركرات بالداتا لهذا مارح تنفجر غير اللي انضافو عن طريق F8 > mine التحميل ClickHere ماهو مشفر بسبب [ عالسريع ] ما فيه صور .. لأنو اكيد مارح اصور انفجار او الكلمة وانا بكتبها شكراً على المتابعة1 point
-
Server Discontinued. Sorry to see TrueLife go, but look forward to our new project! For more information into the closure of TrueLife, please PM me!1 point
-
This is a script that allows NPCs to find their own roads and paths without any predefined locations, all that is required is proper material mapped road Cols, and you're set. Currently, it's in really early stages, thus it's prone to wrecks, but even since this video I've vastly improved it. Video of it in action (Excuse the low quality, I have a crappy computer) By using multiple rays it's able to guide itself around tracks at a reasonable speed unlike previous attempts by other people this one is based off material type meaning as long as grass, rock, or something else other than a road surrounds the track it can find its way without walls. In the future, it could allow dynamic NPC races with little to no setup.1 point
-
السلام عليكم ورحمة الله تعالى وبركاته طبعا كلكم تعرفون السكربتات اللي تشتغل مع الإكسبورت أو النتبيهات مثل توب بار شات وجيو مسج الخ جايب مود يشبه واحد منشور تقريبا لكن مو ولا معدل عليه ماخذ الفكرة المهم بسم الله نبدأ كيف شكل السكربت الجملة التركيبية للسكربت Server : exports["dxmessages"]:outputDx(player,string text,string type) player : أرجمنت اللاعب سواءا كان معرفا أو سورس أو مدري ذذ text : "" الكلام اللي تريده أن يجي بالنتبيه ويكون بين type : نوع التنبيه سواءا كان خطأ او صحيح أو معلومة الخ النتبيهات : "success" "info" "error" "warning" Client : exports["dxmessages"]:outputClientDx(string text,string type) أرجمنت الاعب لا يوجد ومانحطه لأنه كلنت ويطلع للاعب الحالي اصلا أمثلة Server addCommandHandler("hi2", function (player) exports["dxmessages"]:outputDx(player,"Hi "..getPlayerName(player).."","success") end ) النتيجة : Client addCommandHandler("HI", function () exports["dxmessages"]:outputClientDx("Hi World","info") end ) النتيجة ------------------ لما يجي التنبيه يجي بتأثيرات يعين من اليسار الى اليمين واذا كان في ثاني يجي تحته وبعد مدة يختفي ... ماقدرت أصور فيديو لأن جهازي خردة ------------- يرجى عدم تغيير اسم المود أو الإكسبورت الا اذا كنت تعرف شنو بتسوي ذذ السكرتب غير مشفر , التحميل أستغفر الله أتمنى تكونو فهمتو المود وأن يعجبكم وأرجو اي حد يتجنب يقول المود زارفه أو معدل أو شي لأن قلت فوق أخذت فكرة من مود ثاني لأنه عجبني وحبيت اسويه على طريقتي واخر دعوانا هي الحمد لله رب العالمين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
-
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
-
Can you paste you server sided script too? (This is an event, and it's being called by the server sided script.)1 point
-
1 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
-
يب يا اخي وليه ما تجيبله شاهي وقهوه وشف بالله عشان يزبط الاداء عطه 2 سيجاره وراس شيشه وخليه يعيش يبوي توكل على الله الله يهديك استغفر الله حاول يبن الناس شوي ونقولك تعال خلنا نسوي مساج لاصابع يدك عشان سويت نسخ ولصق1 point
-
1 point
-
obrigado mais um conhecimento que vou usar pra diversas coisas. TÓPICO FECHADO!1 point
-
addEvent("playPickup",true) addEventHandler("playPickup",root, function() playSound("drops/pickuped.wav") end) function MarkerHit ( hitPlayer, matchingDimension ) if hitPlayer == localPlayer then playSound("drops/pickuphit.wav") end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )1 point
-
@Master_MTA افهم طلبه يبيه اول مره يسجل دخول وحتى لو بمود ثاني لان الحدث "onPlayerLogin" راح يتفعل عند استخدام الفنكشن logIn1 point
-
@Master_MTA اصلا الفكرة معتمدة ع الحفظ وانا معطيه الاكونت داتا ويقدر يستخدم السكل عشان يستخدمه عند دخول الاعب @Killer Project سواه كان بالمود التيم او لا راح في الحالتين صحيح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
-
والله كل شي مفتوح لكم لكني افكر في فكره حلوه وهي ان كل واحد على حسب الوقت الفاضي فيه يخش السيرفر ويبرمج بس بالنسبه للمود اللي برمجه يجي باول ملف السيرفر مثلا او الكلنت ايا كان ويكتب وظيفة المود ويكتب وش سوا واخر التحديثات بحيث لما يخش احد يعرف وين وصل تطوير المود ويكمل عليه وبكذا يكون ما ضيعنا وقت ولا وش رايك؟1 point
-
1 point
-
1 point
-
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
-
السلام عليكم ورحمة الله وبركاته وظيفة سارق البيوت , طبعا انا نشرتها من قبل لكن كان فيها بقات وتم تصليح ذي البقات, الوظيفة باختصار تروح للبيوت يلي عندهم علامة حمراء وتدخل البيت, بعدها تسرق تلفاز وتروح للماركر الاخضر وتبيع التلفاز, اذا كنت تبي تتخلص من التلفاز اكتب في , المود مو مشفر, الرابط DropTV اف 8 http://cut-urls.com/MMUSXFh1 point
-
1 point
-
try it shinshop = createMarker(-673, 916.4, 11,"cylinder",2.0,0,255,0,255) local Skins = { { "CJ", 0 }, { "Hippie", 1 }, { "Division Sheild", 17 }, { "Division fumigator", 18 }, { "Division incinerator", 19 }, { "Rich Woman", 55 }, { "Tall Balla", 104 }, } addEventHandler("onClientResourceStart", resourceRoot, function() local screenW, screenH = guiGetScreenSize() skinwindow = guiCreateWindow((screenW - 527) / 2, (screenH - 608) / 2, 527, 608, "Kewizzle's Skin Shop", false) guiWindowSetSizable(skinwindow, false) guiSetProperty(skinwindow, "CaptionColour", "FFDDEA14") guiSetVisible( skinwindow, not guiGetVisible( skinwindow ) ) skinselect = guiCreateGridList(99, 29, 324, 490, false, skinwindow) guiGridListAddColumn(skinselect, "Skin Name", 0.5) guiGridListAddColumn(skinselect, "Skin ID", 0.5) purchase = guiCreateButton(99, 529, 155, 61, "Buy Skin $500", false, skinwindow) guiSetFont(purchase, "default-bold-small") guiSetProperty(purchase, "NormalTextColour", "FF00F940") cancelbuy = guiCreateButton(269, 529, 154, 61, "Cancel", false, skinwindow) guiSetFont(cancelbuy, "default-bold-small") guiSetProperty(cancelbuy, "NormalTextColour", "FFF90000") addEventHandler("onClientGUIClick", cancelbuy, CloseWindow) addEventHandler("onClientGUIClick", purchase, function() local Select = tonumber( guiGridListGetItemData( skinselect, guiGridListGetSelectedItem( skinselect ), 1 ) ) if ( Select and Select ~= '' ) then triggerServerEvent( "setClientSkin", localPlayer, tonumber( guiGridListGetItemData( skinselect, guiGridListGetSelectedItem( skinselect ), 1 ) ) ) CloseWindow() end end) for _,v in ipairs( Skins ) do local Row = guiGridListAddRow( skinselect ) guiGridListSetItemText( skinselect, Row, 1, v[1], false, false ) guiGridListSetItemText( skinselect, Row, 2, v[2], false, false ) guiGridListSetItemData( skinselect, Row, 1, v[2] ) end end ) you must create 2 columns in grid list1 point
-
ما في شي اسمه رد سخيف في اللي قاله الاخ @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
-
تقدر تدخل لقاعدة البيانات من لوا بدون المشوره ذي فايدة php تستخدمها مع فنكشن callremote لو تبي تعرض اسماء اللاعبين الموجودين في السيرفر الان في الموقع وكذا او انك تتحكم بحساب اللاعب من الموقع اشياء زي كذا يعني1 point
-
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
-
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
-
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
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
1 point
-
I guess he is just looking for normal clan members cuz he wrote "mature and behaved race members".1 point
-
1 point
