function sayglobal (player,_,msg)
if getElementData(player,"LoggedIn") == true then
--muted einfg
for i,d in ipairs(getElementsByType("player"))do
if getElementData(d,"LoggedIn") == true then
outputChatBox("#F0E68C[Global]".."#FFFFFF"..getPlayerName(player)..": "..msg,d,255,255,255,true)
dbSetStat(getPlayerName(source),"ChatSays",dbGetStat(getPlayerName(source),"ChatSays")+1)
end
end
end
end
addCommandHandler("g",sayglobal)
addCommandHandler("Global",sayglobal)
i need help here. when someone chat it only show the first word of the text a person wrote. so if i do "/g hey i am JKiller55" the script will show "[Global]JKi: hey"