Leaderboard
Popular Content
Showing content with the highest reputation on 30/03/17 in Posts
-
"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
-
السلام عليكم ورحمة الله تعالى وبركاته طبعا كلكم تعرفون السكربتات اللي تشتغل مع الإكسبورت أو النتبيهات مثل توب بار شات وجيو مسج الخ جايب مود يشبه واحد منشور تقريبا لكن مو ولا معدل عليه ماخذ الفكرة المهم بسم الله نبدأ كيف شكل السكربت الجملة التركيبية للسكربت 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
-
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
-
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
-
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
-
يب يا اخي وليه ما تجيبله شاهي وقهوه وشف بالله عشان يزبط الاداء عطه 2 سيجاره وراس شيشه وخليه يعيش يبوي توكل على الله الله يهديك استغفر الله حاول يبن الناس شوي ونقولك تعال خلنا نسوي مساج لاصابع يدك عشان سويت نسخ ولصق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
-
obrigado mais um conhecimento que vou usar pra diversas coisas. TÓPICO FECHADO!1 point
-
اخوي .. حاول تخلي هذا شيء في ببالك ( الاستسلام ليس بالسقوط اكثر من مره بالـ بعدم النهوض مره اخرى ) وانت استسلمت بسرعة .. لاتخاف تقدر ترجع .., حاول تتعلم اساسيات البرمجة مثل .. كيف تسوي ملفات برمجية وأين تحطها ^ ترانا كنا مثلك مستعجلين بس نبي المود جاهز بس الحين تتطورنا وتعلمنا حاول تتعلم اسرع مننا , قعدنا شهور وايام ندور عالطريقة ولقيناها بس أنت استسلمت بسرعة .. عشان مانخرج من سياق الموضوع شوف اساسيات البرمجة ثم تعلم وين تضع الملفات وكيف تنصنع وتعلم عالويكي .. بعد كذا بتلاقي انك اتجزت شيء سهل جداً ..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
-
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
-
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
-
ماينفع تستخدم setPlayerSkin Please use setElementModel This function changes the skin of a player. الكلام دا من الويكي لازم تستخدم setElementModel1 point
-
You can edit your post after it's read by one of us and fixed bud. Maybe think before commenting. @Tails1 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
-
حبيب قلبي اقدر تعبك لكن الحين ماحد يبي يشتري مود هيك مجوهرات لان النت مليان بيه شوف شي مو منشور وابتكر فكرة جديدة بالتوفيق ومو قصدي احطمك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
-
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
-
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
-
1 point
