كذا ؟
معرفتش اعمل السرفر كويس
addEventHandler("onClientGUIClick", root,
function ()
if( source == Start ) then
local account = guiGetText ( editAccount )
triggerServerEvent ("GiveSound",localPlayer,account)
end
end
)
addEvent ( "GiveSound", true )
addEventHandler ( "GiveSound", root,
function ( accName )
local Acc = getPlayerAccount ( source )
if not isGuestAccount ( acc ) then
if isObjectInACLGroup("user." .. getAccountName(acc), aclGetGroup("Console")) then
if accName then
local account = setAccountData ( AccName, source )
setAccountData ( AccName, source ) then
end
end
end
end
)
--
addEventHandler( "onPlayerChat",root,
function ()
playSoundFrontEnd ( root, 49 )
end )