Jump to content

The Killer

Members
  • Posts

    1,336
  • Joined

  • Last visited

Everything posted by The Killer

  1. https://wiki.multitheftauto.com/wiki/Element_tree
  2. root = جميع الازرار او اللوحات وغيره بجميع السيرفر resourceRoot = يتحقق فقط من الازرار الي داخل المود وهو الافضل دام الاستعمال داخل المود
  3. ماقلت ما يظبط انا قلت الافضل تحط resourceRoot دام انه في نفس المود الازرار او غيره انت حاط مسافات بين الكتابات ورنا مكان الكتابات الي حاطها انت بالقائمه وكيف حاطها
  4. اول شي حدث 'onResourceStart' source = المود الي اشتغل ماهو تعريف اللاعب ثاني شي طريقتك غلط وما لها اي فايده نهائياً تقولي ليش ؟ انت جالس تجيب جميع اللاعبين اول ما يشتغل المود وتبني عليها متغير واحد يتغير كل مره على سريال لاعب من اللوب وراح ينتهي المتغير بتعريف سريال اخر شخص دخل السيرفر يعني ماراح يسجل لك جميع السريالات على متغير واحد فبذلك طريقتك غلط, نجي للطريقه الصحيحه وهي انك تتحقق من السريال بنفسك بحيث يكون زي كذا local serial = "Serial" addEventHandler ("onResourceStart", resourceRoot, function () for _,v in ipairs (getElementsByType ("player")) do if getPlayerSerial (v) == serial then -- end end end )
  5. هذا لأنك مو معرف وش العنصر المختار وفوق ذا مكرر حدثين ماهم معرفين العناصر فيهم انت حاط بالحدث root بذلك راح يتنفذ ذا اشي على اي لوحه تسوي لها دبل كلك او ازرار .. الخ يفضل دام ان الحدث متعلق بالمود نفسه تستعمل resourceRoot يعني راح يكون كودك بذا الشكل addEventHandler ("onClientGUIDoubleClick", resourceRoot, function () if (source == GUIEditor.gridlist[1]) then local pl = guiGridListGetItemText (GUIEditor.gridlist[1], guiGridListGetSelectedItem (GUIEditor.gridlist[1]), 1) if pl == "الأماكن الرئيسية - 1 " then guiSetVisible (GUIEditor.gridlist[1], false) guiSetVisible (Places, true) end end if (source == Places) then local pl = guiGridListGetItemText (Places, guiGridListGetSelectedItem (Places), 1) if pl == " ... " then guiSetVisible (GUIEditor.gridlist[1], true) guiSetVisible (Places, false) end end end )
  6. لا ماتعرفني ولا اعرفك # اقولك رح جرب ولا تتفلسف # زي ماقلت لك فوق روح جربه بنفسك وخل عنك الكلام الزايد ... #
  7. #BrosS الويكي معرف على انه سيرفر سايد اونلي لأخطاء موجوده فيه لاكن يشتغل كلاينت وسيرفر .. وبالكلاينت سايد مافيه ارقمنت اللاعب فقط يعرف ك getPlayerSerial () لو على كذا اجل مودات كثيره خربانه :] وثاني مره انصحك بالتجربه قبل التسرع بالكلام #
  8. function dxDrawImageOnElement(TheElement,Image,distance,height,width,R,G,B,alpha) local x, y, z = getElementPosition(TheElement) local x2, y2, z2 = getElementPosition(localPlayer) local distance = distance or 20 local height = height or 1 local width = width or 1 local checkBuildings = checkBuildings or true local checkVehicles = checkVehicles or false local checkPeds = checkPeds or false local checkObjects = checkObjects or true local checkDummies = checkDummies or true local seeThroughStuff = seeThroughStuff or false local ignoreSomeObjectsForCamera = ignoreSomeObjectsForCamera or false local ignoredElement = ignoredElement or nil if (isLineOfSightClear(x, y, z, x2, y2, z2, checkBuildings, checkVehicles, checkPeds , checkObjects,checkDummies,seeThroughStuff,ignoreSomeObjectsForCamera,ignoredElement)) then local sx, sy = getScreenFromWorldPosition(x, y, z+height) if(sx) and (sy) then local distanceBetweenPoints = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distanceBetweenPoints < distance) then dxDrawMaterialLine3D(x, y, z+1+height-(distanceBetweenPoints/distance), x, y, z+height, Image, width-(distanceBetweenPoints/distance), tocolor(R or 255, G or 255, B or 255, alpha or 255)) end end end end local aSerials = { ["Serial"] = true, } local tag = dxCreateTexture ("crown.png") addEventHandler ("onClientRender", root, function () if aSerials [getPlayerSerial ()] then dxDrawImageOnElement (localPlayer, tag) end end )
  9. local Marker = { } local Player = { } addEventHandler ("onPlayerDamage", root, function () local hp = getElementHealth (source) if (hp >= 5 and hp <= 10) then setElementFrozen (source, true) setPedAnimation (source, "CRACK", "crckidle1", _, false, _, _, true) local x, y, z = getElementPosition (source) if isElement (Marker [source]) then destroyElement (Marker [source]) Player [Marker [source]] = nil Marker [source] = nil end Marker [source] = createMarker (x, y + 3, z - 1, "cylinder", 2, 255, 255, 255) Player [Marker [source]] = source else if isElement (Marker [source]) then destroyElement (Marker [source]) Player [Marker [source]] = nil Marker [source] = nil end end end ) addEventHandler ("onMarkerHit", resourceRoot, function (hit) if getElementType (hit) == "player" then if not isPedInVehicle (hit) then if Player [source] then local plr = Player [source] if getPlayerMoney (hit) >= 2500 then setPedAnimation (plr, false) setElementFrozen (plr, false) setElementHealth (plr, 100) takePlayerMoney (hit, 2500) destroyElement (Marker [plr]) Marker [plr] = nil Player [source] = nil else outputChatBox ("Error - you don't have enough money.", hit, 255, 0, 0) end end end end end ) function destroyMarker () if isElement (Marker [source]) then destroyElement (Marker [source]) Player [Marker [source]] = nil Marker [source] = nil end end addEventHandler ("onPlayerWasted", root, destroyMarker) addEventHandler ("onPlayerQuit", root, destroyMarker)
  10. الله المستعان # ^,^
  11. تطقطق علينا انت ؟ جربته بمود ثاني و مو ضابط !! اطقطق عليك ؟ خخ رح شف مودك الحين انت الي تطقطق علينا ما ظبط ما ظبط شنسويلك يعني ما ظبط لا بعد تنافخ حلوه ذي خخخ والله خسرت وقتي ع الفاضي شغال عندك انا ؟
  12. جرب سوه في مود لحاله وشف كيف اكيد المشكله من مودك ذا #
  13. وكيف ما ظبط ؟ انا مجربه وظبط معي !
  14. Models = { [10] = true, [11] = true, [12] = true, [13] = true, [14] = true, [15] = true, [16] = true, [17] = true, [18] = true, [19] = true, } addEventHandler("onElementModelChange", root, function( oldModel ) if ( getElementType(source) == "player" ) then if Models[getElementModel (source)] then setTimer ( setElementModel, 50, 1, source,oldModel ) end end end )
  15. تعريف الفنكشن ؟ خخخ هذي انت مستلمها بالسيرفر ساييد لاكن ما انرسلت بالكلاينت يعني حاطها اسم فقط بدون ما ترسلها مع التريقر يععني ما لها تأثير وبيجيك خطأ بالديبوق انها مافيه شي منرسل كذا + تعريف الفنكشن حقك هو zom مب zombiespawn
  16. function # addCommandHandler getElementsByType -- جلب جميع اللاعبين banPlayer getBans removeBan setElementFrozen -- Client # guiSetVisible showCursor
  17. من وين جايب zombiespawn ? ------------- Client side # addEventHandler ("onClientGUIClick", resourceRoot, function () if (source == spawn) then triggerServerEvent ("ssp", localPlayer) end end ) Server side # addEvent ("ssp", true) addEventHandler ("ssp", root, function () spawnPlayer (source, 1561.66, 2733.4, 10.67, 70, getElementModel (source)) end )
  18. كيف يرسل من الاسم تطقطق انت ؟ خخ انا مجربه ويرسل على حسابي # امكن انت الي تبي ترسل له حسابه نفس اسمه وبس #
  19. addEventHandler ("onResourceStart", resourceRoot, function () for _, player in ipairs (getElementsByType ("player")) do setElementData (player, "moneycoins", 0) end end ) addEventHandler ("onPlayerJoin",root, function () if get ("EnableAdminCommands") == "true" then addCommandHandler ("givediamond", _givePlayerCoin) addCommandHandler ("takediamond", _takePlayerCoin) end setElementData (source, "moneycoins", 0) end ) function _takePlayerCoin (thePlayer, _, who, amount) local acc = getPlayerAccount (thePlayer) if not isGuestAccount (acc) then local accName = getAccountName (acc) if isObjectInACLGroup ("user." .. accName, aclGetGroup ("Console")) then if (who and amount) then if tonumber (amount) ~= nil then if getAccount (who) then for _,v in ipairs (getElementsByType ("player")) do local pacc = getPlayerAccount (v) if not isGuestAccount (pacc) then local paccName = getAccountName (pacc) if (paccName == who) then setElementData (v, "moneycoins", (getElementData (v, "moneycoins") or 0) - amount) exports.TopBarChat:sendClientMessage ("Admin has taked " .. amount .. " diamonds from you.", v, 100, 255, 100, true) exports.TopBarChat:sendClientMessage ("You have taked " .. amount .. " diamonds from him.", v, 100, 255, 100, true) break end end end else exports.TopBarChat:sendClientMessage ("Account not found.", thePlayer, 255, 100, 100, true) end else exports.TopBarChat:sendClientMessage ("Only numbers are allowed.", thePlayer, 255, 0, 0, true) end else exports.TopBarChat:sendClientMessage ("Syntax: < Account Name > < Amount >", thePlayer, 255, 100, 100) end end end end function _givePlayerCoin (thePlayer, _, who, amount) local acc = getPlayerAccount (thePlayer) if not isGuestAccount (acc) then local accName = getAccountName (acc) if isObjectInACLGroup ("user." .. accName, aclGetGroup ("Console")) then if (who and amount) then if tonumber (amount) ~= nil then if getAccount (who) then for _,v in ipairs (getElementsByType ("player")) do local pacc = getPlayerAccount (v) if not isGuestAccount (pacc) then local paccName = getAccountName (pacc) if (paccName == who) then setElementData (v, "moneycoins", (getElementData (v, "moneycoins") or 0) + amount) exports.TopBarChat:sendClientMessage ("Admin has gave you " .. amount .. " diamonds.", v, 100, 255, 100, true) exports.TopBarChat:sendClientMessage ("You have given him " .. amount .. " diamonds.", v, 100, 255, 100, true) break end end end else exports.TopBarChat:sendClientMessage ("Account not found.", thePlayer, 255, 100, 100, true) end else exports.TopBarChat:sendClientMessage ("Only numbers are allowed.", thePlayer, 255, 0, 0, true) end else exports.TopBarChat:sendClientMessage ("Syntax: < Account Name > < Amount >", thePlayer, 255, 100, 100) end end end end addCommandHandler ("givediamond", _givePlayerCoin) addCommandHandler ("takediamond", _takePlayerCoin)
  20. stolen: http://community.multitheftauto.com/ind ... s&id=12526 original: http://community.multitheftauto.com/ind ... ls&id=7787 DONE
  21. Client Side # addEventHandler ("onClientResourceStart", resourceRoot, function () triggerServerEvent ("MSG", localPlayer) Ar_Lan = guiCreateButton (0.67, 0.26, 0.07, 0.03, "", true) guiSetAlpha(Ar_Lan, 0.00) en_Lan = guiCreateButton (0.67, 0.31, 0.07, 0.03, "", true) guiSetAlpha (en_Lan, 0.00) Set_Tag = guiCreateButton (0.35, 0.51, 0.12, 0.04, "", true) guiSetAlpha (Set_Tag, 0.00) Remove_Tag = guiCreateButton (0.51, 0.51, 0.12, 0.04, "", true) guiSetAlpha (Remove_Tag, 0.00) Close_Wnd = guiCreateButton (0.62, 0.76, 0.12, 0.04, "", true) guiSetAlpha(Close_Wnd, 0.00) Tag_edit = guiCreateEdit (0.34, 0.31, 0.30, 0.03, "", true) guiSetProperty(Tag_edit, "NormalTextColour", "FF857874") Serial_edit = guiCreateEdit (0.34, 0.40, 0.30, 0.03, getPlayerSerial (), true) guiSetProperty (Serial_edit, "NormalTextColour", "FFFA0000") guiSetVisible (Ar_Lan, false) guiSetVisible (en_Lan, false) guiSetVisible (Set_Tag, false) guiSetVisible (Remove_Tag, false) guiSetVisible (Close_Wnd, false) guiSetVisible (Tag_edit, false) guiSetVisible (Serial_edit, false) end ) local screenW, screenH = guiGetScreenSize() function tags_window() dxDrawLine((screenW * 0.2540) - 1, (screenH * 0.1875) - 1, (screenW * 0.2540) - 1, screenH * 0.8125, tocolor(0, 253, 233, 254), 1, false) dxDrawLine(screenW * 0.7460, (screenH * 0.1875) - 1, (screenW * 0.2540) - 1, (screenH * 0.1875) - 1, tocolor(0, 253, 233, 254), 1, false) dxDrawLine((screenW * 0.2540) - 1, screenH * 0.8125, screenW * 0.7460, screenH * 0.8125, tocolor(0, 253, 233, 254), 1, false) dxDrawLine(screenW * 0.7460, screenH * 0.8125, screenW * 0.7460, (screenH * 0.1875) - 1, tocolor(0, 253, 233, 254), 1, false) dxDrawRectangle(screenW * 0.2540, screenH * 0.1875, screenW * 0.4919, screenH * 0.6250, tocolor(226, 26, 87, 199), false) dxDrawText("*[ Players #TAGS# Panel ]*", (screenW * 0.2540) + 1, (screenH * 0.1875) + 1, (screenW * 0.7460) + 1, (screenH * 0.2409) + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "bottom", false, false, false, false, false) dxDrawText("*[ Players #TAGS# Panel ]*", screenW * 0.2540, screenH * 0.1875, screenW * 0.7460, screenH * 0.2409, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "bottom", false, false, false, false, false) dxDrawLine(screenW * 0.2540, screenH * 0.2474, screenW * 0.7452, screenH * 0.2474, tocolor(0, 233, 224, 254), 2, false) dxDrawText("# Welcome to Tag Manager, Here you can make Tags for all Players #", (screenW * 0.2577) - 1, (screenH * 0.2539) - 1, (screenW * 0.5813) - 1, (screenH * 0.2878) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# Welcome to Tag Manager, Here you can make Tags for all Players #", (screenW * 0.2577) + 1, (screenH * 0.2539) - 1, (screenW * 0.5813) + 1, (screenH * 0.2878) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# Welcome to Tag Manager, Here you can make Tags for all Players #", (screenW * 0.2577) - 1, (screenH * 0.2539) + 1, (screenW * 0.5813) - 1, (screenH * 0.2878) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# Welcome to Tag Manager, Here you can make Tags for all Players #", (screenW * 0.2577) + 1, (screenH * 0.2539) + 1, (screenW * 0.5813) + 1, (screenH * 0.2878) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# Welcome to Tag Manager, Here you can make Tags for all Players #", screenW * 0.2577, screenH * 0.2539, screenW * 0.5813, screenH * 0.2878, tocolor(0, 103, 230, 254), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User - Tag :", (screenW * 0.2577) - 1, (screenH * 0.3086) - 1, (screenW * 0.3309) - 1, (screenH * 0.3424) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User - Tag :", (screenW * 0.2577) + 1, (screenH * 0.3086) - 1, (screenW * 0.3309) + 1, (screenH * 0.3424) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User - Tag :", (screenW * 0.2577) - 1, (screenH * 0.3086) + 1, (screenW * 0.3309) - 1, (screenH * 0.3424) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User - Tag :", (screenW * 0.2577) + 1, (screenH * 0.3086) + 1, (screenW * 0.3309) + 1, (screenH * 0.3424) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User - Tag :", screenW * 0.2577, screenH * 0.3086, screenW * 0.3309, screenH * 0.3424, tocolor(60, 231, 0, 254), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User Serial :", (screenW * 0.2577) - 1, (screenH * 0.4023) - 1, (screenW * 0.3309) - 1, (screenH * 0.4362) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User Serial :", (screenW * 0.2577) + 1, (screenH * 0.4023) - 1, (screenW * 0.3309) + 1, (screenH * 0.4362) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User Serial :", (screenW * 0.2577) - 1, (screenH * 0.4023) + 1, (screenW * 0.3309) - 1, (screenH * 0.4362) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User Serial :", (screenW * 0.2577) + 1, (screenH * 0.4023) + 1, (screenW * 0.3309) + 1, (screenH * 0.4362) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - User Serial :", screenW * 0.2577, screenH * 0.4023, screenW * 0.3309, screenH * 0.4362, tocolor(60, 231, 0, 254), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawLine((screenW * 0.3499) - 1, (screenH * 0.5078) - 1, (screenW * 0.3499) - 1, screenH * 0.5482, tocolor(0, 215, 223, 254), 1, false) dxDrawLine(screenW * 0.4693, (screenH * 0.5078) - 1, (screenW * 0.3499) - 1, (screenH * 0.5078) - 1, tocolor(0, 215, 223, 254), 1, false) dxDrawLine((screenW * 0.3499) - 1, screenH * 0.5482, screenW * 0.4693, screenH * 0.5482, tocolor(0, 215, 223, 254), 1, false) dxDrawLine(screenW * 0.4693, screenH * 0.5482, screenW * 0.4693, (screenH * 0.5078) - 1, tocolor(0, 215, 223, 254), 1, false) dxDrawRectangle(screenW * 0.3499, screenH * 0.5078, screenW * 0.1193, screenH * 0.0404, tocolor(10, 115, 212, 182), false) dxDrawLine((screenW * 0.5146) - 1, (screenH * 0.5078) - 1, (screenW * 0.5146) - 1, screenH * 0.5482, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.6340, (screenH * 0.5078) - 1, (screenW * 0.5146) - 1, (screenH * 0.5078) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawLine((screenW * 0.5146) - 1, screenH * 0.5482, screenW * 0.6340, screenH * 0.5482, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.6340, screenH * 0.5482, screenW * 0.6340, (screenH * 0.5078) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawRectangle(screenW * 0.5146, screenH * 0.5078, screenW * 0.1193, screenH * 0.0404, tocolor(10, 115, 212, 182), false) dxDrawLine((screenW * 0.6193) - 1, (screenH * 0.7591) - 1, (screenW * 0.6193) - 1, screenH * 0.7995, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.7387, (screenH * 0.7591) - 1, (screenW * 0.6193) - 1, (screenH * 0.7591) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawLine((screenW * 0.6193) - 1, screenH * 0.7995, screenW * 0.7387, screenH * 0.7995, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.7387, screenH * 0.7995, screenW * 0.7387, (screenH * 0.7591) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawRectangle(screenW * 0.6193, screenH * 0.7591, screenW * 0.1193, screenH * 0.0404, tocolor(218, 220, 0, 190), false) dxDrawText("# Set User Tag />", (screenW * 0.3499) - 1, (screenH * 0.5078) - 1, (screenW * 0.4693) - 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Set User Tag />", (screenW * 0.3499) + 1, (screenH * 0.5078) - 1, (screenW * 0.4693) + 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Set User Tag />", (screenW * 0.3499) - 1, (screenH * 0.5078) + 1, (screenW * 0.4693) - 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Set User Tag />", (screenW * 0.3499) + 1, (screenH * 0.5078) + 1, (screenW * 0.4693) + 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Set User Tag />", screenW * 0.3499, screenH * 0.5078, screenW * 0.4693, screenH * 0.5508, tocolor(218, 220, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Remove User Tag />", (screenW * 0.5146) - 1, (screenH * 0.5078) - 1, (screenW * 0.6340) - 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Remove User Tag />", (screenW * 0.5146) + 1, (screenH * 0.5078) - 1, (screenW * 0.6340) + 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Remove User Tag />", (screenW * 0.5146) - 1, (screenH * 0.5078) + 1, (screenW * 0.6340) - 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Remove User Tag />", (screenW * 0.5146) + 1, (screenH * 0.5078) + 1, (screenW * 0.6340) + 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Remove User Tag />", screenW * 0.5146, screenH * 0.5078, screenW * 0.6340, screenH * 0.5508, tocolor(250, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.6669) - 1, (screenH * 0.2604) - 1, (screenW * 0.6669) - 1, screenH * 0.2891, tocolor(84, 254, 61, 255), 1, false) dxDrawLine(screenW * 0.7387, (screenH * 0.2604) - 1, (screenW * 0.6669) - 1, (screenH * 0.2604) - 1, tocolor(84, 254, 61, 255), 1, false) dxDrawLine((screenW * 0.6669) - 1, screenH * 0.2891, screenW * 0.7387, screenH * 0.2891, tocolor(84, 254, 61, 255), 1, false) dxDrawLine(screenW * 0.7387, screenH * 0.2891, screenW * 0.7387, (screenH * 0.2604) - 1, tocolor(84, 254, 61, 255), 1, false) dxDrawRectangle(screenW * 0.6669, screenH * 0.2604, screenW * 0.0717, screenH * 0.0286, tocolor(0, 5, 125, 255), false) dxDrawLine((screenW * 0.6669) - 1, (screenH * 0.3099) - 1, (screenW * 0.6669) - 1, screenH * 0.3385, tocolor(25, 241, 254, 255), 1, false) dxDrawLine(screenW * 0.7387, (screenH * 0.3099) - 1, (screenW * 0.6669) - 1, (screenH * 0.3099) - 1, tocolor(25, 241, 254, 255), 1, false) dxDrawLine((screenW * 0.6669) - 1, screenH * 0.3385, screenW * 0.7387, screenH * 0.3385, tocolor(25, 241, 254, 255), 1, false) dxDrawLine(screenW * 0.7387, screenH * 0.3385, screenW * 0.7387, (screenH * 0.3099) - 1, tocolor(25, 241, 254, 255), 1, false) dxDrawRectangle(screenW * 0.6669, screenH * 0.3099, screenW * 0.0717, screenH * 0.0286, tocolor(6, 129, 0, 255), false) dxDrawText("# Close This Window />", (screenW * 0.6193) - 1, (screenH * 0.7565) - 1, (screenW * 0.7387) - 1, (screenH * 0.7995) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Close This Window />", (screenW * 0.6193) + 1, (screenH * 0.7565) - 1, (screenW * 0.7387) + 1, (screenH * 0.7995) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Close This Window />", (screenW * 0.6193) - 1, (screenH * 0.7565) + 1, (screenW * 0.7387) - 1, (screenH * 0.7995) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Close This Window />", (screenW * 0.6193) + 1, (screenH * 0.7565) + 1, (screenW * 0.7387) + 1, (screenH * 0.7995) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Close This Window />", screenW * 0.6193, screenH * 0.7565, screenW * 0.7387, screenH * 0.7995, tocolor(17, 0, 250, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Arabic", (screenW * 0.6669) - 1, (screenH * 0.2604) - 1, (screenW * 0.7379) - 1, (screenH * 0.2891) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Arabic", (screenW * 0.6669) + 1, (screenH * 0.2604) - 1, (screenW * 0.7379) + 1, (screenH * 0.2891) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Arabic", (screenW * 0.6669) - 1, (screenH * 0.2604) + 1, (screenW * 0.7379) - 1, (screenH * 0.2891) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Arabic", (screenW * 0.6669) + 1, (screenH * 0.2604) + 1, (screenW * 0.7379) + 1, (screenH * 0.2891) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# Arabic", screenW * 0.6669, screenH * 0.2604, screenW * 0.7379, screenH * 0.2891, tocolor(47, 251, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# English", (screenW * 0.6669) - 1, (screenH * 0.3112) - 1, (screenW * 0.7379) - 1, (screenH * 0.3398) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# English", (screenW * 0.6669) + 1, (screenH * 0.3112) - 1, (screenW * 0.7379) + 1, (screenH * 0.3398) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# English", (screenW * 0.6669) - 1, (screenH * 0.3112) + 1, (screenW * 0.7379) - 1, (screenH * 0.3398) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# English", (screenW * 0.6669) + 1, (screenH * 0.3112) + 1, (screenW * 0.7379) + 1, (screenH * 0.3398) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# English", screenW * 0.6669, screenH * 0.3112, screenW * 0.7379, screenH * 0.3398, tocolor(254, 24, 24, 255), 1.00, "sans", "center", "center", false, false, false, false, false) end function tags_window_AR() dxDrawLine((screenW * 0.2540) - 1, (screenH * 0.1875) - 1, (screenW * 0.2540) - 1, screenH * 0.8125, tocolor(0, 253, 233, 254), 1, false) dxDrawLine(screenW * 0.7460, (screenH * 0.1875) - 1, (screenW * 0.2540) - 1, (screenH * 0.1875) - 1, tocolor(0, 253, 233, 254), 1, false) dxDrawLine((screenW * 0.2540) - 1, screenH * 0.8125, screenW * 0.7460, screenH * 0.8125, tocolor(0, 253, 233, 254), 1, false) dxDrawLine(screenW * 0.7460, screenH * 0.8125, screenW * 0.7460, (screenH * 0.1875) - 1, tocolor(0, 253, 233, 254), 1, false) dxDrawRectangle(screenW * 0.2540, screenH * 0.1875, screenW * 0.4919, screenH * 0.6250, tocolor(226, 26, 87, 199), false) dxDrawText("*[ Players #TAGS# Panel ]*", (screenW * 0.2540) + 1, (screenH * 0.1875) + 1, (screenW * 0.7460) + 1, (screenH * 0.2409) + 1, tocolor(0, 0, 0, 255), 1.00, "bankgothic", "center", "bottom", false, false, false, false, false) dxDrawText("*[ Players #TAGS# Panel ]*", screenW * 0.2540, screenH * 0.1875, screenW * 0.7460, screenH * 0.2409, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "bottom", false, false, false, false, false) dxDrawLine(screenW * 0.2540, screenH * 0.2474, screenW * 0.7452, screenH * 0.2474, tocolor(0, 233, 224, 254), 2, false) dxDrawText("# أهلا وسهلا بك في لوحة الإدارة, يمكنك وضع تاجات للاعبين من هنا #", (screenW * 0.2577) - 1, (screenH * 0.2539) - 1, (screenW * 0.5813) - 1, (screenH * 0.2878) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# أهلا وسهلا بك في لوحة الإدارة, يمكنك وضع تاجات للاعبين من هنا #", (screenW * 0.2577) + 1, (screenH * 0.2539) - 1, (screenW * 0.5813) + 1, (screenH * 0.2878) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# أهلا وسهلا بك في لوحة الإدارة, يمكنك وضع تاجات للاعبين من هنا #", (screenW * 0.2577) - 1, (screenH * 0.2539) + 1, (screenW * 0.5813) - 1, (screenH * 0.2878) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# أهلا وسهلا بك في لوحة الإدارة, يمكنك وضع تاجات للاعبين من هنا #", (screenW * 0.2577) + 1, (screenH * 0.2539) + 1, (screenW * 0.5813) + 1, (screenH * 0.2878) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# أهلا وسهلا بك في لوحة الإدارة, يمكنك وضع تاجات للاعبين من هنا #", screenW * 0.2577, screenH * 0.2539, screenW * 0.5813, screenH * 0.2878, tocolor(0, 103, 230, 254), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - تاج الاعب : ", (screenW * 0.2577) - 1, (screenH * 0.3086) - 1, (screenW * 0.3309) - 1, (screenH * 0.3424) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - تاج الاعب : ", (screenW * 0.2577) + 1, (screenH * 0.3086) - 1, (screenW * 0.3309) + 1, (screenH * 0.3424) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - تاج الاعب : ", (screenW * 0.2577) - 1, (screenH * 0.3086) + 1, (screenW * 0.3309) - 1, (screenH * 0.3424) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - تاج الاعب : ", (screenW * 0.2577) + 1, (screenH * 0.3086) + 1, (screenW * 0.3309) + 1, (screenH * 0.3424) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - تاج الاعب : ", screenW * 0.2577, screenH * 0.3086, screenW * 0.3309, screenH * 0.3424, tocolor(60, 231, 0, 254), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - سيريال الاعب :", (screenW * 0.2577) - 1, (screenH * 0.4023) - 1, (screenW * 0.3309) - 1, (screenH * 0.4362) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - سيريال الاعب :", (screenW * 0.2577) + 1, (screenH * 0.4023) - 1, (screenW * 0.3309) + 1, (screenH * 0.4362) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - سيريال الاعب :", (screenW * 0.2577) - 1, (screenH * 0.4023) + 1, (screenW * 0.3309) - 1, (screenH * 0.4362) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - سيريال الاعب :", (screenW * 0.2577) + 1, (screenH * 0.4023) + 1, (screenW * 0.3309) + 1, (screenH * 0.4362) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawText("# - سيريال الاعب :", screenW * 0.2577, screenH * 0.4023, screenW * 0.3309, screenH * 0.4362, tocolor(60, 231, 0, 254), 1.00, "sans", "left", "center", false, false, false, false, false) dxDrawLine((screenW * 0.3499) - 1, (screenH * 0.5078) - 1, (screenW * 0.3499) - 1, screenH * 0.5482, tocolor(0, 215, 223, 254), 1, false) dxDrawLine(screenW * 0.4693, (screenH * 0.5078) - 1, (screenW * 0.3499) - 1, (screenH * 0.5078) - 1, tocolor(0, 215, 223, 254), 1, false) dxDrawLine((screenW * 0.3499) - 1, screenH * 0.5482, screenW * 0.4693, screenH * 0.5482, tocolor(0, 215, 223, 254), 1, false) dxDrawLine(screenW * 0.4693, screenH * 0.5482, screenW * 0.4693, (screenH * 0.5078) - 1, tocolor(0, 215, 223, 254), 1, false) dxDrawRectangle(screenW * 0.3499, screenH * 0.5078, screenW * 0.1193, screenH * 0.0404, tocolor(10, 115, 212, 182), false) dxDrawLine((screenW * 0.5146) - 1, (screenH * 0.5078) - 1, (screenW * 0.5146) - 1, screenH * 0.5482, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.6340, (screenH * 0.5078) - 1, (screenW * 0.5146) - 1, (screenH * 0.5078) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawLine((screenW * 0.5146) - 1, screenH * 0.5482, screenW * 0.6340, screenH * 0.5482, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.6340, screenH * 0.5482, screenW * 0.6340, (screenH * 0.5078) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawRectangle(screenW * 0.5146, screenH * 0.5078, screenW * 0.1193, screenH * 0.0404, tocolor(10, 115, 212, 182), false) dxDrawLine((screenW * 0.6193) - 1, (screenH * 0.7591) - 1, (screenW * 0.6193) - 1, screenH * 0.7995, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.7387, (screenH * 0.7591) - 1, (screenW * 0.6193) - 1, (screenH * 0.7591) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawLine((screenW * 0.6193) - 1, screenH * 0.7995, screenW * 0.7387, screenH * 0.7995, tocolor(0, 219, 221, 254), 1, false) dxDrawLine(screenW * 0.7387, screenH * 0.7995, screenW * 0.7387, (screenH * 0.7591) - 1, tocolor(0, 219, 221, 254), 1, false) dxDrawRectangle(screenW * 0.6193, screenH * 0.7591, screenW * 0.1193, screenH * 0.0404, tocolor(218, 220, 0, 190), false) dxDrawText("# تفعيل التاج />", (screenW * 0.3499) - 1, (screenH * 0.5078) - 1, (screenW * 0.4693) - 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# تفعيل التاج />", (screenW * 0.3499) + 1, (screenH * 0.5078) - 1, (screenW * 0.4693) + 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# تفعيل التاج />", (screenW * 0.3499) - 1, (screenH * 0.5078) + 1, (screenW * 0.4693) - 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# تفعيل التاج />", (screenW * 0.3499) + 1, (screenH * 0.5078) + 1, (screenW * 0.4693) + 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# تفعيل التاج />", screenW * 0.3499, screenH * 0.5078, screenW * 0.4693, screenH * 0.5508, tocolor(218, 220, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إزالة التاج />", (screenW * 0.5146) - 1, (screenH * 0.5078) - 1, (screenW * 0.6340) - 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إزالة التاج />", (screenW * 0.5146) + 1, (screenH * 0.5078) - 1, (screenW * 0.6340) + 1, (screenH * 0.5508) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إزالة التاج />", (screenW * 0.5146) - 1, (screenH * 0.5078) + 1, (screenW * 0.6340) - 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إزالة التاج />", (screenW * 0.5146) + 1, (screenH * 0.5078) + 1, (screenW * 0.6340) + 1, (screenH * 0.5508) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إزالة التاج />", screenW * 0.5146, screenH * 0.5078, screenW * 0.6340, screenH * 0.5508, tocolor(250, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawLine((screenW * 0.6669) - 1, (screenH * 0.2604) - 1, (screenW * 0.6669) - 1, screenH * 0.2891, tocolor(84, 254, 61, 255), 1, false) dxDrawLine(screenW * 0.7387, (screenH * 0.2604) - 1, (screenW * 0.6669) - 1, (screenH * 0.2604) - 1, tocolor(84, 254, 61, 255), 1, false) dxDrawLine((screenW * 0.6669) - 1, screenH * 0.2891, screenW * 0.7387, screenH * 0.2891, tocolor(84, 254, 61, 255), 1, false) dxDrawLine(screenW * 0.7387, screenH * 0.2891, screenW * 0.7387, (screenH * 0.2604) - 1, tocolor(84, 254, 61, 255), 1, false) dxDrawRectangle(screenW * 0.6669, screenH * 0.2604, screenW * 0.0717, screenH * 0.0286, tocolor(0, 5, 125, 255), false) dxDrawLine((screenW * 0.6669) - 1, (screenH * 0.3099) - 1, (screenW * 0.6669) - 1, screenH * 0.3385, tocolor(25, 241, 254, 255), 1, false) dxDrawLine(screenW * 0.7387, (screenH * 0.3099) - 1, (screenW * 0.6669) - 1, (screenH * 0.3099) - 1, tocolor(25, 241, 254, 255), 1, false) dxDrawLine((screenW * 0.6669) - 1, screenH * 0.3385, screenW * 0.7387, screenH * 0.3385, tocolor(25, 241, 254, 255), 1, false) dxDrawLine(screenW * 0.7387, screenH * 0.3385, screenW * 0.7387, (screenH * 0.3099) - 1, tocolor(25, 241, 254, 255), 1, false) dxDrawRectangle(screenW * 0.6669, screenH * 0.3099, screenW * 0.0717, screenH * 0.0286, tocolor(6, 129, 0, 255), false) dxDrawText("# إغلاق هذه النافذة />", (screenW * 0.6193) - 1, (screenH * 0.7565) - 1, (screenW * 0.7387) - 1, (screenH * 0.7995) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إغلاق هذه النافذة />", (screenW * 0.6193) + 1, (screenH * 0.7565) - 1, (screenW * 0.7387) + 1, (screenH * 0.7995) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إغلاق هذه النافذة />", (screenW * 0.6193) - 1, (screenH * 0.7565) + 1, (screenW * 0.7387) - 1, (screenH * 0.7995) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إغلاق هذه النافذة />", (screenW * 0.6193) + 1, (screenH * 0.7565) + 1, (screenW * 0.7387) + 1, (screenH * 0.7995) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# إغلاق هذه النافذة />", screenW * 0.6193, screenH * 0.7565, screenW * 0.7387, screenH * 0.7995, tocolor(17, 0, 250, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# العربية", (screenW * 0.6669) - 1, (screenH * 0.2604) - 1, (screenW * 0.7379) - 1, (screenH * 0.2891) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# العربية", (screenW * 0.6669) + 1, (screenH * 0.2604) - 1, (screenW * 0.7379) + 1, (screenH * 0.2891) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# العربية", (screenW * 0.6669) - 1, (screenH * 0.2604) + 1, (screenW * 0.7379) - 1, (screenH * 0.2891) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# العربية", (screenW * 0.6669) + 1, (screenH * 0.2604) + 1, (screenW * 0.7379) + 1, (screenH * 0.2891) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# العربية", screenW * 0.6669, screenH * 0.2604, screenW * 0.7379, screenH * 0.2891, tocolor(47, 251, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# الأنجليزية", (screenW * 0.6669) - 1, (screenH * 0.3112) - 1, (screenW * 0.7379) - 1, (screenH * 0.3398) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# الأنجليزية", (screenW * 0.6669) + 1, (screenH * 0.3112) - 1, (screenW * 0.7379) + 1, (screenH * 0.3398) - 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# الأنجليزية", (screenW * 0.6669) - 1, (screenH * 0.3112) + 1, (screenW * 0.7379) - 1, (screenH * 0.3398) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# الأنجليزية", (screenW * 0.6669) + 1, (screenH * 0.3112) + 1, (screenW * 0.7379) + 1, (screenH * 0.3398) + 1, tocolor(0, 0, 0, 255), 1.00, "sans", "center", "center", false, false, false, false, false) dxDrawText("# الأنجليزية", screenW * 0.6669, screenH * 0.3112, screenW * 0.7379, screenH * 0.3398, tocolor(254, 24, 24, 255), 1.00, "sans", "center", "center", false, false, false, false, false) end element = Ar_Lan setElementData (element, "En", "true") setElementData (element, "Ar", "false") removeEventHandler ("onClientRender", root, tags_window_AR) addEventHandler ("onClientGUIClick", resourceRoot, function () if source == Ar_Lan then addEventHandler ("onClientRender", root, tags_window_AR) removeEventHandler ("onClientRender", root, tags_window) setElementData (element, "Ar", "true") setElementData (element, "En", "false") triggerServerEvent ("NUM5", localPlayer) elseif source == en_Lan then addEventHandler ("onClientRender", root, tags_window) removeEventHandler ("onClientRender", root, tags_window_AR) setElementData (element, "En", "true") setElementData (element, "Ar", "false") triggerServerEvent("NUM6", localPlayer) elseif source == Close_Wnd then removeEventHandler ("onClientRender", root, tags_window) removeEventHandler ("onClientRender", root, tags_window_AR) guiSetVisible (Ar_Lan, false) guiSetVisible (en_Lan, false) guiSetVisible (Set_Tag, false) guiSetVisible (Remove_Tag, false) guiSetVisible (Close_Wnd, false) guiSetVisible (Tag_edit, false) guiSetVisible (Serial_edit, false) showCursor (false) triggerServerEvent ("NUM4",localPlayer) elseif source == Tag_edit then guiSetInputMode ("no_binds_when_editing") elseif source == Serial_edit then guiSetInputMode ("no_binds_when_editing") end end ) addEventHandler ("onClientGUIClick", resourceRoot, function () local Serial = guiGetText (Serial_edit) local Tag = guiGetText (Tag_edit) if (source == Set_Tag) then if (string.len (Serial) == 32) then setSerialData (Serial, "TagState", "Enable") setSerialData (Serial, "playerTag", Tag) triggerServerEvent ("NUM1", localPlayer) triggerServerEvent ("SQLiteSave", localPlayer, Serial, Tag, getSerialData (Serial, "TagState")) end else if (source == Remove_Tag) then setSerialData (Serial, "TagState", "Disable") triggerServerEvent ("NUM2", localPlayer, Serial) end end end ) function setSerialData (serial, key, value) if (value and type (serial) == "string") then setElementData (root, serial .. "&" .. key, value) end end function getSerialData (serial, key) if (key and type (serial) == "string") then value = getElementData (root, serial .. "&" .. key) end
  22. شف كود البدأ وحط الرساله فيه #
  23. اول شي انت جالس تتحقق في كود الشات اذا كان رقم الناتج يساوي "Disabled" وانت مسوي #result جالس تتحقق من قيمة رقم انها تساوي سترنق ولا لا كيف بتجي ذي ؟ غير الاخطاء الثانيه # ----- عموما جرب الكود ذا: addEventHandler ("onResourceStart", resourceRoot, function () executeSQLQuery ("CREATE TABLE IF NOT EXISTS Tags_Serials2 (Tag TEXT, TagState TEXT, serial TEXT)") end ) addEvent ("SQLiteSave", true) addEventHandler ("SQLiteSave", root, function (Serial) local tag = getSerialData (getPlayerSerial (source), "playerTag") local state = getSerialData (getPlayerSerial (source), "TagState") executeSQLQuery ("INSERT INTO Tags_Serials2 (Tag, TagState, serial) VALUES (?, ?, ?)", tostring (tag), tostring (state), tostring (Serial)) end ) function getData (serial) local data = executeSQLQuery ("SELECT * FROM `Tags_Serials2` WHERE `serial` = ?", tostring (serial)) if (type (data) == "table" and #data == 0) or not data then return { } else return data end end addEventHandler ("onPlayerChat", root, function (msg) local serial = getPlayerSerial (source) local data = getData (serial) local name = getPlayerName (source) cancelEvent () for _,v in ipairs (data) do if (serial == v.serial) then outputChatBox (v.Tag .. " #ffffff" .. msg, root, 255, 255, 255, true) break end end end ) addEvent ("MSG", true) addEventHandler ("MSG", root, function () OutPut ("# | Serial TAGS !", source, 255, 0, 255) end ) addEvent ("NUM1", true) addEventHandler ("NUM1", root, function () OutPut ("# Player tag Enabled seccessfully !", source, 0, 255, 0) end ) addEvent ("NUM2",true) addEventHandler ("NUM2", root, function () OutPut ("# Player tag Disabled seccessfully !", source, 0, 255, 0) end ) addEvent ("NUM3",true) addEventHandler ("NUM3", root, function () OutPut ("# Please Check - Tag, Serial Box !", source, 255, 0, 0) end ) addEvent ("NUM4",true) addEventHandler ("NUM4", root, function () OutPut ("# Closed Seccessfully !", source, 0, 255, 0) end ) addEvent ("NUM5",true) addEventHandler ("NUM5", root, function () OutPut ("# تم تغيير اللغة إلى العربية !", source, 0, 255, 0) end ) addEvent ("NUM6",true) addEventHandler ("NUM6", root, function () OutPut ("# The language changed to English !", source, 0, 255, 0) end ) function getSerialData (serial, key) if (key and type (serial) == "string") then value = getElementData (root, serial .. "&" .. key) end return value end
×
×
  • Create New...