Jump to content

x [ تعديل ] x Local Chat


Recommended Posts

السلام عليكم

ده كود لوكال شات

بس لما اجي اكتب جملة طويلة ما يجيب غير اول كلمة فقط

Groups = {"Console", "Admin1", "mosp", "SuperModerator1", "Moderator1", "Moderator2", "Master", "Moafek", "Sozr", "SuperModerator2", "msol.beot", "Super.Admin", "FDR", "Mangres", "m5fe", "Super.Police", "Big.Admin", "msol", "Head.Admin", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Help Console", "ACL-Manager", "General-Admin", "Help Console", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Everyone"} 
-- 
addCommandHandler("Local",function(player,cmd,msg) 
if root:getData("Local") == true then cancelEvent() return outputChatBox ("[C.Console]: Local Chat has been locked by Console ",source,255,0,0,true) end 
for _,theGroup in pairs(Groups) do 
if ACLGroup.get(theGroup):doesContainObject( "user."..player:getAccount():getName()) then 
if not isPlayerMuted(player) then 
cancelEvent()  
outputChatBox("#FFFF00(LOCAL) "..getPlayerName(player) .. " : #FFFFFF".. msg,root, 255, 0, 0, true) 
else 
outputChatBox("#FF0000Sorry You Are Muted",source,255,0,0,true) 
end 
else 
outputChatBox("#FF0000you are not Login",source,255,0,0,true) 
end 
return  
end 
end) 

Link to comment

Groups = {"Console", "Admin1", "mosp", "SuperModerator1", "Moderator1", "Moderator2", "Master", "Moafek", "Sozr", "SuperModerator2", "msol.beot", "Super.Admin", "FDR", "Mangres", "m5fe", "Super.Police", "Big.Admin", "msol", "Head.Admin", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Help Console", "ACL-Manager", "General-Admin", "Help Console", "LVL1", "LVL2", "LVL3", "LVL4", "LVL5", "LVL6", "Everyone"} 
-- 
addCommandHandler("Local",function(player,cmd,msg) 
if root:getData("Local") == true then cancelEvent() return outputChatBox ("[C.Console]: Local Chat has been locked by Console ",source,255,0,0,true) end 
for _,theGroup in pairs(Groups) do 
if ACLGroup.get(theGroup):doesContainObject( "user."..player:getAccount():getName()) then 
if not isPlayerMuted(player) then 
cancelEvent() 
outputChatBox("#FFFF00(LOCAL) "..getPlayerName(player) .. " : #FFFFFF".. msg,root, 255, 0, 0, true) 
else 
outputChatBox("#FF0000Sorry You Are Muted",player,255,0,0,true) 
end 
else 
outputChatBox("#FF0000you are not Login",player,255,0,0,true) 
end 
return 
end 
end) 
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...