سلآلآم شباب كيفكم .. حاولت أسوي سكربت التاجات الخاصة ع السيريال ينحفظ بــ قاعدة بيانات اس كيو لايت
بس شكله ماضبط
ابي افهم وين الخطأ بس ...
سيرفر :
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