function preventChatSpam(cmd)
if cmd == "say" then
if isGuestAccount (getPlayerAccount(source)) then
cancelEvent()
outputChatBox("Login First", source, 255, 0, 0, true)
end
end
addEventHandler("onPlayerCommand", root, preventChatSpam)
أيش الغلط ب الكود ؟!
وممكن التصحيح
؟ الوو !