Jump to content

Tag/prefix


Recommended Posts

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

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...