كودك صحيح , وريني كود يوم تحط له اكونت داتا
واستخدم ذا , افضل كـ تحققات
addEventHandler("onPlayerChat", root,
function ( Msg )
local Acc = getPlayerAccount ( source )
if ( Acc ) and not ( isGuestAccount ( Acc ) ) then
local getAc = getAccountData( Acc , "AddTAGSAVEDATA" )
if ( getAc ) then
outputChatBox("#ffffff" .. getAc .. " : #ffffff" ..Msg ,root ,255,255,255,true)
cancelEvent ( )
end
end
end
) ;
هذا لانكك حاط كود مرتين شي طبيعي يكرر
جرب احذف هذا الكود
local function playerChat(message, messageType)
if messageType == 0 then --Global (main) chat
cancelEvent()
local red, green, blue = getPlayerNametagColor(source)
outputChatBox(getPlayerName(source)..": #FFFFFF"..message, root, red, green, blue, true )
outputServerLog("CHAT: "..getPlayerName(source)..": "..message)--NOTE: Beacuse we cancelled the onPlayerChat event, we need to log chat manually.
end
end
addEventHandler("onPlayerChat", root, playerChat)