ممآ إششتغل ! :\
آلكلنت ,
GUIEditor = {
button = {},
window = {},
edit = {},
memo = {}
}
GUIEditor.window[1] = guiCreateWindow(203, 11, 447, 495, "", false)
guiWindowSetSizable(GUIEditor.window[1], false)
guiSetAlpha(GUIEditor.window[1], 1.00)
showCursor(true)
GUIEditor.button[1] = guiCreateButton(380, 449, 57, 36, "Send", false, GUIEditor.window[1])
guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA")
GUIEditor.edit[1] = guiCreateEdit(9, 452, 361, 33, "", false, GUIEditor.window[1])
GUIEditor.memo[1] = guiCreateMemo(9, 21, 428, 418, "", false, GUIEditor.window[1])
local memo = GUIEditor.memo[1]
local button = GUIEditor.button[1]
local edit = GUIEditor.edit[1]
addEventHandler ( "onClientGUIClick", root,
function ( )
if source == button then
local msg = guiGetText ( edit )
if msg ~= "" and msg ~= " " then
triggerServerEvent ( "sendMsgToRoot", localPlayer, msg )
end
end
end
)
addEvent ( "addMsg", true )
addEventHandler ( "addMsg", root,
function ( msg )
local text = guiGetText ( memo ).. "\n" .. msg
guiSetText ( memo, text )
end
)
آلسيرففر ,
addEvent ( "sendMsgToRoot", true )
addEventHandler ( "sendMsgToRoot", root,
function ( msg )
local newText = getPlayerName ( source ) .. ": " .. msg
triggerClientEvent ( root, "addMsg", root, newText )
end
)
سسويتت لوحةة كذآ وجربت عليهآ آلأكوآد ! :\