شباب فزعتكم
انا سويت كذا
بس لما يجي يتحقق من أن السيريال = التكست اللي بالايديت مايقدر او في خطأ
اتمنى تصلحون ..
سيرفر :
addEventHandler('onPlayerChat',root,
function (text, msgtype)
local SERIAL = triggerClientEvent('GET',source)
if ()getPlayerSerial(source) == SERIAL) then
outputChatBox('#33FFCC=[#FF0000Server#FF0099OWNER#33FFCC]= #cc0000*#FFFF00[#FF00ccMR.#00ffccGRAND#FFFF00]#cc0000* ~:#ffffff'.. text, root, 255, 255, 255, true)
end
end
) -- 3FF2E7C91279184D3104A1ACCA7F3B03
كلنت :
local key = "F5"
GUIEditor = {
label = {}
}
local screenW, screenH = guiGetScreenSize()
T_WND = guiCreateWindow((screenW - 454) / 2, (screenH - 364) / 2, 454, 364, "~.* Player TAG - Panel *.~", false)
guiWindowSetSizable(T_WND, false)
guiSetProperty(T_WND, "CaptionColour", "FF29FF00")
guiSetVisible(T_WND,false)
GUIEditor.label[1] = guiCreateLabel(10, 29, 429, 17, "* Note : You can put Player serial and TAG Text for can show it in CHAT box", false, T_WND)
guiSetFont(GUIEditor.label[1], "default-bold-small")
guiLabelSetColor(GUIEditor.label[1], 255, 0, 0)
GUIEditor.label[2] = guiCreateLabel(10, 67, 98, 16, "* Player serial :-", false, T_WND)
guiSetFont(GUIEditor.label[2], "default-bold-small")
guiLabelSetColor(GUIEditor.label[2], 47, 255, 0)
T_Serial = guiCreateEdit(110, 67, 329, 18, "", false, T_WND)
GUIEditor.label[3] = guiCreateLabel(10, 93, 98, 16, "* Player TAG :-", false, T_WND)
guiSetFont(GUIEditor.label[3], "default-bold-small")
guiLabelSetColor(GUIEditor.label[3], 5, 0, 255)
T_TAG = guiCreateEdit(110, 91, 329, 18, "", false, T_WND)
T_Enable = guiCreateButton(193, 123, 163, 28, "Enable TAG for Player", false, T_WND)
guiSetFont(T_Enable, "default-bold-small")
guiSetProperty(T_Enable, "NormalTextColour", "FFF6FF00")
T_Close = guiCreateButton(356, 334, 88, 20, "Close", false, T_WND)
guiSetFont(T_Close, "default-bold-small")
guiSetProperty(T_Close, "NormalTextColour", "FFFF0000")
GUIEditor.label[4] = guiCreateLabel(9, 334, 257, 20, "*~ By MR.GRAND", false, T_WND)
guiSetFont(GUIEditor.label[4], "default-bold-small")
guiLabelSetColor(GUIEditor.label[4], 0, 234, 255)
GUIEditor.label[5] = guiCreateLabel(434, 151, 15, 177, "||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||", false, T_WND)
guiSetFont(GUIEditor.label[5], "default-bold-small")
guiLabelSetColor(GUIEditor.label[5], 38, 38, 38)
GUIEditor.label[6] = guiCreateLabel(10, 147, 15, 177, "||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||\n||", false, T_WND)
guiSetFont(GUIEditor.label[6], "default-bold-small")
guiLabelSetColor(GUIEditor.label[6], 38, 38, 38)
function Show_Hide()
if guiGetVisible(T_WND) == false then
guiSetVisible(T_WND, true)
showCursor(true)
else guiSetVisible(T_WND, false) showCursor(false)
end end
bindKey(key,"down",Show_Hide)
addEventHandler("onClientGUIClick",root,
function ()
if source == T_Close then
if(guiGetVisible(T_WND) == false)then end
guiSetVisible(T_WND,false)
showCursor(false)
guiSetInputEnabled(false)
end end)
addEventHandler("onClientGUIClick",root,
function ()
if source == T_Enable then
local text = (guiGetText(T_Enable))
if ( text == "Enable TAG for Player" ) then
guiSetText(T_Enable,"Disable TAG for player")
TimerEnabled = setTimer ( guiSetText, 3000, 1, source, "Disable TAG for player" )
guiSetEnabled(source, false)
setTimer(guiSetEnabled, 3000, 1, T_Enable, true)
end
local text = (guiGetText(T_Enable))
if ( text == "Disable TAG for player" ) then
guiSetText(T_Enable,"Enable TAG for Player")
guiSetEnabled(source, false)
setTimer(guiSetEnabled, 3000, 1, T_Enable, true)
end
end
end
)
addEvent('GET',true)
addEventHandler("GET",root,
function ()
local COPY = guiGetText ( T_Serial )
end
)
addEvent("TAG_GET",true)
addEventHandler("TAG_GET",root,
function ()
COPY = guiSetText ( T_TAG ,"LooooL")
end)