MR.GRAND Posted December 30, 2015 Share Posted December 30, 2015 سلآلآم شباب كيفكم .. حاولت أسوي سكربت التاجات الخاصة ع السيريال ينحفظ بــ قاعدة بيانات اس كيو لايت بس شكله ماضبط ابي افهم وين الخطأ بس ... سيرفر : addEventHandler( 'onResourceStart', getResourceRootElement(getThisResource()), function( ) executeSQLQuery( 'CREATE TABLE IF NOT EXISTS Tags_Serials2 (Tag, TagState, serial)' ) end ) addEvent("SQLiteSave",true) addEventHandler("SQLiteSave", root, function( Serial ) executeSQLQuery( 'INSERT INTO Tags_Serials2(Tag, TagState, serial) VALUES( ?, ?, ? )', getSerialData ( getPlayerSerial ( source ), "playerTag"), getSerialData ( getPlayerSerial ( source ), "TagState" ), tostring(Serial) ) end ) timer = {} addEventHandler ( "onPlayerChat", root, function ( msg ) result = executeSQLQuery("SELECT * FROM `Tags_Serials2` WHERE `TagState`=?", getSerialData ( getPlayerSerial ( source ), "TagState" )) if ( type ( result ) == "table" and #result == "Disable" ) or not result then local name = getPlayerName( source ) cancelEvent ( ) Tag = executeSQLQuery("SELECT * FROM `Tags_Serials2` WHERE `Tag`=?", getSerialData ( getPlayerSerial ( source ), "playerTag" )) outputChatBox (""..Tag.." #ffffff"..msg, root, 255, 255, 255, true ) 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 كلنت : addEventHandler("onClientResourceStart",resourceRoot, function() triggerServerEvent("MSG",localPlayer) end ) 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, "", 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 ) 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) end else if ( source == Remove_Tag ) then setSerialData ( Serial, "TagState", "Disable" ) triggerServerEvent("NUM2",localPlayer) 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 return value end Link to comment
EH10 Posted December 31, 2015 Share Posted December 31, 2015 # أتوقع أنه أنت , PeTer.NexT + MR.GRAND = Stude https://forum.multitheftauto.com/viewtopic.php?f=160&t=94645 , Link to comment
MR.GRAND Posted December 31, 2015 Author Share Posted December 31, 2015 # أتوقع أنه أنت , PeTer.NexT + MR.GRAND = Studehttps://forum.multitheftauto.com/viewtopic.php?f=160&t=94645 , شخص مختلف عن الأخر ... انا عندي طلب وهو عنده طلب ثاني ! ماله اي علاقة في طلبي ! Link to comment
shwaeki Posted December 31, 2015 Share Posted December 31, 2015 اخوي وين كود قتح الوحة عشين اجرب و اشوفف المشكلة + في ملف سيرفر هاد مو معرف OutPut Link to comment
Mr.Ronaldo Posted December 31, 2015 Share Posted December 31, 2015 OutPut( "# | Serial TAGS !",source,255,0,255) OutPut( "# Player tag Disabled seccessfully !",source,0,255,0) OutPut( "# Player tag Enabled seccessfully !",source,0,255,0) OutPut( "# Please Check - Tag, Serial Box !",source,255,0,0) OutPut( "# Closed Seccessfully !",source,0,255,0) OutPut( "# تم تغيير اللغة إلى العربية !",source,0,255,0) OutPut( "# The language changed to English !",source,0,255,0) وايش هالهبل مستر جراند ؟ وايش اخبارك مستر جراند ؟ Link to comment
MR.GRAND Posted December 31, 2015 Author Share Posted December 31, 2015 OutPut( "# | Serial TAGS !",source,255,0,255) OutPut( "# Player tag Disabled seccessfully !",source,0,255,0) OutPut( "# Player tag Enabled seccessfully !",source,0,255,0) OutPut( "# Please Check - Tag, Serial Box !",source,255,0,0) OutPut( "# Closed Seccessfully !",source,0,255,0) OutPut( "# تم تغيير اللغة إلى العربية !",source,0,255,0) OutPut( "# The language changed to English !",source,0,255,0) وايش هالهبل مستر جراند ؟ وايش اخبارك مستر جراند ؟ ي قلبي هذي مجرد رسائل الليبل اللي تجي من اليمين لليسار ! هذي مالك علاقة فيها الشيء اللي ابيك تسويه هو حل خطأ قاعدة البيانات فقط اتمنى تعرف تقرأ كلآمي لانه عربي Link to comment
Jupi Posted December 31, 2015 Share Posted December 31, 2015 OutPut( "# | Serial TAGS !",source,255,0,255) OutPut( "# Player tag Disabled seccessfully !",source,0,255,0) OutPut( "# Player tag Enabled seccessfully !",source,0,255,0) OutPut( "# Please Check - Tag, Serial Box !",source,255,0,0) OutPut( "# Closed Seccessfully !",source,0,255,0) OutPut( "# تم تغيير اللغة إلى العربية !",source,0,255,0) OutPut( "# The language changed to English !",source,0,255,0) وايش هالهبل مستر جراند ؟ وايش اخبارك مستر جراند ؟ ي قلبي هذي مجرد رسائل الليبل اللي تجي من اليمين لليسار ! هذي مالك علاقة فيها الشيء اللي ابيك تسويه هو حل خطأ قاعدة البيانات فقط اتمنى تعرف تقرأ كلآمي لانه عربي تستهبل انت؟ ايش مالها علاقة -,- ذا فنكشن مو معرف كيف تبيه يشتغل؟ Link to comment
MR.GRAND Posted December 31, 2015 Author Share Posted December 31, 2015 OutPut( "# | Serial TAGS !",source,255,0,255) OutPut( "# Player tag Disabled seccessfully !",source,0,255,0) OutPut( "# Player tag Enabled seccessfully !",source,0,255,0) OutPut( "# Please Check - Tag, Serial Box !",source,255,0,0) OutPut( "# Closed Seccessfully !",source,0,255,0) OutPut( "# تم تغيير اللغة إلى العربية !",source,0,255,0) OutPut( "# The language changed to English !",source,0,255,0) وايش هالهبل مستر جراند ؟ وايش اخبارك مستر جراند ؟ ي قلبي هذي مجرد رسائل الليبل اللي تجي من اليمين لليسار ! هذي مالك علاقة فيها الشيء اللي ابيك تسويه هو حل خطأ قاعدة البيانات فقط اتمنى تعرف تقرأ كلآمي لانه عربي تستهبل انت؟ ايش مالها علاقة -,- ذا فنكشن مو معرف كيف تبيه يشتغل؟ في ملفين حاطهم بالسكربت وظيفتهم تعريف الفنكشن لذلك مال علاقة فيه لان السكربت شغال 100% وانا اعرف وش مسوي ماني أهبل ! شفلي حل القاعدة والباقي انا اسويه ... Link to comment
MR.GRAND Posted December 31, 2015 Author Share Posted December 31, 2015 مافي احد يصحح الكود :\ Link to comment
The Killer Posted December 31, 2015 Share Posted December 31, 2015 اول شي انت جالس تتحقق في كود الشات اذا كان رقم الناتج يساوي "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 Link to comment
TAPL Posted January 1, 2016 Share Posted January 1, 2016 مع المنت اللاعب الي مسوي التريقر مع ان انت مرسل السيريال الي بالأيدت؟ getPlayerSerial حاط سيريال في الأيدت و مرسله بالتريقر للسيرفر ليه بالسيرفر تستخدم Link to comment
MR.GRAND Posted January 1, 2016 Author Share Posted January 1, 2016 اول شي انت جالس تتحقق في كود الشاتاذا كان رقم الناتج يساوي "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 لما أطبق كودك ... يصير الزر لما اضغط عليه حتى يسوي اوامر الحفظ + تفعيل السيريال مايظهر التاج حق الاعب اللي حطيته ... يعني التاج مايظهر لما اضغط الزر Link to comment
a7zan Posted January 1, 2016 Share Posted January 1, 2016 مع المنت اللاعب الي مسوي التريقر مع ان انت مرسل السيريال الي بالأيدت؟ getPlayerSerial حاط سيريال في الأيدت و مرسله بالتريقر للسيرفر ليه بالسيرفر تستخدم Link to comment
MR.GRAND Posted January 2, 2016 Author Share Posted January 2, 2016 اول شي انت جالس تتحقق في كود الشاتاذا كان رقم الناتج يساوي "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 فيي تغييرات ؟ حلول ؟ Link to comment
a7zan Posted January 2, 2016 Share Posted January 2, 2016 مع المنت اللاعب الي مسوي التريقر مع ان انت مرسل السيريال الي بالأيدت؟ getPlayerSerial حاط سيريال في الأيدت و مرسله بالتريقر للسيرفر ليه بالسيرفر تستخدم Link to comment
' A F . Posted January 2, 2016 Share Posted January 2, 2016 ليه ماتسهل على نفسك وتسويها بالاكاونت داتا ؟ Link to comment
MR.GRAND Posted January 2, 2016 Author Share Posted January 2, 2016 ليه ماتسهل على نفسك وتسويها بالاكاونت داتا ؟ لان ي قلبي من المتوقع دخول الاعب بــ حساب مختلف او يمكن يغير حسابه فــ ابيه قاعدة بيانات على سيرياله حتى لو تغير حسابه مايروح التاج Link to comment
' A F . Posted January 2, 2016 Share Posted January 2, 2016 اجل استخدم setSerialData + getSerialData ليه تسوي بال SQL وانت تبيها حفظ بالسيريال Link to comment
ALw7sH Posted January 2, 2016 Share Posted January 2, 2016 اجل استخدم setSerialData + getSerialData ليه تسوي بال SQL وانت تبيها حفظ بالسيريال هالفنكشنين موجودين في سكربت على ماعتقد وانت عطيته الفنكشنين بدون السكربت لول + السكربت الي تتكلم عنه يستخدم sql اكيد Link to comment
Jupi Posted January 2, 2016 Share Posted January 2, 2016 اجل استخدم setSerialData + getSerialData ليه تسوي بال SQL وانت تبيها حفظ بالسيريال هالفنكشنين موجودين في سكربت على ماعتقد وانت عطيته الفنكشنين بدون السكربت لول + السكربت الي تتكلم عنه يستخدم sql اكيد يستعمل اس كيو لايت بس يسهل الحكاية Link to comment
MR.GRAND Posted January 2, 2016 Author Share Posted January 2, 2016 اجل استخدم setSerialData + getSerialData ليه تسوي بال SQL وانت تبيها حفظ بالسيريال هالفنكشنين موجودين في سكربت على ماعتقد وانت عطيته الفنكشنين بدون السكربت لول + السكربت الي تتكلم عنه يستخدم sql اكيد يستعمل اس كيو لايت بس يسهل الحكاية سويت كذا وماضبط :\ addEvent("SetAccData",true) addEventHandler('SetAccData',root, function() executeSQLQuery("CREATE TABLE IF NOT EXISTS Tags_serials_ (State, Tag)") local State = getSerialData ( getPlayerSerial ( source ), "TagState" ) local Tag = getSerialData ( getPlayerSerial ( source ), "playerTag" ) executeSQLQuery("INSERT INTO Tags_serials_(State, Tag) VALUES(?,?)", State, Tag ) end ) timer = {} addEventHandler ( "onPlayerChat", root, function ( msg ) if ( executeSQLQuery ("SELECT * FROM `Tags_serials_` WHERE `State` = ?", State ) == "Enable" ) then local name = getPlayerName( source ) cancelEvent ( ) local Tag = executeSQLQuery ("SELECT * FROM `Tags_serials_` WHERE `Tag` = ?", Tag ) outputChatBox (""..Tag.." #ffffff"..msg, root, 255, 255, 255, true ) end end ) addEvent("MSG",true) addEventHandler("MSG", root, function() OutPut( "# Tag System created by MR.GRAND | 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 في خطأ ؟ Link to comment
ALw7sH Posted January 2, 2016 Share Posted January 2, 2016 https://community.multitheftauto.com/in ... ls&id=6313 ركب هذا السكربت وشغله الفنكشنات الي في السكربت bool setPlayerSerialData( player thePlayer, string key, value ) string getPlayerSerialData( player thePlayer, string key ) bool removePlayerSerialData( player thePlayer, string key ) table getAllPlayerSerialData( player thePlayer ) عشان تستخدم الفكشن لازم اكسبورت مثال exports.sqldata:setPlayerSerialData(...) Link to comment
MR.GRAND Posted January 2, 2016 Author Share Posted January 2, 2016 https://community.multitheftauto.com/index.php?p=resources&s=details&id=6313ركب هذا السكربت وشغله الفنكشنات الي في السكربت bool setPlayerSerialData( player thePlayer, string key, value ) string getPlayerSerialData( player thePlayer, string key ) bool removePlayerSerialData( player thePlayer, string key ) table getAllPlayerSerialData( player thePlayer ) عشان تستخدم الفكشن لازم اكسبورت مثال exports.sqldata:setPlayerSerialData(...) ابي من نفس السكربت حقي اسوي القاعدة مابي اخليه يتصل بسكربت ثاني Link to comment
The Killer Posted January 4, 2016 Share Posted January 4, 2016 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 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now