Callum1243 Posted July 6, 2016 Share Posted July 6, 2016 I have made an ACL Group called 'Dev' and placed it as a prefix for a known resource; tags. The prefix in the server side of Tags: function pmsgSozdal(playersource, command, ...) local msg = table.concat({ ... }, " ") if isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(playersource)), aclGetGroup("Dev")) then outputChatBox("#FFFFFF[#4F4F4FMTA#FF0000DayZ#FFFFFF][#FF0000O Server Developer#FFFFFF] #0000ff" .. getPlayerName(playersource) .. ": #F3FF00" .. msg, getRootElement(), 60, 200, 40, true) else outputChatBox("#FFFFFFYou cannot use this chat! ", playersource, 27, 89, 224, true) end end addCommandHandler("SozdalChat", pmsgSozdal) It only shows me as a survivor in game though but I still have my powers etc...: --============================================================================================================================ -- Chat - Prefix outputChatBox("#FFFFFF[#FF0000Survivor#FFFFFF] #0000FF"..name..": #DEFF00"..message, getRootElement(), 255, 255, 255, true) --============================================================================================================================ -- Log Console outputServerLog("[CHAT]"..getPlayerName(thePlayer)..": "..message) --============================================================================================================================ end addCommandHandler("GlobalChat", globalMessage) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now